Skip to content

step-security/closed-issue-message

Repository files navigation

StepSecurity Maintained Action

"Closed Issue Message" Action for GitHub Actions

This action sets a default message to be commented on all issues or pull requests when they get closed.

Usage

Add a YAML workflow file into your repository under .github/workflows. This workflow file follows the standard workflow syntax for Github Actions.

For a list of options and their description, see action.yml.

Example Workflow

name: Closed Issue Message
on:
    issues:
       types: [closed]
jobs:
    auto_comment:
        permissions:
            issues: write
        runs-on: ubuntu-latest
        steps:
        - uses: step-security/closed-issue-message@v2
          with:
            # These inputs are both required
            repo-token: "${{ secrets.GITHUB_TOKEN }}"
            message: "Comments on closed issues are hard for our team to see." 

You can do a multi line comment by using a pipe:

message: |
         ### ⚠️COMMENT VISIBILITY WARNING⚠️ 
         Comments on closed issues are hard for our team to see. 
         If you need more assistance, please either tag a team member or open a new issue that references this one. 
         If you wish to keep having a conversation with other community members under this issue feel free to do so.
                                    

closed issue message example

License

This project is licensed under the Apache-2.0 License.

About

Github Action to set a default message to be commented on all issues when they get closed. Secure drop-in replacement for aws-actions/closed-issue-message.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors