-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bug Report: Linking PR and Issues are not closing them #702
Comments
After reading the docs one more time, I have a feeling that the PR should be merged directly into
Technically, if I make PR number 123 and merge it into I can think of two ways to address this:
|
After further research, I'm more convinced the problem is we are not merging the PR into Currently, the API doesn't provide a way to find linked issues using a PR number. Thus, our options are now:
What do you guys think? EDIT: |
I think I'm going ahead with option 4. I don't think we should make EDIT:
I've revised the plan:
Since this requires more moving parts, let me know what you think. I'll wait for other maintainers' thoughts before I continue. EDIT: @amacado are you ok with this new workflow? |
@Thomas-Boi sure, option 4 sounds like a great idea. I could think that many (or at least 'more than our') project has this problem. Have you tried finding an available, existing github action? If not maybe we can build one which is not exclusive for devicon? |
I searched around for a bit more and found a few more options:
|
So good news: putting the Issue number in the commit will close the issue once it's merged into However, we still need a way to differentiate between PRs that are in |
Just to clarify this. The issue will only be closed if you link to the issue in the correct way, by using one of the following keywords followed by #issueNumber. Example that closes issues with a commit, once it's merged into master: Example that only references an issue, but doesn't close it: Read this for more info on referencing/closing issues through commits |
Thank you for the tip @Snailedlt! I'm thinking what you said is the correct one since I remember testing it out with a PR once before. |
Bug
Merging a linked PR into the
master
branch does not close its corresponding issue. See #592 and confirm the PR is merged intomaster
using this url (justCtrl + F
and search forraspberry
). Also a few others like #582 and #543.How to replicate the bug
Make an issue and make a PR. Link those together and merge the PR into
master
. The Issue will probably not close.Possible Fixes/Solutions
Not sure. Here's what we've tried:
My next move will be making a thread about this on the Community website. Hopefully, we'll get an answer there
The text was updated successfully, but these errors were encountered: