Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 995 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 995 Bytes

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.