Skip to content

ci: auto-label PRs by changed files#48

Merged
JeanExtreme002 merged 2 commits into
mainfrom
jeanextreme002/pr-labeler
Jun 5, 2026
Merged

ci: auto-label PRs by changed files#48
JeanExtreme002 merged 2 commits into
mainfrom
jeanextreme002/pr-labeler

Conversation

@JeanExtreme002
Copy link
Copy Markdown
Owner

Summary

Adds automatic PR labeling based on which files a pull request touches.

  • .github/workflows/labeler.yml — runs actions/labeler@v5 on PRs (opened, synchronize, reopened). Uses pull_request_target (consistent with lint-pr-title.yml) so it also covers fork PRs, with sync-labels: true to drop labels when matching files leave the diff.
  • .github/labeler.yml — the path→label rules.

This also makes real the reference to .github/workflows/labeler.yml already present in lint-pr-title.yml.

Label rules

Label Matches
docs docs/**
app PyMemoryEditor/app/**
linux PyMemoryEditor/linux/**
win32 PyMemoryEditor/win32/**
macos PyMemoryEditor/macos/**
lib PyMemoryEditor/** (any change in the package)
tests tests/**

Since lib matches all of PyMemoryEditor/**, a backend change (e.g. PyMemoryEditor/linux/) gets both its specific label and lib, as intended.

The seven labels were created in the repo with distinct colors.

@JeanExtreme002 JeanExtreme002 merged commit f63d1b8 into main Jun 5, 2026
12 checks passed
@github-actions github-actions Bot deleted the jeanextreme002/pr-labeler branch June 5, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant