https://github.com/siegerts/pending-author-response
Remove a pending response label from an issue when the original issue author responds. 📫
https://github.com/siegerts/pending-author-response
github-action github-actions issue-management issues labelling labels triage-issues
Last synced: about 2 months ago
JSON representation
Remove a pending response label from an issue when the original issue author responds. 📫
- Host: GitHub
- URL: https://github.com/siegerts/pending-author-response
- Owner: siegerts
- License: mit
- Created: 2021-04-13T22:41:41.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T08:58:29.000Z (over 3 years ago)
- Last Synced: 2025-06-30T14:48:37.975Z (12 months ago)
- Topics: github-action, github-actions, issue-management, issues, labelling, labels, triage-issues
- Language: JavaScript
- Homepage:
- Size: 756 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Pending Author Response action 📫
Remove a `pending-response-label` from an issue, if present, when the **original issue author** responds.
Optionally, add a follow-up label (`actionable-label`) to highlight that an action is required by the team.
The labels must exist in the repo in order for the action to add them to an issue.
## Inputs
| Input | Default | Required | Description |
| ------------------------ | ------- | -------- | ------------------------------------------------------------------------------ |
| `github-token` | | true | The GitHub token used to create an authenticated client |
| `pending-response-label` | | true | Label to remove indicating that a response is required for further action |
| `actionable-label` | | false | Label added to highlight that a user has responded and a follow-up is required |
## Usage
You can use the action by referencing the v1 branch:
```yaml
name: pending-author-response
on:
issue_comment:
types: [created]
jobs:
issue_commented:
runs-on: ubuntu-latest
steps:
- uses: siegerts/pending-author-response@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pending-response-label: pending-response
```
### Adding an `actionable-label`
```yaml
name: pending-author-response
on:
issue_comment:
types: [created]
jobs:
issue_commented:
runs-on: ubuntu-latest
steps:
- uses: siegerts/pending-author-response@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pending-response-label: pending-response
actionable-label: follow-up
```
### Skip action unless the label is present on the issue and it's **not** a PR
Note: `contains(github.event.issue.labels.*.name, 'pending-response')` matches the label used in `pending-response-label` value.
```diff
name: pending-author-response
on:
issue_comment:
types: [created]
jobs:
issue_commented:
+ if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending-response') }}
runs-on: ubuntu-latest
steps:
- uses: siegerts/pending-author-response@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pending-response-label: pending-response
```