Skip to content

chore: add scheduled branch cleanup report#90

Draft
aranhave wants to merge 3 commits into
mainfrom
chore/scheduled-branch-cleanup-report
Draft

chore: add scheduled branch cleanup report#90
aranhave wants to merge 3 commits into
mainfrom
chore/scheduled-branch-cleanup-report

Conversation

@aranhave

Copy link
Copy Markdown
Contributor

Summary

Adds the same scheduled branch cleanup report we started in mobile-o11y-demo, adjusted for faro-react-native-sdk.

Reference: grafana/mobile-o11y-demo#67

This is still read-only. It does not delete branches. The goal is to make leftover branch cleanup easier to review without manually clicking through the branch list.

What changed

  • Adds a branch cleanup dry-run workflow
  • Runs on a 14-day cadence
  • Keeps manual runs available through workflow_dispatch
  • Creates a GitHub issue with the report on scheduled runs
  • Adds an optional manual create_issue input for one-off reports/testing
  • Uploads the report as an artifact and writes it to the Action summary

Notes

The first local report found no merged-PR cleanup candidates, but it did surface no-PR and automation branches. That seems useful for this repo because those are categories GitHub's auto-delete setting does not cover.

I kept this as a draft so we can decide if we want this reporting pattern in the React Native SDK repo too, or keep it only in mobile-o11y-demo for now.

Testing

I checked this locally by running the audit script against grafana/faro-react-native-sdk with the 14-day settings and confirmed it generated the expected dry-run report. I also ran a basic syntax check on the script and checked the diff for formatting issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant