Comments (7)
Hi, thanks for suggesting this!
from labeler.
Hi @maninder-singh-liqid I have been double checking this and I think the behaviour you describe is the current one. There is a unit test for this here: https://github.com/srvaroa/labeler/blob/master/pkg/labeler_test.go#L88
Can you provide more info about the specific case you're seeing? Is the existing label the same as one set in the rules, or different?
from labeler.
I investigated. The existing label is the same which is used in the rules. I wouldn't say it is a bug. But a feature based on use case of different projects.
The labels which are not used in the rules are not removed as expected.
from labeler.
Thanks @maninder-singh-liqid, the problem I see with that feature is that we'd have to check who placed the label in the first place to distinguish labels set by the user vs. labels set by the rule in a previous execution. AFAIK the GitHub API does not expose that information so it becomes hard to implement it.
from labeler.
@maninder-singh-liqid a valid option could be to add a configuration switch that will ONLY add append labels, but not remove them. There is a nuance: it will never remove them, regardless of who added them (e.g. if the action matches a rule to add a tag, but later the rule does not match, the label will stay). Would this suit you case?
from labeler.
that is an option to ponder on. For my use case the current behaviour is fine. thanks for your follow up.
May be having that option would benefit someone.
from labeler.
@maninder-singh-liqid I pushed a PR in the fix.42
branch. If you can give it a go to confirm this does what you expect that'd be great.
Thanks
from labeler.
Related Issues (20)
- Negative lookahead is not supported HOT 6
- Some regex not working in filter via property HOT 4
- Build fails due to missing imports `gopkg.in/check.v1` & `gopkg.in/yaml.v2` HOT 3
- Docker build failed HOT 4
- Add support for issues HOT 5
- [Feature] Naming labels based on regex capture groups HOT 1
- Ignore files in PR Size condition HOT 3
- Semantic versioning HOT 5
- [Feature] support local config file HOT 2
- Cannot run the action since 1.6.2 release: action.tar.gz not found HOT 4
- [Labeler] job no more working -- Docker build failed with exit code 1 HOT 2
- Avoid referencing `latest` in Dockerfile HOT 2
- label based on name of PR target branch HOT 3
- `appendOnly: true` doesn't seem to work HOT 4
- ~~What flavour of regex is being used ?~~ README: add info about using escape character in regexes HOT 3
- `fail_on_error: true` doesn't seem to work HOT 4
- Could a "moving" `v1` tag be added to this repo ? HOT 2
- 1.8.0 release failed HOT 2
- Enhanced label customization HOT 2
- author-can-merge: false does not seem to work HOT 13
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 labeler.