Skip to content

Commit

Permalink
feat(supersetbot): label PRs and issues with author's public org (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and sfirke committed Mar 22, 2024
1 parent cb8528a commit 07490ca
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/supersetbot/src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Context {
const optionValue = options[optionName];
if (optionValue === undefined || optionValue === null) {
this.logError(`option [${optionName}] is required`);
// this.exit(1);
this.exit(1);
}
}

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/issue_creation.yml
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 }}
30 changes: 30 additions & 0 deletions .github/workflows/no-op.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,33 @@ jobs:
run: |
echo "This is a no-op step for python-lint to ensure a successful status."
exit 0
test-postgres-hive:
strategy:
matrix:
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: No-op for frontend-build
run: |
echo "This is a no-op step for test-postgres-postgres to ensure a successful status when skipped."
exit 0
test-postgres-presto:
strategy:
matrix:
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: No-op for frontend-build
run: |
echo "This is a no-op step for test-postgres-postgres to ensure a successful status when skipped."
exit 0
unit-tests:
strategy:
matrix:
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: No-op for frontend-build
run: |
echo "This is a no-op step for unit-tests to ensure a successful status when skipped."
exit 0

0 comments on commit 07490ca

Please sign in to comment.