#github-actions (2024-10)

Discussions related to GitHub Actions

2024-10-01

actions - GitHub Changelog avatar
actions - GitHub Changelog
07:25:34 PM

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 · GitHub Changelogattachment image

Repository level Actions Usage Metrics - public preview

Homeattachment image

Updates, ideas, and inspiration from GitHub to help developers build and design software.

actions - GitHub Changelog avatar
actions - GitHub Changelog
07:45:34 PM

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 · GitHub Changelogattachment image

Annotations in the GitHub Actions log view

2024-10-04

RB avatar

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

#28 Ability to skip pre-commit on specific commits or PRs

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

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

RB avatar

cc: @Igor Rodionov

#28 Ability to skip pre-commit on specific commits or PRs

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

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

1
Gabriela Campana (Cloud Posse) avatar
Gabriela Campana (Cloud Posse)

@Igor Rodionov bumping this up

2024-10-08

    keyboard_arrow_up