-
Notifications
You must be signed in to change notification settings - Fork 168
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
github: automatically close PRs from the master branch. #4639
github: automatically close PRs from the master branch. #4639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We have tested it in @rene's repo, and it fails with the permission error:
|
2465f1f
to
774038b
Compare
bffdbb0
to
4096af2
Compare
@rene needs to enable permisions for actions in his repository, should be somewhere in settings edit: not sure what kind of power our GHAs have, they should be able to write to repo and close PRs..., but someone with admin access should check it |
c08f1b1
to
0489fa0
Compare
Here is how it works |
This GitHub Actions workflow detects pull requests originating from the `master` branch and automatically closes them. It also leaves a comment explaining the reason and guiding contributors to create a feature branch instead. Signed-off-by: Nikolay Martyanov <[email protected]>
0489fa0
to
237e259
Compare
This GitHub Actions workflow detects pull requests originating from the
master
branch and automatically closes them. It also leaves a comment explaining the reason and guiding contributors to create a feature branch instead.Closes: #4637