forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(supersetbot): label PRs and issues with author's public org (apa…
- Loading branch information
1 parent
cb8528a
commit 07490ca
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: supersetbot orglabel based on author | ||
|
||
on: | ||
issues: | ||
types: [created, edited] | ||
|
||
pull_request: | ||
types: [created, edited] | ||
|
||
jobs: | ||
superbot-orglabel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Execute SupersetBot Command | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- run: npm install -g supersetbot | ||
- name: Execute custom Node.js script | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters