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.
We detect users without profile pictures by sending 2 requests:
- Their actual profile image, e.g. https://github.com/teamreadme.png
- 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.
Optional The label to apply to users without a profile picture. Default "faceless"
.
Optional Automatically close issues created by users without a profile picture. Default false
.
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'
Thanks to @davidhemphill for the inspiration!
Before creating a new release, make sure to compile the action using ncc build index.js --license LICENSE
.