Better GitHub Action workflow for JuliaFormatter#213
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #213 +/- ##
=======================================
Coverage 75.20% 75.20%
=======================================
Files 11 11
Lines 750 750
=======================================
Hits 564 564
Misses 186 186
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
The original workflow julia-code-style-suggesters is a combination of:
All features in JuliaProjectFormatter.jl seems a subset of Aqua.jl, so there would be no problem in this PR. (tkf/JuliaProjectFormatter.jl#7 (comment)) |
|
In #218, I tried this action, but didn't get any suggestions, only stuff in the CI log. Do you now, what (github settings, CI permissions, etc.) needs to be changed for this to work for PRs from forks? |
|
The log shows the folloing message, so it seems we need more permissions for that token.
|
|
I applied @fingolfin's suggestions from #218 here. |
519455f to
3688186
Compare
|
@fingolfin something seems to be wrong |
|
I have applied the commits from #218. (x-ref #218 (comment)) |
|
We still have the following message:
https://github.com/JuliaTesting/Aqua.jl/actions/runs/6642425658/job/18047160049?pr=213#step:5:192 |
|
We can use |
80dd482 to
a2aee99
Compare
|
With the |
d5edb85 to
cdf9461
Compare
|
Hmm, the suggestion works file in other PRs (#255 (comment)) now, so I'm not sure the reason for that error. |
The only difference to other PRs that I can see is that this PR here is from a fork. |
That's correct. I found an issue about this: reviewdog/action-suggester#19 |
|
This PR hasn't had activity for over two years and lots of merge conflicts. @hyrodium do you still have any interest in figuring this out? Else let's close it? |
|
(One could also think about switching to |
|
The problem that this PR is trying to fix (but cannot due to some reviewdog permission complications) is to also allow code suggestions for mis-formatted PRs that come from a fork. |
x-ref: #128 (comment)
I have just copied the YAML file from https://github.com/JuliaDiff/ChainRulesCore.jl/blob/main/.github/workflows/format.yml.