#github-actions (2024-10)
Discussions related to GitHub Actions
2024-10-01
Repository level Actions Usage Metrics – public preview Repository level Actions Usage Metrics - public preview The post Repository level Actions Usage Metrics – public preview appeared first on The GitHub Blog.
Repository level Actions Usage Metrics - public preview
Updates, ideas, and inspiration from GitHub to help developers build and design software.
Annotations in the GitHub Actions log view Annotations in the GitHub Actions log view The post Annotations in the GitHub Actions log view appeared first on The GitHub Blog.
Annotations in the GitHub Actions log view
2024-10-04
Thoughts on this proposal to skip specific commits using a skip ci
message or PRs using a PR label for the cloudposse precommit action ?
https://github.com/cloudposse/github-action-pre-commit/issues/28
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
It would be nice to skip the pre-commit for a PR, perhaps using a PR label
It would be nice to skip the pre-commit for a commit message, perhaps using skip ci
or similar
There is no way to use a native way in pre-commit to skip hooks on a specific commit message such as using skip ci
. See pre-commit/pre-commit#2806.
Expected Behavior
An easy way to skip pre-commit per commit or per PR.
Usually this comes up if there is a special edge case where you need something done without one of pre-commit’s hooks getting in the way, without disabling the entire hook all together.
Use Case
We have some old code where a hook is updating the code and is doing it with the new way instead of the old way. We can work on upgrading the code or fixing the hook. We’d prefer punting for now to get the changes out and creating a ticket in the next sprint to fix the underlying issue.
Describe Ideal Solution
- uses: cloudposse/[email protected]
with:
skip-pr-label: 'skip-precommit' # Hypothetically this is the default value
Alternatives Considered
One alternative is to bake an if
condition before the action is called
- uses: cloudposse/[email protected]
if: contains(github.event.pull_request.labels.*.name, 'skip-precommit')
Additional Context
N/A
cc: @Igor Rodionov
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
It would be nice to skip the pre-commit for a PR, perhaps using a PR label
It would be nice to skip the pre-commit for a commit message, perhaps using skip ci
or similar
There is no way to use a native way in pre-commit to skip hooks on a specific commit message such as using skip ci
. See pre-commit/pre-commit#2806.
Expected Behavior
An easy way to skip pre-commit per commit or per PR.
Usually this comes up if there is a special edge case where you need something done without one of pre-commit’s hooks getting in the way, without disabling the entire hook all together.
Use Case
We have some old code where a hook is updating the code and is doing it with the new way instead of the old way. We can work on upgrading the code or fixing the hook. We’d prefer punting for now to get the changes out and creating a ticket in the next sprint to fix the underlying issue.
Describe Ideal Solution
- uses: cloudposse/[email protected]
with:
skip-pr-label: 'skip-precommit' # Hypothetically this is the default value
Alternatives Considered
One alternative is to bake an if
condition before the action is called
- uses: cloudposse/[email protected]
if: contains(github.event.pull_request.labels.*.name, 'skip-precommit')
Additional Context
N/A
@Igor Rodionov bumping this up