Repository navigation
MNT Add GitHub Action to close PR linked to not-ready issue - #34506
Conversation
|
Thank you for the PR @virchan! |
This is a good idea! Let's do it! |
|
Thanks for the PR! I agree this is one of the many small pain points we have 😉. Without looking at the diff. Pros:
Cons:
|
These are fair points. I'm hoping that 14bff09 addresses some of these concerns. We can also revise the bot's comment here if needed. |
|
I created the |
There was a problem hiding this comment.
Personally I am fine with closing the PR directly, since this only happens for first-time-contributor and only if the PR uses fix #issueNumber.
I posted a few comments, but I am fine trying this out and adapting it as we go.
I'll wait a bit more in case an other maintainer wants to express an other opinion on the approach.
Edit: now that I have read the discussion in #34252, it seems like there is some consensus on the approach.
There was a problem hiding this comment.
Thanks a lot for the PR and tackling my suggestions!
I tested it on my fork and this seems to work fine. See test PR: lesteve#47.
Since there seemed to be consensus on the approach in the linked issue, let's merge to start using this and tweak it as we go.
|
Thank you everyone for your time! 🫡 |
|
This seems to work fine 🎉, first "linked issue not ready" PR closed: #34743 (comment) |
|
I'd like the linting job not to run at all if we decide to close the PR. Might be a nice follow-up. |
I would say YAGNI. If you are looking for CI tasks that makes our life easier, let me know! I may have some ideas for you 😉. |
Sign me up please! 😄 |
|
#34723 would be a good one if you feel like it. I also have some ideas how to make the automated issue opening more useful but I need to write it up as an issue. To give you some kind of a teaser:
|
Reference Issues/PRs
Closes #34252.
What does this implement/fix? Explain your changes.
This PR adds a GitHub Actions workflow that closes pull requests opened by first-time contributors when they are linked to an issue that is not yet ready for pull requests.
I used Claude to help me develop the early drafts of this implementation. The workflow uses
closingIssuesReferencesfrom the GraphQL API to retrieve the issue linked to the pull request. I also tested it in a separate repo to confirm that it:AI usage disclosure
I used AI assistance for:
Any other comments?
N/A