Skip to content

uhyo/please-star-first

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

Repository files navigation

Please Star First GitHub Action

This GitHub Action automatically closes issues opened by non-stargazers.

Feel free to try out in this repository!

Usage

on:
  issues:
    types: [opened, reopened]

jobs:
  greet:
    runs-on: ubuntu-latest
    name: Close issue opened by non-stargazer
    steps:
      - name: close
        uses: uhyo/please-star-first@v2

Options

This action works out of the box, but you can customize the issue comment posted by GitHub Actions upon closing the issue by setting the message input.

Also, you can change the close reason by setting the close_reason input. The default is not_planned.

Example with options:

- name: close
  uses: uhyo/please-star-first@v2
  with:
    message: |
      Your kind message on why you want them to star the repository
      before opening an issue.
    close_reason: completed # or "not_planned"

About

GitHub Action that automatically closes issues opened by non-stargazers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •