todo-to-issue-action icon indicating copy to clipboard operation
todo-to-issue-action copied to clipboard

link issues to close when a PR is created

Open DetachHead opened this issue 3 years ago • 5 comments

it would be cool if instead of just closing issues once a PR is merged, it could automatically add the issues that will be closed to the Linked issues of the PR so you can easily see which TODO's the PR resolves

image

github will automatically close any issues linked here once the PR gets merged

DetachHead avatar Jan 11 '22 13:01 DetachHead

Good idea. Do you know where the functionality to do this is in the API? Had a quick look through the endpoints for PRs and issues but didn't see anything.

alstr avatar Jan 19 '22 13:01 alstr

not sure, i'm not familiar with the github api sorry

DetachHead avatar Jan 20 '22 05:01 DetachHead

perhaps it's possible to set up an action to run when a PR is created/pushed to with a bot that edits the description of a PR to add "closes #xxx" to it

DetachHead avatar Jan 20 '22 05:01 DetachHead

Potentially. Keeping track of all the issues might be a bit tricky. I'm guessing any time a TODO is removed you're assuming that the PR closes that related issue?

I'm not sure how it would work but I'll think about it. If anyone else wants to chip in with suggestions, feel free.

alstr avatar Jan 20 '22 12:01 alstr

any time a TODO is removed you're assuming that the PR closes that related issue?

@alstr I think this is exactly what this issue is about 👍

ChocolateLoverRaj avatar Apr 09 '22 19:04 ChocolateLoverRaj