Automatic Creation of PRs from Issues #867
Replies: 8 comments
-
I think we can use https://docs.github.com/en/rest/reference/pulls (or an interface for it, i.e. https://github.com/actions/github-script) plus the opened or maybe edited events for issues |
Beta Was this translation helpful? Give feedback.
-
@iam-py-test Yes. The edited event is complicated tho. Not saying it's impossible. But it adds another layer of complexity. I mean maybe if we close the PR and regenerate it from scratch it'd be easier. But getting a diff and trying to update an existing PR automatically, is more complicated. |
Beta Was this translation helpful? Give feedback.
-
@spirillen Sounds completely off topic and unrelated to this issue. |
Beta Was this translation helpful? Give feedback.
-
Oh yeah, it should have been in another issue with the linter... (Which I can't find now 😒 ) my bad |
Beta Was this translation helpful? Give feedback.
-
My suggestion: https://github.com/marketplace/actions/closes-issues-related-to-a-merged-pull-request |
Beta Was this translation helpful? Give feedback.
-
@thomasmerz Sorry. Don't support this. GitHub already has that built in if you include the correct text in the pull request body. No need to add additional complexity here. |
Beta Was this translation helpful? Give feedback.
-
Ah, ok, I wondered on some other repos how it comes that issues seem to be autoclosed when PR was merged and I didn't find any GH action. I think you mean this? That's really nice and could save all contributors and collaborateurs much time/effort 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
@thomasmerz Yep! That is what I'm referring to 😃 |
Beta Was this translation helpful? Give feedback.
-
Haven't thought it through completely yet. High level tho:
Most of the logic for steps 1 and 2 (and partly 3) can be found in a similar PR I did for Dynamoose: dynamoose/dynamoose#1154.
Outstanding issues:
@blocklistprojectci PR this
and then it'll generate a PR)Overall with GitHub Actions this should be pretty easy tho.
Beta Was this translation helpful? Give feedback.
All reactions