Skip to content

JacobReynolds/faceless-issues

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🙈 Faceless Issues

This Github Action will label and optionally close issues created by users without profile pictures. This is meant to decrease the amount of low quality submissions in your repository. It is best accompanied by a warning to users, so those that follow the rules will not have their issues closed.

Detection methods

We detect users without profile pictures by sending 2 requests:

  1. Their actual profile image, e.g. https://github.com/teamreadme.png
  2. Their default identicon, e.g. https://github.com/identicons/teamreadme.png

and comparing the 2 images. If they match, the issue is labeled and optionally closed.

Inputs

label

Optional The label to apply to users without a profile picture. Default "faceless".

close

Optional Automatically close issues created by users without a profile picture. Default false.

Example usage

Paste the following into .github/workflows/faceless-issues.yml

on:
  issues:
    types: [opened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: teamreadme/faceless-issues@v1.0
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          close: true
          label: 'low-quality'

Inspiration

Thanks to @davidhemphill for the inspiration!

Deployment notes

Before creating a new release, make sure to compile the action using ncc build index.js --license LICENSE.

About

A github action to label and optionally close issues created by users without avatars

Resources

License

Stars

Watchers

Forks

Packages

No packages published