Skip to content

Add auto-cleanup for merged feature branches#4

Merged
ChaseDRedmon merged 1 commit intodevfrom
feature/cleanup-branches-workflow
Feb 7, 2026
Merged

Add auto-cleanup for merged feature branches#4
ChaseDRedmon merged 1 commit intodevfrom
feature/cleanup-branches-workflow

Conversation

@ChaseDRedmon
Copy link
Owner

Summary

  • Adds a workflow that deletes source branches after a PR is merged
  • Explicitly excludes dev and release from deletion
  • Replaces the repo-level delete_branch_on_merge setting which couldn't distinguish protected branches

Test plan

  • Merge this PR → feature/cleanup-branches-workflow should be auto-deleted
  • Merge dev → release → dev should remain untouched

🤖 Generated with Claude Code

Deletes source branches after PR merge, excluding dev and release.
Replaces the repo-level delete_branch_on_merge setting which could
not distinguish protected branches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Qodana Community for .NET

75 new problems were found

Inspection name Severity Problems
Inconsistent Naming 🔶 Warning 62
Access to disposed captured variable 🔶 Warning 1
Convert constructor into primary constructor ◽️ Notice 4
Convert lambda expression into method group ◽️ Notice 2
Class is never instantiated: Private accessibility ◽️ Notice 1
For-loop can be converted into foreach-loop ◽️ Notice 1
Redundant type declaration body ◽️ Notice 1
Type member is never used: Non-private accessibility ◽️ Notice 1
Method return value is never used: Non-private accessibility ◽️ Notice 1
Use object or collection initializer when possible ◽️ Notice 1
View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.3.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@ChaseDRedmon ChaseDRedmon merged commit 79a935f into dev Feb 7, 2026
2 checks passed
@github-actions github-actions bot deleted the feature/cleanup-branches-workflow branch February 7, 2026 08:09
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