Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #317 from henvic/fix-user-hooks
Browse files Browse the repository at this point in the history
Fix situation where hooks would create comments / close pull requests for the wrong user / repo. Close #314.
  • Loading branch information
henvic committed Dec 16, 2014
2 parents 8d81c94 + 12fa638 commit 6396b4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .gh.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@
"fetch": {
"before": [],
"after": [
"gh pr {{options.number}} --comment 'Just started reviewing :)'"
"gh pr {{options.number}} --user {{options.user}} --repo {{options.repo}} --comment 'Just started reviewing :)'"
]
},
"fwd": {
"before": [],
"after": [
"gh pr {{options.submittedPullNumber}} --user {{options.fwd}} --comment '/cc @{{options.submittedUser}}'",
"gh pr {{options.number}} --comment 'Pull request forwarded to {{forwardedLink}}.{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'",
"gh pr {{options.number}} --user {{options.user}} --repo {{options.repo}} --comment 'Pull request forwarded to {{forwardedLink}}.{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'",
"gh pr {{options.number}} --close"
]
},
"merge": {
"before": [],
"after": [
"gh pr {{options.number}} --comment 'Thank you, pull request merged!{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'"
"gh pr {{options.number}} --user {{options.user}} --repo {{options.repo}} --comment 'Thank you, pull request merged!{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'"
]
},
"open": {
Expand All @@ -68,9 +68,9 @@
"submit": {
"before": [],
"after": [
"{{#if options.number}}gh pr {{options.number}} --comment 'Pull request submitted to {{submittedLink}}.{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'{{/if}}",
"{{#if options.number}}gh pr {{options.number}} --user {{options.user}} --repo {{options.repo}} --comment 'Pull request submitted to {{submittedLink}}.{{#if options.changes}} [See changes here.]({{compareLink}}){{/if}}'{{/if}}",
"gh pr --browser --user {{options.submit}} --repo {{options.repo}} --number {{options.submittedPull}}",
"{{#if options.number}}gh pr {{options.number}} --close{{/if}}"
"{{#if options.number}}gh pr --user {{options.user}} --repo {{options.repo}} {{options.number}} --close{{/if}}"
]
}
},
Expand Down

0 comments on commit 6396b4d

Please sign in to comment.