-
-
Notifications
You must be signed in to change notification settings - Fork 273
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: update generic workflows #851
ci: update generic workflows #851
Conversation
@fmvilas oh crap, now we have a problem with automerging 🤔 |
Any idea what's happening? |
@fmvilas yeah, we now require 3 approvers |
Oh damn true 😂 I just added @asyncapi-bot to an exception list. Shall we try here again? |
@fmvilas oh, I had no idea we can do such a bypass |
Kudos, SonarCloud Quality Gate passed! |
Me neither, I was just playing around with the UI and found it by luck 😅 |
merging is still blocked 🤔 and any changes in settings should work out of the box, even without closing and opening a PR |
Oh, but this wouldn't help anyway, right? Automerge won't happen ever unless 2 extra approves happen (2 admins), meaning only "manual" merge by a human (via Not ideal at all IMHO. Would it make sense to rather disable this: Tradeoffs, tradeoffs everywhere! |
@smoya No, I can put it back to only 1 approver required and it would merge with no problem, like everywhere else. But we need to honor the rule of 3 approvers to merge a PR, even though it's not enforced by GitHub. This makes me think now that maybe the |
But afaik by disabling the option I mentioned still GH will enforce that, except for code owners/admins; that's the trade-off. |
Yes, the action that we use for merging has a support for
Easier would be to create additional 2 bot accounts 🤣 |
LOL
Can't we make the action to take this value from a Github Secret in the repo? It would be like setting an environment variable for this repo only. We can default to 1 if this secret is not found.
What about the command shows that it didn't merge because of that reason? I mean, it leaves a comment in the PR. |
neat workaround! should work, we would have org-wide secret set to
yeah, I checked this action. It do not offer proper information in the output. From output we can only learn that merge did not work, but why exactly? failing tests? missing approvals? - this info is not available. Maybe they could enable it, but this will definitely require a contribution. we could do our own query: query {
repository(owner:"asyncapi", name:"spec") {
pullRequest(number:851) {
reviewDecision
}
}
}
/*
####Review Decision type####
CHANGES_REQUESTED
Changes have been requested on the pull request.
APPROVED
The pull request has received an approving review.
REVIEW_REQUIRED
A review is required before the pull request can be merged.
*/ for example this PR returns maybe https://github.com/asyncapi/.github/blob/master/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml#L29 should just be extended. We already handle "conflicts" there and post comments, so missing approvals should be handled there too I guess. |
Alright, so now the question is, who volunteers to do it? 😄 I don't think it should be @derberg because he's quite busy with the conference. Any volunteers? |
@fmvilas maybe just open an issue in |
Done: asyncapi/.github#190 |
/rtm |
1 similar comment
/rtm |
🎉 This PR is included in version 3.0.0-next-major-spec.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Co-authored-by: asyncapi-bot <[email protected]>
🎉 This PR is included in version 2.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.