-
Notifications
You must be signed in to change notification settings - Fork 67
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
Fix #205: Fails CI when a don't merge label get added on a pull request. #264
Fix #205: Fails CI when a don't merge label get added on a pull request. #264
Conversation
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.
Thanks! Left a few comments.
constants.js
Outdated
@@ -17,8 +17,8 @@ const openEvent = 'opened'; | |||
const openEventGithubActions = 'pull_request_target_opened'; | |||
const reopenEventGithubActions = 'pull_request_target_reopened'; | |||
const reopenEvent = 'pull_request_reopened'; | |||
const unlabelEvent = 'unlabeled'; | |||
const PRLabelEvent = 'labeled'; | |||
const unlabelEvent = 'pull_request_unlabeled'; |
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.
const unlabelEvent = 'pull_request_unlabeled'; | |
const PRUnlabelEvent = 'pull_request_unlabeled'; |
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.
Done.
actions/src/dispatcher.js
Outdated
@@ -40,6 +41,12 @@ module.exports = { | |||
case constants.claCheckGithubAction: | |||
await claCheckGithubActionModule.claCheckGithubAction(); | |||
break; | |||
case constants.prLabelCheck: | |||
await pRLabelsModule.checkLabels(); |
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.
await pRLabelsModule.checkLabels(); | |
await PRLabelsModule.checkLabelAdded(); |
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.
Done.
actions/src/dispatcher.js
Outdated
await pRLabelsModule.checkLabels(); | ||
break; | ||
case constants.dontMergeLabelCheck: | ||
await pRLabelsModule.checkUnLabeled(); |
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.
await pRLabelsModule.checkUnLabeled(); | |
await PRLabelsModule.checkLabelRemoved(); |
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.
Done.
Unassigning @vojtechjelinek since the review is done. |
Hi @jameesjohn, it looks like some changes were requested on this pull request by @vojtechjelinek. PTAL. Thanks! |
Hi @jameesjohn. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
@jameesjohn Is this ready for review? |
…merge-label-action
Yes @vojtechjelinek. |
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!
Explanation
Fixes #205: Fails CI when a don't merge label gets added on a pull request.
This PR has been tested at jameesjohn/comment-on-pr#51
Checklist