Code Monkey home page Code Monkey logo

Comments (17)

damccorm avatar damccorm commented on July 24, 2024 2

@derTobsch You can specify an exempt label -

exempt-issue-label:

from stale.

xchapter7x avatar xchapter7x commented on July 24, 2024 1

i've settled on using the stale label as the exempt label.
ie.

        stale-issue-label: 'kind/stale'
        stale-pr-label: 'kind/stale'
        exempt-issue-label: 'kind/stale'
        exempt-pr-label: 'kind/stale'

this way, once the action applies the label, those issues/prs are ignored from then on and never auto-closed.

from stale.

C0ZEN avatar C0ZEN commented on July 24, 2024 1

@derTobsch late to the party but milestones exempt exists now

from stale.

damccorm avatar damccorm commented on July 24, 2024

There's not a better way yet, that seems like a good idea though. Maybe we should change the action so that -1 means never close the issue?

from stale.

damccorm avatar damccorm commented on July 24, 2024

Added #16 to do just that.

from stale.

derTobsch avatar derTobsch commented on July 24, 2024

It would be nice if there would be labels that would prevent the stale bot to stale/close a issue or maybe if a issue/pr has a milestone.

from stale.

derTobsch avatar derTobsch commented on July 24, 2024

@derTobsch You can specify an exempt label -

exempt-issue-label:

Ok. But I cannot be done with a milestone or? Or is a milestone only a label in the background?

from stale.

tac0turtle avatar tac0turtle commented on July 24, 2024

Is there a way to avoid all issues and only mark prs as stale?

from stale.

C0ZEN avatar C0ZEN commented on July 24, 2024

@marbar3778 yes, almost all options are split between issues and PRs.

from stale.

tac0turtle avatar tac0turtle commented on July 24, 2024

I have days before stale set to -1 and days before stale for PRs set to a number, yet issues are still closed.

from stale.

luketomlinson avatar luketomlinson commented on July 24, 2024

@marbar3778 Can you paste your YAML in here so we can try to recreate the issue?

from stale.

tac0turtle avatar tac0turtle commented on July 24, 2024
name: "Close stale pull requests"
on:
  schedule:
    - cron: "0 0 * * *"

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v4
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          stale-pr-message: "This pull request has been automatically marked as stale because it has not had
    recent activity. It will be closed if no further activity occurs. Thank you
    for your contributions."
          days-before-stale: -1
          days-before-pr-stale: 10
          days-before-pr-close: 4
          exempt-pr-labels: "S:wip"

from stale.

luketomlinson avatar luketomlinson commented on July 24, 2024

Hi @marbar3778, I tested with your config you provided and the behavior seemed to work as expected. Do you have any more information you can provide? Possibly a link to the run?

from stale.

tac0turtle avatar tac0turtle commented on July 24, 2024

here is a run: https://github.com/tendermint/tendermint/runs/3156950356?check_suite_focus=true.

It closed three issues the last run.

from stale.

luketomlinson avatar luketomlinson commented on July 24, 2024

ok @marbar3778 I see what is happening. You had existing stale issues example in your repo prior to making the change to not mark issues as stale. So any issues not already labeled as stale are all good and will be ignored. You can either manually go remove the stale label from old issues in your case or set days-before-close: -1.

I hope this helps!

from stale.

luketomlinson avatar luketomlinson commented on July 24, 2024

days-before-stale controls the day before an issue is labeled with the stale label, while days-before-close controls how many days an issue will remain open once it is already labeled stale

from stale.

tac0turtle avatar tac0turtle commented on July 24, 2024

ohhhh, i see, thank you

from stale.

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.