Add label to created issues

This commit is contained in:
Antoine Martin 2024-10-27 14:54:14 -04:00
parent 163710d6fa
commit 690f9e11e9
Signed by: forge
GPG key ID: D62A472A4AA7D541
4 changed files with 11 additions and 2 deletions

View file

@ -87,7 +87,10 @@ create_issue() {
-H "authorization: Basic $FORGEJO_TOKEN" \ -H "authorization: Basic $FORGEJO_TOKEN" \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{
\"title\": \"$repo/$name: upgrade to $upstream_version\" \"title\": \"$repo/$name: upgrade to $upstream_version\".
\"labels\": [
$LABEL_NUMBER
]
}") }")
return 0 return 0
@ -141,7 +144,10 @@ if [ -f not_in_anitya ]; then
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{
\"title\": \"Add missing $repo packages to anitya\", \"title\": \"Add missing $repo packages to anitya\",
\"body\": \"- [ ] $(sed '{:q;N;s/\n/\\n- [ ] /g;t q}' not_in_anitya)\" \"body\": \"- [ ] $(sed '{:q;N;s/\n/\\n- [ ] /g;t q}' not_in_anitya)\",
\"labels\": [
$LABEL_NUMBER
]
}") }")
else else

View file

@ -13,6 +13,7 @@ jobs:
env: env:
downstream: https://dl-cdn.alpinelinux.org/alpine/edge/community downstream: https://dl-cdn.alpinelinux.org/alpine/edge/community
FORGEJO_TOKEN: ${{ secrets.forgejo_token }} FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
LABEL_NUMER: 4
steps: steps:
- name: Environment setup - name: Environment setup
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed run: apk add grep coreutils gawk curl wget bash nodejs git jq sed

View file

@ -13,6 +13,7 @@ jobs:
env: env:
downstream: https://dl-cdn.alpinelinux.org/alpine/edge/testing downstream: https://dl-cdn.alpinelinux.org/alpine/edge/testing
FORGEJO_TOKEN: ${{ secrets.forgejo_token }} FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
LABEL_NUMBER: 4
steps: steps:
- name: Environment setup - name: Environment setup
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed run: apk add grep coreutils gawk curl wget bash nodejs git jq sed

View file

@ -13,6 +13,7 @@ jobs:
env: env:
downstream: https://ayakael.net/api/packages/forge/alpine/edge/user downstream: https://ayakael.net/api/packages/forge/alpine/edge/user
FORGEJO_TOKEN: ${{ secrets.forgejo_token }} FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
LABEL_NUMBER: 4
steps: steps:
- name: Environment setup - name: Environment setup
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed run: apk add grep coreutils gawk curl wget bash nodejs git jq sed