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.

Add forceLabels config

See original GitHub issue

Most of our Issues on GitHub are rather user questions than actual Issues (forcing users to ask questions somewhere else doesn’t work anyway, so…). We’re using Stale bot (great work btw 👍) to automatically close these Issues after some days with no activity. The exemptLabels config (together with only: issues) is great to exclude actual bug reports, feature requests etc. from this automatism. However, after solving these Issues, we would like to keep the Issues open for some days to encourage people to actually give feedback - immediately closing a Issues always has some smack of “fixed, go away, no feedback desired”.

Thus I’d like to suggest something like a forceLabels config to overrule exemptLabels. Think of the following config:

exemptLabels:
  - bug
forceLabels:
  - solved
  • A Issues with no labels is marked as stale after 60 days and closed after 7 more days with no activity.
  • A Issue labelled with just bug is never marked as stale an thus never automatically closed.
  • A Issue labelled with both bug and solved is marked as stale after 60 days and closed after 7 more days with no activity, i.e. forceLabels: [ solved ] overrules exemptLabels: [ bug ].

#edit: This is related to #37, even though I think (not 100% sure though) that the implementation there completely ignores exemptLabels if onlyLabels is present (what I’d assume by the name of onlyLabels and by calling it “whitelist”) - whereas my suggested forceLabels and exemptLabels can (and must) co-exist. However, if one just configures forceLabels and sets exemptLabels to [], forceLabels might implicitly act like a whitelist (kill two birds with one stone 😄).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PhrozenBytecommented, Oct 9, 2018

Yep, still relevant my dear bot 😃

Would love to see this happen. I can totally understand if it has not quite the highest prio, commenting here just to keep it in the backlog.

1reaction
johljucommented, Jun 21, 2018

Sounds like there is a need for cases. First case that is true top-to-bottom will execute.

Quick example.

when:
  issues:
    onLabels:
      - solved
    exemptLabels:
      - on hold
    daysUntilStale: false
    daysUntilClose: 7
    exemptProjects: false
    exemptMilestones: false

    closeComment: >
      This issue has been automatically closed.

when:
    exemptLabels:
      - on hold
    daysUntilStale: 30
    daysUntilClose: 40
    exemptProjects: true
    exemptMilestones: true
    staleLabel: stale
    markComment: >
      This issue has been automatically marked as stale.

    closeComment: >
      This issue has been automatically closed.
Read more comments on GitHub >

github_iconTop Results From Across the Web

TylerRick/d3-force-labels - GitHub
forceLabels () returns a d3.forceSimulation() object which allows full control over the charge strength, etc. For example, to change the charge strength, ...
Read more >
forcelabels - Graphviz
Whether to force placement of all [`xlabels`](/docs/attrs/xlabel/), even if overlapping.
Read more >
to set the orientation of vertical labels
Click the General tab. Type a number between 0 and 30 degrees in the Orientation of Vertical Labels text box. Positive numbers will...
Read more >
Graphviz: Putting a Caption on a Node In Addition to a Label
To place captions outside the node, you may use xlabel : digraph g { forcelabels=true; a [label="Birth of George Washington", xlabel="See ...
Read more >
Add value labels to variables — set_labels • sjlabelled
This function adds labels as attribute (named "labels" ) to a variable or vector ... You can still add missing labels with the...
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