question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different label based on new/changed/removed

See original GitHub issue

I was wondering if it is either possible or desired to have a feature to: configure a label based on whether a file was newly created vs. a file was changed (vs. a file was removed).

In configuration I would imagine this could be written as follows:

"label on add":
  - on: added
  - example/**/*

"label on change":
  - on: modified
  - example/**/*

"label on remove":
  - on: removed
  - example/**/*

"label on multiple":
  - on:
    - added
    - modified
    - removed
  - example/**/*

"or if you don't care":
  - example/**/*

"and even": example/**/*

I have a working prototype at ericcornelissen/labeler (example PR added, example PR modified) which I could turn into a Pull Request for this project if there is more interest in this 😄


In practice I want to use this in simple-icons/simple-icons to label Pull Requests with either new icon or icon outdated based on whether a new icon was added or an icon was updated (respectively)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ericcornelissencommented, Jun 21, 2020

@SpencerKaiser and @ogtony, I opened a PR for this feature 👍

2reactions
SpencerKaisercommented, Apr 5, 2020

I would love to see this issue implemented because I’d like to remove the changes requested label whenever a commit is pushed to a PR I’ve reviewed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug Adapter Protocol - Microsoft Open Source
The Debug Adapter Protocol defines the protocol used between an editor or IDE and a debugger or runtime. A machine-readable JSON schema can...
Read more >
aris - report script changes - Software AG Documentation
Other company and product names mentioned herein may be trademarks of their ... New/changed/removed/deprecated constants New Changed Removed Deprecated.
Read more >
SCM - Software Configuration Management - IS MUNI
Source code and configuration versioning itself as well as labelling technique is wide spread in IT world of software development.
Read more >
Ability to load locations into the geowidget to guide data ...
We have already developed a different Mapbox based Geowidget capable ... If a feature has previously been selected, its label (from the name ......
Read more >
NiFi Rest API-1.19.1 - Apache NiFi
Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found