Skip to content

Commit 4464e3d

Browse files
authored
Include user-agent when posting with GitHubPRBot. (#5779)
1 parent bf5b3bd commit 4464e3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/android_phab.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
message="${{ github.actor }} ${{ github.event.action }} ${{ github.event.pull_request._links.html.href }}"
1717
echo -e "${PR_BODY}" | grep -oEi "(^Bug:\s*T[0-9]+)|(^([*]*phabricator[*]*:[*]*\s*)?https:\/\/phabricator\.wikimedia\.org\/T[0-9]+)" | grep -oEi "T[0-9]+" | while IFS= read -r line; do
1818
echo "Processing: $line"
19-
curl https://phabricator.wikimedia.org/api/maniphest.edit \
19+
curl --header "User-Agent: GitHubPRBot/1.0 (https://phabricator.wikimedia.org/p/GitHubPRBot)" \
20+
https://phabricator.wikimedia.org/api/maniphest.edit \
2021
-d api.token=${{ secrets.PHAB_BOT_API_KEY }} \
2122
-d transactions[0][type]=comment \
2223
-d transactions[0][value]="${message}" \

0 commit comments

Comments
 (0)