Skip to content

Commit

Permalink
Merge pull request #27 from wzshiming/fix/failed-log
Browse files Browse the repository at this point in the history
Add failed log
  • Loading branch information
wzshiming authored Aug 31, 2022
2 parents 1ff24f9 + 3bcd73b commit 3dfa0e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/add-reviewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ for reviewer in ${login}; do
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GH_REPOSITORY}/pulls/${ISSUE_NUMBER}/requested_reviewers" \
-d "{\"reviewers\":[\"${reviewer}\"],\"team_reviewers\":[]}"
-d "{\"reviewers\":[\"${reviewer}\"],\"team_reviewers\":[]}" ||
echo "[FAIL] Failed requeste review ${reviewer}"
done
3 changes: 2 additions & 1 deletion bin/remove-reviewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ for reviewer in ${login}; do
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GH_REPOSITORY}/pulls/${ISSUE_NUMBER}/requested_reviewers" \
-d "{\"reviewers\":[\"${reviewer}\"],\"team_reviewers\":[]}"
-d "{\"reviewers\":[\"${reviewer}\"],\"team_reviewers\":[]}" ||
echo "[FAIL] Failed remove reviewer ${reviewer}"
done

0 comments on commit 3dfa0e3

Please sign in to comment.