Skip to content
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

have the magician tag a reviewer for external PRs #2140

Merged
merged 2 commits into from
Aug 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"))
danawillow marked this conversation as resolved.
Show resolved Hide resolved

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