-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
workflow: Force issue number mention in PR description and auto close… #3037
base: main
Are you sure you want to change the base?
Conversation
I would rather check with the tests that a linked GitHub issue exists using the new GitHub linked issue feature on the right of the plug request page: maybe something like this? I'm not sure how to access it this might work...
|
This way it will close automatically when merged and there is less room for error. |
Yeah this seems like a better approach, I'll add this 👍 |
@DonnieBLT , The only place I find the actual issues being closed are in the body returned by the curl which is markdown which has be anyways parsed using regex. Would like to know what you think we should do to progress. |
Can we detect this? |
No, with the api url suggested, the actual issue can only be found through the body |
Is there any other API that would work? How about we scrape the webpage? |
GitHub uses keywords like close, closes, closed, fix, fixes, fixed, resolve, resolves, and resolved followed by the issue reference to automatically link the PR to the issue. The issue reference can be specified in various formats: #<issue_number>: Refers to an issue in the same repository. ⬆️ as per google search I think scraping would be over engineering, but if you think that's the best way to go forward, I'd be happy to implement it. |
ad9540a
to
aaf7265
Compare
… issue.
Forces contributors to mention issue number they want to close via their PR in the PR description.
Once a PR is merged, the PR body is inspected to find the issue numbers that are addressed with the keywords Fixes/fixes, closes/Closes, Resolves/resolves followed by
#<issue_number>
and are closed accordingly.Also created a basic PR template to make the contributors aware of this new change.
Closes #3032.