GitShow/jessfraz/branch-cleanup-action
jessfraz

branch-cleanup-action

A GitHub action to automatically delete the branch after a pull request has been merged.

by jessfraz
Star on GitHubFork

Shell

422 stars59 forks12 contributorsQuiet · 4y agoSince 2018MIT

Meet the team

See all 12 on GitHub →
jessfraz
jessfraz8 contributions
fbartho
fbartho3 contributions
toc-me[bot]Bot
toc-me[bot]3 contributions
JonasJurczok
JonasJurczok2 contributions
seiffert
seiffert2 contributions
HoughIO
HoughIO1 contribution
hkdobrev
hkdobrev1 contribution
sburns
sburns1 contribution

Languages

View on GitHub →
Shell73.6%
Makefile16.4%
Dockerfile10%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 4y ago
See all on GitHub →
dguo
Note that GitHub supports automatic deletion nativelyOpenIssue

Hi, it might be worth noting in the README that GitHub has a native feature for this now.

dguo · 6y ago
paambaati
docs: Replace HCL with YML examplesOpenPR

Should fix #25.

paambaati · 6y ago
rdegges
Doesn't run after PR is mergedOpenIssue

Hey there! I'm new to GitHub actions, so if this is incorrect at all, I apologize! Here's the issue I'm seeing. I've got a repo that I'd like to use this with. We have a large team working on this project and many people are leaving stale branches around. Anyhow, I went ahead and created a GitHub workflow as defined below (using the new yaml syntax): When I open a new pull request on this repo, this workflow runs and exits without doing anything (since the PR hasn't been merged). When I merge the PR, however, this workflow doesn't run because it's only running on , and GitHub doesn't consider a merged PR to be a pull_request event, apparently. I wonder if this behavior has changed since this was first built? Anyhow: I can't seem to find a way to get this to run. Am I way off, or did GitHub change the way that the event works?

rdegges · 6y ago

Recent fixes

View closed PRs →
abrauner
Adding meta-data for github action and hint to the automatic branch deletion as github.com featureMergedPR

I started using this action before I figured out that a new feature might make this obsolete. Also after every run there was a hint in the run-overview that parameters are not officially recognised. This was due to missing meta-data for the github action. Please feel free to accept or decline the PR if it does not make sense. It's a super small change that just might help others to figure things out faster. There was an Issue #5 mentioning the github blog post where branch-deletion is mentioned.

abrauner · 2y ago
plutov
Provide YAML exampleClosedIssue

Currently Github Actions support YAML workflow format. I guess README should be updated with YAML example.

plutov · 3y ago
HoughIO
Removal of neutral status codeMergedPR

With the change to YAML and the new CICD oriented actions, we lost the ability to use exit code 78. This is switching to status code 0 to show success as oppose to a failure on a status check. https://help.github.com/en/articles/virtual-environments-for-github-actions#exit-codes-and-statuses

HoughIO · 6y ago
Structured data for AI agents

Repository: jessfraz/branch-cleanup-action. Description: A GitHub action to automatically delete the branch after a pull request has been merged. Stars: 422, Forks: 59. Primary language: Shell. Languages: Shell (73.6%), Makefile (16.4%), Dockerfile (10%). License: MIT. Open PRs: 1, open issues: 4. Last activity: 4y ago. Community health: 42%. Top contributors: jessfraz, fbartho, toc-me[bot], JonasJurczok, seiffert, HoughIO, hkdobrev, sburns, mrwacky42, cclauss.

·@ofershap

Replace github.com with gitshow.dev