add-autoresponse is a GitHub Action that automatically adds a preconfigured response to commentable items.
add-autoresponse requires the following inputs:
respondableId
: The GraphQL node id of the issue, pull request or other commentable content that the autoresponse will be added toresponse
: The message to be left as the autoresponseauthor
: The author of the event that triggered the workflow
In addition, the following optional inputs are accepted:
exemptedAuthors
: A comma-separated string of logins that are exempt from the autoresponse
Here's an example workflow that adds a comment to all new issues that aren't created by exempted authors.
name: Issue Autoresponse
on:
issues:
types: [opened]
jobs:
auto-response:
runs-on: ubuntu-latest
steps:
- uses: derekprior/add-autoresponse@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
respondableId: ${{ github.event.issue.node_id }}
response: "Maintenance Mode!"
author: ${{ github.event.issue.user.login }}
exemptedAuthors: "johnsmith, janedoe"