-
Notifications
You must be signed in to change notification settings - Fork 71
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
Move wip checks to github actions #276
Conversation
actions/src/dispatcher.js
Outdated
case constants.wipCheck: | ||
await wipDraftModule.checkWIP(); |
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.
case constants.wipCheck: | |
await wipDraftModule.checkWIP(); | |
case constants.wipCheck: | |
core.info('wip check triggerred'); | |
await wipDraftModule.checkWIP(); |
can we have something like this? This is to make debugging easier and also we'll know what was executed in the action.
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.
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! |
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.
actions/src/utils.js
Outdated
* @param {string[]} assignees | ||
* @param {string} comment | ||
*/ | ||
const pingAndAssignUsers = async (octokit, pullRequest, assignees, 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.
This function doesn't really ping users, it just creates comment (which might contain entirely different content).
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.
Yes, but it also assigns the users. Comments can be created directly. This function helps when we want to make the comment and also assign users at the same time.
Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com>
Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com>
PTAL @vojtechjelinek |
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! |
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
Moves WIP/Draft checks to github actions
These features have been tested at jameesjohn/comment-on-pr#51 (comment)
Checklist