-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
This issue is to add a new matchLabel rule condition to the rules engine.
Overview
Currently, gong supports matching reviewers based on name patterns using the matchName condition. This issue proposes adding a new matchLabel condition that would allow rules to be applied based on the PR title matching specific patterns.
Implementation Details
- Update the
Rulestruct ininternal/rules/rules.goto include a newMatchLabelfield - Modify the rule matching logic in
ApplyRulesfunction to check PR titles against patterns - Add support for parsing the new condition from the config file
- Pass the PR title from the GitHub API response to the rules engine
Acceptance Criteria
- Users can define rules that match based on PR label
- Rules can combine both
matchNameandmatchTitleandmatchLabelconditions - The new condition is properly documented in the configuration guide
- Unit tests are added to verify the functionality
- Update examples in the configuration documentation
References
The existing matchName implementation can be used as a reference.