rusackas opened a new pull request, #41464:
URL: https://github.com/apache/superset/pull/41464

   ### SUMMARY
   
   > ⛔ **Blocked on 
[preset-io/superset-showtime#15](https://github.com/preset-io/superset-showtime/pull/15)**
 merging and being released to PyPI. Draft until then.
   
   [Superset Showtime](https://github.com/mistercrunch/superset-showtime) 
stores per-PR ephemeral-environment state in GitHub **labels** (e.g. `🎪 <sha> 🚦 
running`). When that state no longer applies, the label is removed from the PR 
— but GitHub never deletes the repo-level label *definition*, so orphaned `🎪` 
definitions pile up forever (currently ~1,200 of ~2,400 labels in this repo).
   
   superset-showtime#15 moves the orphaned-label pruning into the `showtime 
cleanup` CLI itself (the right home — reusable, tested, shared across every 
repo that uses Showtime). This PR is the tiny apache-side change needed to 
*activate* that behavior in our existing daily cleanup job:
   
   - **`issues: write`** permission — GitHub label CRUD goes through the Issues 
API; without it the deletes 403.
   - **`--force`** — in #15 the label-deletion path is gated behind a 
confirmation prompt unless `--force` is passed, which would hang/fail in 
non-interactive CI.
   
   The job already `pip install`s `superset-showtime` unpinned, so it picks up 
the new CLI automatically once a release ships.
   
   #### History
   This supersedes #41459, which implemented the same pruning rule as a 
standalone in-repo `github-script` workflow. That approach works with zero 
dependency on a Showtime release, so the branch is kept as a fallback, but 
landing the logic in the tool is the better outcome.
   
   ### TESTING INSTRUCTIONS
   
   After #15 is released: **Actions → 🎪 Showtime Cleanup → Run workflow**. 
Confirm the run prunes orphaned `🎪` label definitions (SHA-bearing, 
zero-attachment) while leaving control labels (`⌛`/`⚡`/`🔒`) and still-attached 
labels intact.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to