Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto-label PRs that contain db migrations #26745

Merged
merged 4 commits into from
Jan 23, 2024

Conversation

mistercrunch
Copy link
Member

The goal here is simply to auto-assign a GitHub label risk:db-migration to every PR that touches that folder. Having a label we can rely on is good so it can be trusted for release automation and other purposes.

I'm closing/reopening #26683 while pointing to the apache repo as opposed to a fork since security / perms work only on the main fork apparently.

@mistercrunch
Copy link
Member Author

Nice. Looks like it worked. Removing the DUMMY file now, and this should be good to merge.

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1010294) 69.56% compared to head (c492fa8) 67.27%.
Report is 25 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26745      +/-   ##
==========================================
- Coverage   69.56%   67.27%   -2.30%     
==========================================
  Files        1892     1892              
  Lines       74162    74162              
  Branches     8263     8263              
==========================================
- Hits        51593    49894    -1699     
- Misses      20488    22187    +1699     
  Partials     2081     2081              
Flag Coverage Δ
hive ?
javascript 56.84% <ø> (ø)
mysql 78.23% <ø> (+0.02%) ⬆️
postgres 78.33% <ø> (ø)
presto ?
python 78.46% <ø> (-4.75%) ⬇️
sqlite 77.91% <ø> (ø)
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-s-molina
Copy link
Member

michael-s-molina commented Jan 22, 2024

Thanks for the PR @mistercrunch. This will be really valuable when cherry-picking fixes into patch releases as we avoid PRs that contain migrations.

There's a typo here label-miration-pr.yml. Could you change it to label-migration-pr?

@mistercrunch
Copy link
Member Author

Ok, fixed the typo, should be good to merge

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving as codeowner

@mistercrunch mistercrunch merged commit 75a98af into master Jan 23, 2024
51 checks passed
@mistercrunch mistercrunch deleted the label_db_migration_2 branch January 23, 2024 00:24
eschutho pushed a commit to preset-io/superset that referenced this pull request Jan 31, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels risk:db-migration PRs that require a DB migration size/S 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants