Skip to content

A NO-FREE-USAGE action for github. (Only worked with github action.)

License

Notifications You must be signed in to change notification settings

fluttercandies/no-free-usage-action

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

NO-FREE-USAGE action

GitHub release (latest by date)

Language: English | 中文简体

A NO-FREE-USAGE action for github. (Only worked with github action.)

TL;DR

Sometimes you don't want some own the permission to file an issue on your repository, especially when you are being volunteered by this person to do a free bang job for him/her. It's wasting time if you always close them manually. So here we provide an action to detect whether the user starred or forked or both done, then close & lock the issue if they don't.

image

How to use it?

  • Create a yml file, such as checker.yml, under .github/workflow/ directory.
  • Waiting for someone to file an issue.

Simple usage

on:
  issues:
    types: [opened, reopened]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v2
    - name: Check issue actor
      uses: fluttercandies/[email protected]
      with:
        token: ${{ secrets.GITHUB_TOKEN }}

Parameters list

Name Description Required Default value Supported value
token GitHub token for issue handling authorization. true *************************** ${{ secrets.GITHUB_TOKEN }}
forked Whether required user forked the repository. false -f -f / --no-forked
starred Whether required user starred the repository. false -s -s / --no-starred
event_path Event original file path for github workflow. false *************************** /github/workflow/event.json
words Reply content when closing. (Can be Markdown) false Please file the issue after you starred and forked the repo. Thanks! 🙂 Any strings