A simple action that closes the issue. Intended for use with the issue events.
on:
issues:
types: [ opened ]
jobs:
SampleWorkflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Close Issue
uses: ActionsDesk/close-issue-action@release/v1
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
GITHUB_TOKEN
: Personal Access Token (PAT) of a member of the organization that has privileges to close issues
The action needs to create an Octokit context that has permissions to update issues (in this case simply updating the state)
See anything you would like to help with? Please submit PR's, and ensure you write tests covering your new functionality. (CI and a more complete test suite to be written 😄 )
All code and documentation in this repository are licensed under the MIT License