Skip to content

Instantly share code, notes, and snippets.

@henry40408
Created December 20, 2017 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henry40408/d86cf31dca80f410114fdc4b3bd4f93b to your computer and use it in GitHub Desktop.
Save henry40408/d86cf31dca80f410114fdc4b3bd4f93b to your computer and use it in GitHub Desktop.
jiminycricket/pr-review-submit-unassign
// https://github.com/jiminycricket/pr-review-submit-unassign/blob/5b3bf2e64c6417919d53c4966f50d5c8bb97e91e/index.js#L8-L19
const { github } = context
const userConfig = await context.config('pr_review_submit_unassign.yml')
const config = Object.assign({}, defaultConfig, userConfig)
const { pull_request, review } = context.payload
const pullRequestOwner = pull_request.user.login
const reviwer = review.user.login
// NOTE not assign pull request owner if review is submitted by owner
if (pullRequestOwner === reviwer) {
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment