Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Apr 5, 2023
1 parent 4ac3919 commit 151b6ad
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 24,272 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

12 changes: 0 additions & 12 deletions .github/dependabot.yml
Expand Up @@ -7,15 +7,3 @@ updates:
day: "wednesday"
labels:
- "dependencies"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
labels:
- "dependencies"

1 change: 1 addition & 0 deletions .github/workflows/update-major-version.yml
Expand Up @@ -12,6 +12,7 @@ on:
description: The major version tag to update
options:
- v2
- v3

jobs:
tag:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc.json

This file was deleted.

20 changes: 15 additions & 5 deletions README.md
Expand Up @@ -6,9 +6,21 @@ A GitHub action to close an issue.

## Usage

| :exclamation: Using this action is no longer necessary |
|-----------------------------------------------------------|

The same functionality exists in the GitHub CLI. See the documentation [here](https://cli.github.com/manual/gh_issue_close).
```yml
- name: Close Issue
run: gh issue close --comment "Auto-closing issue" "1"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

If you prefer to use this action:
```yml
- name: Close Issue
uses: peter-evans/close-issue@v2
uses: peter-evans/close-issue@v3
with:
issue-number: 1
comment: Auto-closing issue
Expand All @@ -28,7 +40,7 @@ jobs:
steps:
- if: startsWith(github.event.issue.title, 'ABC-') != 'true'
name: Close Issue
uses: peter-evans/close-issue@v2
uses: peter-evans/close-issue@v3
with:
comment: |
Issue title must start with 'ABC-'.
Expand All @@ -38,16 +50,14 @@ jobs:
### Close issue and add label(s)
```yml
- name: Close Issue
uses: peter-evans/close-issue@v2
uses: peter-evans/close-issue@v3
with:
issue-number: 1
comment: Auto-closing issue
labels: |
wontfix
```

> Add multiple labels separated by comma
### Action inputs

| Name | Description | Default |
Expand Down

0 comments on commit 151b6ad

Please sign in to comment.