feat: add GitHub Actions workflows for automatic labeling of PRs #3134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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/labeler
GitHub 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.