Comments (6)
Hi @Jared-Dev , sound reasonable. I don't have a lot of bandwidth at the moment, but looking at your profile you're comfortable with javascript and probot apps. If you want to you can open a PR. 😄
from delete-merged-branch.
If I have some time open up I can try to take a stab. Can you point me in a sensible direction or basic structure you'd like to see?
from delete-merged-branch.
You need to extract the label from the issue, this is part of the event payload.
You probably want to look at an implementation that is similar to what is happening here:
delete-merged-branch/lib/delete-merged-branch.js
Lines 16 to 19 in be6c5ba
in the snippet above it looks in de app config for branchnames to exclude.
from delete-merged-branch.
Since exclude
is in use, do you have a preference on the name? I've started working on it a bit (I also don't have much bandwidth atm) and just added excludeLabels
, but I really don't have much of an opinion there so...
from delete-merged-branch.
Something like "Don't delete if label exists" or "Delete only if label exists" would be a very good feature to have in my opinion. The option 2) can even help with #8
from delete-merged-branch.
Closing this feature request as it won't be implemented anytime soon. (Feel free to open a pr yourself if you want to see this functionality added)
from delete-merged-branch.
Related Issues (20)
- feature request: auto docker push HOT 1
- GItHub: Automatically delete head branches of pull requests HOT 2
- config to delete closed PR HOT 2
- hey your NPM_TOKEN is invalid HOT 5
- Github Teams Support HOT 4
- Move to GitHub Actions
- This feature already exists HOT 1
- This appears to have stopped working on our org repos HOT 21
- Not working in github action HOT 3
- It is dangerous the master branch is not protected by default HOT 1
- Automatic change of base branch does not work HOT 1
- Exclude branches in Git Actions HOT 2
- Only delete on certain base branches HOT 4
- Deprecated error object key HOT 2
- Upgrade Probot to the latest version HOT 1
- Upgrade Action to use node 16 instead of node 12 HOT 1
- feat: delete except specific branches HOT 1
- could this please be expanded to use pull_request_target?
- Unable to delete branches suddenly HOT 9
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 delete-merged-branch.