Fix outstanding contribution badge (#15061)

This commit is contained in:
Greg Brimble 2024-06-12 11:51:55 +01:00 committed by GitHub
parent 7726dc5d66
commit 616a1f52a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 2 deletions

2
.github/holopin.yml vendored
View file

@ -1,7 +1,7 @@
organization: cloudflare
stickers:
- id: cltg4w6r612040fl2r7vweuvv
alias: outstanding contribution
alias: "[automation] outstanding contribution"
holobytes:
- evolvingStickerId: cltg4rlqc39020fl51scnguhb

View file

@ -1,9 +1,13 @@
name: Holopin
on:
pull_request_target:
types: [closed]
types:
- closed
- labeled
jobs:
issue_lava_lamp_holobyte:
name: Issue Lava Lamp Holobyte
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }}
steps:
@ -13,3 +17,14 @@ jobs:
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: contribution
issue_global_contribution_badge:
name: Issue Global Contribution badge
runs-on: ubuntu-latest
if: github.event.label.name == 'outstanding contribution'
steps:
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: "[automation] outstanding contribution"