Giter VIP home page Giter VIP logo

Comments (7)

srvaroa avatar srvaroa commented on May 29, 2024

Hi, thanks for suggesting this!

from labeler.

srvaroa avatar srvaroa commented on May 29, 2024

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.

maninder-singh-liqid avatar maninder-singh-liqid commented on May 29, 2024

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.

srvaroa avatar srvaroa commented on May 29, 2024

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.

srvaroa avatar srvaroa commented on May 29, 2024

@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.

maninder-singh-liqid avatar maninder-singh-liqid commented on May 29, 2024

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.

srvaroa avatar srvaroa commented on May 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.