feat: add GitHub Actions workflows for automatic labeling of PRs#3134
feat: add GitHub Actions workflows for automatic labeling of PRs#3134AaronGoldsmith wants to merge 1 commit intoblock:mainfrom
Conversation
| # Demonstration of labeler for initial Pull Request commit | ||
| labeler: | ||
| - changed-files: | ||
| - any-glob-to-any-file: '.github/labeler.yml' |
There was a problem hiding this comment.
The purpose of adding this was so reviewers could better understand how the labeler works, but it looks like it needs approvals from maintainers to run. https://github.com/block/goose/actions/runs/15937664559
Let me know if I should remove this bit.
|
@DOsinga can we use this with your proposed labeling? |
|
pretty neat! my labelling proposal was mostly meant for issues, not for PRs but still. maybe we can get goose at some point to do the issue labelling... |
| - '**/*.tsx' | ||
| - '**/*.ts' | ||
| - '**/*.js' | ||
| - '**/*.jsx' |
There was a problem hiding this comment.
I wanted to call out that the Goose docs are written in typescript, which might not fit under "ui". I'll let others provide their opinions
|
actually I think the docs are in markdown - there's some ts plumbing though |
|
closing due to inactivity. feel free to reopen |
Github supports organizing issues/pull requests using labels.
This pull request introduces automated labeling for pull requests based on file changes, using GitHub Actions. It includes configuration for label rules, workflows to add labels when a pull request is opened, and workflows to synchronize labels when a pull request is updated or reopened.
Configuration for automated labeling:
.github/labeler.yml: Added rules to assign labels based on file paths and patterns, covering areas like documentation, CLI, Rust backend, UI/Desktop application, Windows-specific changes, and dependency updates.Workflows for applying and synchronizing labels:
.github/workflows/add-labels.yml: Created a workflow to apply labels to pull requests when they are opened, using theactions/labelerGitHub Action..github/workflows/sync-labels.yml: Created a workflow to synchronize labels on pull requests when they are updated or reopened, ensuring labels stay consistent with changes.