2024-03-20 12:31:01 -04:00
|
|
|
name: supersetbot orglabel based on author
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [created, edited]
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
types: [created, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
superbot-orglabel:
|
|
|
|
runs-on: ubuntu-latest
|
2024-04-02 23:28:00 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
issues: write
|
2024-03-20 12:31:01 -04:00
|
|
|
steps:
|
2024-03-25 11:58:22 -04:00
|
|
|
|
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
|
|
uses: actions/checkout@v4
|
2024-04-02 23:28:00 -04:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2024-03-25 11:58:22 -04:00
|
|
|
|
|
|
|
- name: Setup supersetbot
|
|
|
|
uses: ./.github/actions/setup-supersetbot/
|
|
|
|
|
2024-04-02 23:28:00 -04:00
|
|
|
- name: Execute supersetbot orglabel command
|
2024-03-20 12:31:01 -04:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
# Label the issue with the appropriate org using supersetbot
|
|
|
|
# - this requires for the author to be publicly associated with their org
|
|
|
|
# - and for the org to be listed in `supersetbot/src/metadata.js`
|
|
|
|
supersetbot orglabel --issue ${{ github.event.number }} --repo ${{ github.repository }}
|