Skip to content

ci: add GitHub Actions auto-labeling for PRs #32

Description

@Rome-1

What

Add a GitHub Actions workflow that auto-labels PRs based on title prefix and changed files.

Why

As community contributions grow, manual labeling doesn't scale. Auto-labeling helps triagers and contributors see at a glance what a PR does.

Rules

By title prefix:

Prefix Label
`feat:` `enhancement`
`fix:` `bug`
`test:` `testing`
`docs:` `documentation`
`pattern:` `secret-pattern`

By changed files:

Path pattern Label
`node/src/scanners/secret-patterns.ts` `secret-pattern`
`python/rafter_cli/scanners/secret_patterns.py` `secret-pattern`
`recipes/**` `documentation`
`node/tests/` or `python/tests/` `testing`

File to create

`.github/workflows/auto-label.yml` — use `actions/labeler@v5` or a simple conditional workflow.

Reference

See https://github.com/actions/labeler for the standard approach.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions