You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/03/20 16:31:09 UTC
(superset) branch master updated: feat(supersetbot): label PRs and issues with author's public org (#27571)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d5680ad376 feat(supersetbot): label PRs and issues with author's public org (#27571)
d5680ad376 is described below
commit d5680ad37673fdddd82edfd92c49b02c2d33b042
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Wed Mar 20 09:31:01 2024 -0700
feat(supersetbot): label PRs and issues with author's public org (#27571)
---
.github/supersetbot/src/context.js | 2 +-
.github/workflows/issue_creation.yml | 26 ++++++++++++++++++++++++++
.github/workflows/no-op.yml | 30 ++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 1 deletion(-)
diff --git a/.github/supersetbot/src/context.js b/.github/supersetbot/src/context.js
index 8fe428ceed..9f6accb9fa 100644
--- a/.github/supersetbot/src/context.js
+++ b/.github/supersetbot/src/context.js
@@ -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);
}
}
diff --git a/.github/workflows/issue_creation.yml b/.github/workflows/issue_creation.yml
new file mode 100644
index 0000000000..930b1cf7a7
--- /dev/null
+++ b/.github/workflows/issue_creation.yml
@@ -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 }}
diff --git a/.github/workflows/no-op.yml b/.github/workflows/no-op.yml
index 79b1d35136..1c68c4e1f5 100644
--- a/.github/workflows/no-op.yml
+++ b/.github/workflows/no-op.yml
@@ -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