We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c34223 commit 4ec6770Copy full SHA for 4ec6770
src/github.sh
@@ -84,10 +84,10 @@ github::add_label_to_pr() {
84
curl -sSL \
85
-H "Authorization: token $GITHUB_TOKEN" \
86
-H "$GITHUB_API_HEADER" \
87
- -X PATCH \
+ -X POST \
88
-H "Content-Type: application/json" \
89
-d "{\"labels\":[$comma_separated_labels]}" \
90
- "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number" >/dev/null
+ "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/labels" >/dev/null
91
}
92
93
github::format_labels() {
0 commit comments