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(ci): add a check to make sure there's no hold label on the PR #26877

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jan 30, 2024

noticed on another PR (#26836) that we use hold.* labels, but they don't really hold the merge. After almost merging and realizing the hold after, I got GPT to generate the action here and tested it on that PR.

Note that this will hold all PRs with any label containing the string hold, which is what we need since we have multiple hold-related labels.

Screenshot 2024-01-29 at 5 18 56 PM

noticed on another PR (#26836)
that we use `hold.*` labels, but they don't really hold the merge. After
almost merging and realizing the hold after, I got GPT to generate the
action here and tested it on that PR.
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const payload = context.payload.pull_request
const label = !!payload.labels.find(label => label.name.includes('hold'))
Copy link
Member

Choose a reason for hiding this comment

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

nit: const holdLabelPresent = payload.labels.some(label => label.name.startsWith('hold'));

@mistercrunch mistercrunch merged commit 1f5ae74 into master Jan 30, 2024
26 checks passed
eschutho pushed a commit to preset-io/superset that referenced this pull request Jan 31, 2024
@michael-s-molina
Copy link
Member

Nice!

@rusackas rusackas deleted the ci_no_hold branch April 16, 2024 16:53
@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
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 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 size/S 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants