Skip to content

balevine/mark-as-spam

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mark As Spam

Use a single command to mark your GitHub issue as spam. Label, lock, and close the issue in one action.

How to set it up

Add a workflow to your GitHub repository that contains this information:

name: Spam

on: issue_comment
jobs:
  mark-as-spam:
    name: mark as spam
    runs-on: ubuntu-latest
    steps:
      - name: close issue
        uses: balevine/mark-as-spam@production
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check out GitHub's documentation to read more about adding GitHub Action workflows to your GitHub repositories.

How to use it

Once the workflow is set up in your repository, you can mark issues as spam by adding a new comment to the issue with this text:

[/spam]

If the issue comment contains other text, the `[/spam] command must be the final string in the comment.

The issue will be locked and closed and a Spam label will be applied to it.

About

GitHub Action to mark an issue as spam

Resources

License

Stars

Watchers

Forks

Packages

No packages published