项目作者: uhyo

项目描述 :
GitHub Action that automatically closes issues opened by non-stargazers
高级语言: JavaScript
项目地址: git://github.com/uhyo/please-star-first.git
创建时间: 2020-12-01T08:14:21Z
项目社区:https://github.com/uhyo/please-star-first

开源协议:MIT License

下载


Please Star First GitHub Action

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

Feel free to try out in this repository!

Usage

  1. on:
  2. issues:
  3. types: [opened, reopened]
  4. jobs:
  5. greet:
  6. runs-on: ubuntu-latest
  7. name: Close issue opened by non-stargazer
  8. steps:
  9. - name: close
  10. 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:

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