项目作者: instantish

项目描述 :
Automatically closes milestones that are at 100% ✨
高级语言: TypeScript
项目地址: git://github.com/instantish/milestone-closer.git
创建时间: 2020-04-30T22:08:59Z
项目社区:https://github.com/instantish/milestone-closer

开源协议:Other

下载


Close milestones that are done

Automatically closes milestones that have more than one issue/pr and all issues/prs are marked closed.

Usage

Basic (runs every 20 minutes):

  1. name: "Close finished milestones"
  2. on:
  3. schedule:
  4. - cron: "*/20 * * * *"
  5. jobs:
  6. milestone-closer:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: instantish/milestone-closer@v1

Runs on issue and PR updates:

  1. name: "Close finished milestones"
  2. on:
  3. issues:
  4. types: [opened, deleted, closed, reopened, milestoned, demilestoned]
  5. pull_request:
  6. types: [opened, closed, reopened]
  7. jobs:
  8. milestone-closer:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: instantish/milestone-closer@v1

Uses a different minimum number of issues:

  1. name: "Close finished milestones"
  2. on:
  3. schedule:
  4. - cron: "*/20 * * * *"
  5. jobs:
  6. milestone-closer:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: instantish/milestone-closer@v1
  10. with:
  11. min-issues: 3

See action.yml for the full list of options.

Debugging

To see debug ouput from this action, you must set the secret ACTIONS_STEP_DEBUG to true in your repository. You can run this action in debug only mode (no actions will be taken on your milestones) by passing debug-only true as an argument to the action.

Building and testing

Install the dependencies

  1. $ npm install

Build the package

  1. $ npm run build

Run the tests :heavy_check_mark:

  1. $ npm test

More Resources

For more resources or tools to make issue tracking easier, check out Instantish ⚡️

If you have questions about setting this up, feel free to reach out to hi@itsinstantish.com with subject line “Question about GitHub Action” 😊