Skip to content

Commit

Permalink
Fix blocklist update automation + Remove its default reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 14, 2023
1 parent e0c316a commit 9c61298
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/default-blocklist-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ fi

REMOTE=origin
PR_TITLE="Update default blocklist to $BLOCKLIST_REF"
git checkout -b "$BRANCH"
git checkout -b "$NEW_BRANCH"
git add .
git commit -a -m "${PR_TITLE}"
git push "$REMOTE" "$BRANCH"
git push "$REMOTE" "$NEW_BRANCH"

PR_LABEL="default-blocklist-update"
if ! gh pr list --state open --label "$PR_LABEL" | grep "${PR_TITLE}" >/dev/null; then
gh pr create --fill \
--title "${PR_TITLE}" \
--label "${PR_LABEL}" \
--reviewer "g-andrade"
--label "${PR_LABEL}"
fi

0 comments on commit 9c61298

Please sign in to comment.