Go to file
Peter Evans 365dab945c
Merge pull request #339 from peter-evans/update-distribution
Update distribution
2021-12-02 10:33:30 +09:00
.github/workflows Update default branch 2021-05-12 16:44:33 +09:00
dist Update distribution 2021-12-02 01:32:53 +00:00
src Set error type to any 2021-09-02 14:08:46 +09:00
.eslintignore Add action 2020-05-04 16:00:42 +09:00
.eslintrc.json fix: remove unnecessary prettier config 2021-03-16 11:53:47 +09:00
.gitignore Add action 2020-05-04 16:00:42 +09:00
.prettierignore Add action 2020-05-04 16:00:42 +09:00
.prettierrc.json Add action 2020-05-04 16:00:42 +09:00
action.yml Fix input default 2020-05-05 14:55:53 +09:00
jest.config.js Add action 2020-05-04 16:00:42 +09:00
LICENSE Initial commit 2020-05-04 12:00:59 +09:00
package-lock.json Update dependencies 2021-12-02 01:27:00 +00:00
package.json Update dependencies 2021-12-02 01:27:00 +00:00
README.md Update readme 2020-08-04 15:50:16 +09:00
tsconfig.json Add action 2020-05-04 16:00:42 +09:00

Close Issue

CI GitHub Marketplace

A GitHub action to close an issue.

Usage

      - name: Close Issue
        uses: peter-evans/close-issue@v1
        with:
          issue-number: 1
          comment: Auto-closing issue

Close issues where the title does not match a specified prefix

This is just an example to show one way in which this action can be used.

on:
  issues:
    types: [opened]
jobs:
  titlePrefixCheck:
    runs-on: ubuntu-latest
    steps:
      - if: startsWith(github.event.issue.title, 'ABC-') != 'true'
        name: Close Issue
        uses: peter-evans/close-issue@v1
        with:
          comment: |
            Issue title must start with 'ABC-'.
            Auto-closing this issue.            

Action inputs

Name Description Default
token GITHUB_TOKEN or a repo scoped PAT. GITHUB_TOKEN
repository The GitHub repository containing the issue. Current repository
issue-number The number of the issue to close. github.event.issue.number
comment A comment to make on the issue before closing.

Accessing issues in other repositories

You can close issues in another repository by using a PAT instead of GITHUB_TOKEN. The user associated with the PAT must have write access to the repository.

License

MIT