-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: Add last comment validator #668
Conversation
test.each([ | ||
undefined, | ||
'pull_request_review', | ||
'check_suite', | ||
'issue_comment' | ||
])('check that merge is called for %s events', async (eventName) => { |
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.
small refactor to reduce code duplication
if (context.eventName === 'issues') { // event name is 'issues' but payload contain 'issue' | ||
if (context.eventName === 'issues' || context.eventName === 'issue_comment') { |
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.
Remove comment as it seems a bit redundant
@jusx @shine2lay could you take a look? 🙏 |
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.
LGTM
Codecov ReportBase: 92.95% // Head: 92.97% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #668 +/- ##
==========================================
+ Coverage 92.95% 92.97% +0.02%
==========================================
Files 106 107 +1
Lines 2441 2448 +7
Branches 441 441
==========================================
+ Hits 2269 2276 +7
Misses 153 153
Partials 19 19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
🎉 This PR is included in version 2.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Originally I thought this could be implemented as a filter (#639), but after giving it more thoughts, validator makes more sense.
The use case here is that developers can add a comment
merge
to trigger themerge
action.GIF
Thanks to Bloomberg L.P. for letting us contribute to Mergeable.