Skip to content

Commit d11bcf5

Browse files
committed
feat: add automatic reviewer request to workflow
- Request @overwrite00 as reviewer on opened/reopened PRs - Works alongside automatic assignment to streamline PR review process
1 parent 97161b7 commit d11bcf5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/project-automation.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
echo " Failed to add to Project"
105105
echo " Details: $(echo "$RESPONSE" | jq '.errors')"
106106
fi
107+
108+
# Richiedi reviewer
109+
echo " - Requesting reviewer..."
110+
curl -s -X POST \
111+
-H "Authorization: token $TOKEN" \
112+
-H "Accept: application/vnd.github+json" \
113+
-d "{\"reviewers\":[\"${{ env.ASSIGNEE }}\"]}" \
114+
"https://api.github.com/repos/$REPO/pulls/$PR_NUM/requested_reviewers" > /dev/null
115+
echo " Reviewer requested"
107116
fi
108117
109118
# Se PR è stato chiuso

0 commit comments

Comments
 (0)