Skip to content
camera-off

GitHub Action

faceless-issues

v1.0 Latest version

faceless-issues

camera-off

faceless-issues

Automatically label or close issues created by users without Github avatars

Installation

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

              

- name: faceless-issues

uses: JacobReynolds/[email protected]

Learn more about this action in JacobReynolds/faceless-issues

Choose a version

🙈 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/[email protected]
        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.