Skip to content
bell-off

GitHub Action

No Free Usage Action

v1.0.1 Latest version

No Free Usage Action

bell-off

No Free Usage Action

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: No Free Usage Action

uses: fluttercandies/no-free-usage-action@v1.0.1

Learn more about this action in fluttercandies/no-free-usage-action

Choose a version

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/no-free-usage-action@v1.0.1
      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