Automatically apply air formatting#873
Conversation
|
I tested this on my fork and it is running successfully: cristinamullin#4 |
remove concurrency
|
@jbousquin After closer look, all the workflows are stuck in queued status after the formatting commit is applied. It seems like there is no trigger to start running them on the new commit. Looking into that now. |
|
This appears to be working correctly now: cristinamullin#8 |
|
If all you are trying to do is use a pre-commit hook to commit format changes before a PR goes to other checks I think you can do that in a much simpler way. See this example PR on my fork: As an alternative approach there is the pre-commit/action@v3.0.1. |
|
It looks like the current workflows in this PR are working: cristinamullin#20 |
|
The [pre-commit.ci] auto fixes from pre-commit.com hooks works, but checks are still running on the initial commit and follow up auto-format commit. In this PR, make sure they only run on the follow up auto-format commit (not both commits). |
Is this being observed on a commit to a new PR or only new commits to an existing PR? |
| pull_request: | ||
| branches: develop | ||
| branches: [develop] | ||
| types: [opened, reopened, synchronize, ready_for_review] |
There was a problem hiding this comment.
This can always run - it's fast!
| @@ -1,20 +1,26 @@ | |||
| # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |||
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |||
| on: | |||
There was a problem hiding this comment.
Coverage report:
- consider full coverage report only on pushes to develop branch?
- consider additional coverage report only for scope of PR?
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
There was a problem hiding this comment.
seems out of scope for this PR - make sure its not reverting a merge conflict
There was a problem hiding this comment.
This is a correct updates - but it should have been included in the previous PR merge (needed to run devtools::document() once more there).
Implements using a pre-commit hook to commit format changes before a PR goes to other checks as suggested here:
#822