Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uhyo/please-star-first

GitHub Action that automatically closes issues opened by non-stargazers
https://github.com/uhyo/please-star-first

actions

Last synced: about 7 hours ago
JSON representation

GitHub Action that automatically closes issues opened by non-stargazers

Awesome Lists containing this project

README

        

# Please Star First GitHub Action

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

**Feel free to try out in this repository!**

## Usage

```yml
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:

```yaml
- 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"
```