-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Change PR to draft when it is (re)opened #36417
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
name: Change PR to draft | ||
|
||
on: | ||
pull_request_target: |
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.
use pull_request_target
instead of pull_request
for security.
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.
Very nice but can we check if it's not already draft mode ?
Yes we can check of course. I will update. Also disable tests but keep checks on circleCI |
What does this PR do?
This PR is a first step: it simply change a PR to draft when it is (re)opened. It doesn't modify yet the logic regarding how CI should be triggered.
See this example.
It also sends a comment, see