Skip to content

ActionsDesk/close-issue-action

Repository files navigation

close-issue-action

A simple action that closes the issue. Intended for use with the issue events.

Usage

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 }}

Environment Variables

  • GITHUB_TOKEN: Personal Access Token (PAT) of a member of the organization that has privileges to close issues

Why is this needed

The action needs to create an Octokit context that has permissions to update issues (in this case simply updating the state)

Contributing

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 😄 )

License

All code and documentation in this repository are licensed under the MIT License

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published