diff --git a/readme.md b/readme.md index 8aee33e..c687bfc 100644 --- a/readme.md +++ b/readme.md @@ -40,20 +40,26 @@ Minimal example, using default labels, repo owner and gold label threshold: ```yml name: sponsor ❤️ -on: [issues, pull_request] +on: + issues: + types: [opened, edited, reopened] + pull_request: + types: [opened, edited, synchronize, reopened] jobs: sponsor: runs-on: ubuntu-latest steps: + - name: 🤘 checkout + uses: actions/checkout@v2 + - name: ❤️ sponsor uses: devlooped/actions-sponsor@v1 with: token: ${{ secrets.GITHUB_TOKEN }} ``` -Full example overriding all values: - +Full example overriding all values (and running on *all* issue/PR events): ```yml name: sponsor ❤️ @@ -63,6 +69,9 @@ jobs: sponsor: runs-on: ubuntu-latest steps: + - name: 🤘 checkout + uses: actions/checkout@v2 + - name: ❤️ sponsor uses: devlooped/actions-sponsor@v1 with: diff --git a/sponsor-labeler.ps1 b/sponsor-labeler.ps1 index 49d7633..7149c4e 100644 --- a/sponsor-labeler.ps1 +++ b/sponsor-labeler.ps1 @@ -115,5 +115,5 @@ gh label create "$env:SPONSOR_LABEL" -c '#D4C5F9' -d 'Sponsor' || & { $global:LA $gold = [int]$env:SPONSOR_GOLD_AMOUNT $label = if ([int]$amount -ge $gold) { $env:SPONSOR_GOLD_LABEL } else { $env:SPONSOR_LABEL } -Write-Output "Adding $label label to $env:SPONSOR_ISSUE." +Write-Output "Adding $label label to #$env:SPONSOR_ISSUE." gh issue edit $env:SPONSOR_ISSUE --add-label "$label" \ No newline at end of file