Skip to content

Repository files navigation

Auto Label

Release

Reusable GitHub Action for auto-labeling pull requests and issues based on commits, files, and changes.

Usage

name: Auto Labelon:
pull_request:
types: [opened, synchronize, reopened]issues:
types: [opened]jobs:
label:
runs-on: ubuntu-latestpermissions:
pull-requests: writeissues: writesteps:
- uses: libnudget/auto-label@v1

To use a GitHub App token, pass it as GH_TOKEN or GITHUB_TOKEN.

What it does

For PRs:

  • Bump labels: major (BREAKING CHANGE), minor (feat), patch (fix)
  • Area labels: ci (.github changes), docs (docs changes), test (test changes)
  • Size labels: size/s (<50 lines), size/m (<200), size/l (<500), size/xl (500+)

For Issues:

  • Type labels: bug, enhancement, security, docs, test based on title and body content
  • Emoji reactions: 🎉 (enhancement), 👀 (security), 😕 (question) based on title and body content

Requirements

  • Repository must have labels: major, minor, patch, ci, docs, test, size/s, size/m, size/l, size/xl, bug, enhancement, security

About

Labels issues and pull requests.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors