-
Notifications
You must be signed in to change notification settings - Fork 66
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
ci: let autoupdate.yml run on pull_request #146
Conversation
@smoya I'm concerned that this workflow will run on any PR event to master branch. So a lot of triggers with no effect. maybe better we should come up with some command like somehow related to #115 |
We could also let the action to be triggered under demand with the |
@smoya just keep in mind only codeowners, folks with maintainers rights can trigger such workflow event |
yikes! Yeah, that is not ideal :( |
@derberg If I understand it correctly, we need to do the |
@KhudaDad414 sorry, I didn't get it. Why Maybe we can even use the same action, but triggered not by push but by PR comment with |
@derberg sorry, I meant updating the whole chain of branches from the leaf branch PR would be hard but as I see now, we don't need to do it.
this way we separate the function of what do you think? |
if it is label based then it means it will work only once, right? and it won't be much useful for #115 ? cause sometimes you might need to request update more than once |
@derberg Not necessarily in this case. since |
Afaik, the
|
@@ -17,6 +17,13 @@ on: | |||
- 'dependabot/**' | |||
- 'bot/**' | |||
- 'all-contributors/**' | |||
pull_request: | |||
types: [opened, reopened, synchronize, ready_for_review] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the synchronize
PR type for? 🤔
I like @smoya's idea and what @KhudaDad414 suggests here:
|
closing in favour of #149 |
Description
I’m thinking that the
autoupdate.yml
action that keeps release branches up-to-date with the destination branch (e.g. master ) should also run on creating a PR and not only on push event.https:/asyncapi/spec/blob/master/.github/workflows/autoupdate.yml#L13-L15
I recently created few PR’s in order to keep the release branches (
2022-04-release
) up-to-date withmaster
branch . But I don’t want to wait until someone else pushes changes on those release branches. Instead, I would like the bot to update them ASAP. And this is not possible since the action is triggered only by the push event.Does it make sense to also trigger it on
pull_request
event?If not, please discard this PR.