Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Disable no-commit-to-branch @ GHA #748

Conversation

webknjaz
Copy link
Contributor

@webknjaz webknjaz commented Jan 8, 2025

This turns off the "is push to master" in GitHub Actions CI/CD as it does not make sense in this environment, being local-only [1].

Put an x into the box if that apply:

  • This PR introduces breaking change.
  • This PR fixes a bug.
  • This PR adds new functionality.
  • This PR enhances existing functionality.
  • Internal maintenance, no effect on end-users or contributors.

Description of your changes

This is a follow-up for #742. One of its jobs runs pre-commit and doesn't filter out this hook. The hook itself would only fail on pushes to master which is not a condition that can happen in PR workflow runs.

How can we test changes

You can't. This will only be visible on master.

This turns off the "is push to master" in GitHub Actions CI/CD as it
does not make sense in this environment, being local-only [[1]].

[1]: pre-commit/pre-commit-hooks#1124
webknjaz and others added 2 commits January 8, 2025 19:12
This might work, but there's a change it would be parsed weirdly. Though, it shouldn't be a factor in the way how pre-commit processes it.

Co-authored-by: Maksym Vlasov <[email protected]>
@webknjaz
Copy link
Contributor Author

webknjaz commented Jan 8, 2025

@MaxymVlasov it breaks in a different place. I reverted it.

@MaxymVlasov MaxymVlasov changed the title 🧪 Disable no-commit-to-branch @ GHA ci: Disable no-commit-to-branch @ GHA Jan 8, 2025
@MaxymVlasov
Copy link
Collaborator

sad emoji

@MaxymVlasov MaxymVlasov merged commit 900829c into antonbabenko:master Jan 8, 2025
38 of 39 checks passed
@antonbabenko
Copy link
Owner

This PR is included in version 1.97.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants