Giter VIP home page Giter VIP logo

no-free-usage-action's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.