From ad6b152fee7dd0a2760d99b338d7a20a33f14acf Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 27 Jul 2020 05:09:43 +1000 Subject: [PATCH] [CI] Fix user reference in PR commentary (#1231) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Michaud --- .github/probot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/probot.js b/.github/probot.js index e4f7d60e..b76b584c 100644 --- a/.github/probot.js +++ b/.github/probot.js @@ -24,7 +24,7 @@ on('pull_request.opened') context => !context.payload.pull_request.head.label.includes(':master') ) - .comment(`Thanks for choosing to contribute @{{ user.login }}. We lint all PR's with golangci-lint, I may add a review to your PR with some suggestions. + .comment(`Thanks for choosing to contribute @{{ pull_request.user.login }}. We lint all PR's with golangci-lint, I may add a review to your PR with some suggestions. You are free to apply the changes if you're comfortable, alternatively you are welcome to ask a team member for advice. @@ -44,7 +44,7 @@ on('pull_request.opened') context => context.payload.pull_request.head.label.includes(':master') ) - .comment(`Thanks for choosing to contribute @{{ user.login }}. + .comment(`Thanks for choosing to contribute @{{ pull_request.user.login }}. Unfortunately it appears that you're submitting a PR from a forked master branch and this is known to causes issues with codecov. Please re-submit your PR from a branch other than master.`) .close() \ No newline at end of file