Code Monkey home page Code Monkey logo

move-stale-issues's Introduction

Move Stale Issues

sheriff

NPM

This actions moves stales issues from-milestone to target-milestone.

This project is inspired by the https://github.com/actions/stale, but, since the stale action close issues and PRs, I decided to make a simpler action that only moves the stale issues.


Config

config description default
repo-token The github token. ${{ secrets.GITHUB_TOKEN }}) *required
from-milestone The milestone name that we will look for stale issues
you can pass milestone separated by comma (Milestone1, Milestone2...)
*required
target-milestone The milestone we will move the stale issues *required
days-before-stale Total of days we consider an issue stale
0 will move all issues from-milestone to target-milestone
30
exempt-all-assignees Exempt all issues with assignees from stale false

Using with Node.js

You can also use this action in your node.js app:

npm install move-stale-issues
const { runAction } = require('move-stale-issues');

(async () => {
  await runAction('repo-owner', 'repo-name', {
    token: 'PAT',
    fromMilestone: 'From name',
    targetMilestone: 'Target name',
    daysBeforeStale: 30
  });

Workflow example

name: move-stale-issues

on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  move-stale-issues:
    runs-on: ubuntu-latest
    steps:
      - uses: Deividy/[email protected]
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          from-milestone: WIP
          target-milestone: Backlog
          days-before-stale: 60

move-stale-issues's People

Contributors

deividy avatar

Stargazers

 avatar

Watchers

 avatar

move-stale-issues's Issues

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.