Skip to content

Commit

Permalink
chore(actions): getting fancier with labels (apache#26950)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and sfirke committed Mar 22, 2024
1 parent b2db809 commit c75e7a6
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -81,7 +80,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -92,7 +90,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -103,7 +100,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -114,7 +110,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -125,7 +120,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -136,7 +130,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -147,7 +140,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -158,7 +150,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -169,7 +160,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -180,7 +170,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -191,7 +180,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -202,7 +190,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -213,7 +200,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -224,7 +210,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -235,7 +220,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -246,7 +230,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -257,7 +240,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -268,7 +250,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -279,7 +260,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -290,7 +270,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -301,7 +280,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -312,7 +290,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -323,7 +300,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -334,7 +310,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -345,7 +320,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -356,7 +330,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -367,7 +340,6 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase

Expand All @@ -378,6 +350,5 @@ updates:
labels:
- npm
- dependabot
- plugins
open-pull-requests-limit: 5
versioning-strategy: increase
128 changes: 128 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,148 @@
# TODO (if we can)
# - Label PRs in need of codeowner review
# - viz:charts:xyz labels
# – component/design system areas
# - storybook(s)
# - f/e and b/e test changes?
# - product areas (SQL Lab, Explore, Dashboard, etc.)
# - database areas (SQLAlchemy, labelind DBs by driver, etc.)

############################################
# General workflow warnings
# full list of labels is here: https://github.com/apache/superset/labels
############################################

"risk:db-migration":
- changed-files:
- any-glob-to-any-file:
- 'superset/migrations/**'

############################################
# Dependencies
############################################

"dependencies:python":
- changed-files:
- any-glob-to-any-file:
- 'superset/requirements/**'
- 'superset/translations/requirements.txt'
- 'RELEASING/requirements.txt'

"dependencies:npm":
- changed-files:
- any-glob-to-any-file:
- 'superset-frontend/package.json'
- 'superset-frontend/package-lock.json'
- 'superset-embedded-sdk/package.json'
- 'superset-embedded-sdk/package-lock.json'
- 'superset-websocket/package.json'
- 'superset-websocket/package-lock.json'
- 'superset-frontend/cypress-base/package.json'
- 'superset-frontend/cypress-base/package-lock.json'
- 'superset-frontend/packages/**/package.json'
- 'superset-frontend/plugins/**/package.json'

############################################
# Areas of the main codebase
############################################

"doc":
- changed-files:
- any-glob-to-any-file:
- 'docs/**'

"api":
- changed-files:
- any-glob-to-any-file:
- 'superset/**/api.py'
- 'superset/views/core.py'

"i18n":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/**'

"i18n:brazilian":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/pt_BR/**'

"i18n:chinese":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/zh/**'

"i18n:dutch":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/nl/**'

"i18n:french":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/fr/**'

"i18n:italian":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/it/**'

"i18n:japanese":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/ja/**'

"i18n:korean":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/ko/**'

"i18n:portuguese":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/pt/**'

"i18n:russian":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/ru/**'

"i18n:slovak":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/sk/**'

"i18n:ukrainian":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/uk/**'

"i18n:spanish":
- changed-files:
- any-glob-to-any-file:
- 'superset/translations/es/**'

############################################
# Sub-projects and monorepo packages
############################################

"plugins":
- changed-files:
- any-glob-to-any-file:
- 'superset-frontend/plugins/**'

"packages":
- changed-files:
- any-glob-to-any-file:
- 'superset-frontend/packages/**'

"embedded":
- changed-files:
- any-glob-to-any-file:
- 'superset-embedded-sdk/**'

"github_actions":
- changed-files:
- any-glob-to-any-file:
- '.github/actions/**'
- '.github/workflows/**'
9 changes: 9 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
sync-labels: true

# TODO: run scripts based on labels!
# - id: run-translation-scripts
# if: contains(steps.label-the-PR.outputs.all-labels, 'i18n')
# run: |
# echo "Running translation scripts"
# # Generate .pot -> .po -> .json files

0 comments on commit c75e7a6

Please sign in to comment.