Comments (5)
I've been messing around w/ this too. I tried to add a filter action like
action "pull request is closed" {
uses = "actions/bin/filter@master"
args = "action closed"
}
action "delete closed PR" {
uses = "jessfrazz/merge-branch-cleanup@master"
needs = "pull request is closed"
secrets = ["GITHUB_TOKEN"]
}
but in practice, this doesn't work because the "pull request is closed" action will return neutral status, thereby canceling the "delete closed PR" action. This cancelation is marked as a negative/red check on the PR, and if you have controls that only allow fully-passing PRs to be merged, this PR now can't be merged. This check is done within the script in this repo here.
From what I know about Actions right now, it seems like this needs to run on every pull-request
event.
from branch-cleanup-action.
They are working on changes with exit codes to make it cleaner when you use something like a filter so itโs not red.
But all support for actions and requests like that need to go to support@ not this repo sorry.
from branch-cleanup-action.
from branch-cleanup-action.
I've had similar thoughts about how to define different "filters" to trigger the branch cleanup.
I ended up copying some of this repo into my own here - https://github.com/distantcam/github-actions
I took this action, removed the conditionals, and then used filter actions to replace those conditionals. The result works, but it looks ugly and confusing in the UI right now.
from branch-cleanup-action.
Can you internally bump some of those emails? Feels like sending to /dev/null right now :)
from branch-cleanup-action.
Related Issues (12)
- this Action has been cancelling other actions in the same workflow HOT 2
- Do not delete branch if it is a base branch of another PR HOT 2
- Minor: If a branch gets deleted by an engineer, this action fails the commit HOT 2
- Do not attempt deleting protected branches
- Use Base instead of head repository HOT 2
- Doesn't run after PR is merged HOT 2
- Provide YAML example HOT 1
- Note that GitHub supports automatic deletion natively HOT 2
- What happens if a PR is closed and then reopened before the action is completed? HOT 2
- No license? HOT 1
- Deleting the branch ref triggers delete of another PR branched off this branch HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from branch-cleanup-action.