3.0.2 • Published 2 years ago

move-stale-issues v3.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

configdescriptiondefault
repo-tokenThe github token. ${{ secrets.GITHUB_TOKEN }})*required
from-milestoneThe milestone name that we will look for stale issues you can pass milestone separated by comma (Milestone1, Milestone2...)*required
target-milestoneThe milestone we will move the stale issues*required
days-before-staleTotal of days we consider an issue stale0 will move all issues from-milestone to target-milestone30
exempt-all-assigneesExempt all issues with assignees from stalefalse

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/move-stale-issues@v3.1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          from-milestone: WIP
          target-milestone: Backlog
          days-before-stale: 60