Skip to content

Commit

Permalink
have the magician tag a reviewer for external PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Aug 9, 2019
1 parent 58eed00 commit 418eed1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .ci/magic-modules/welcome-contributor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

set -x

ASSIGNEE=$(shuf -n 1 <(printf "danawillow\nrambleraptor\nemilymye\nrileykarson\nSirGitsalot\nslevenick\ntysen"))

cat > comment/pr_comment << EOF
Hello! I am a robot who works on Magic Modules PRs.
I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs.
Thanks for your contribution! A human will be with you soon.
EOF
shuf -n 1 <(printf "danawillow\nrambleraptor\nchrisst\nrileykarson\nSirGitsalot\nslevenick\ntysen") > comment/assignee
$ASSIGNEE, please review this PR or find an appropriate assignee.
EOF

# Something is preventing the magician from actually assigning the PRs.
# Leave this part in so we know what was supposed to happen, but the real
# logic is above.
echo $ASSIGNEE > comment/assignee
cat comment/assignee

0 comments on commit 418eed1

Please sign in to comment.