Commit e736810
committed
Enhance PR description validation for flexible category matching
This commit improves the `check_pr_description` function in `validate_pr_description.py` to allow for more flexible matching of changelog categories. The changes enable the use of `startswith` for category validation, accommodating variations in category names and ensuring better compatibility with existing categories.
Key changes:
- Introduced logic to check if the category starts with or is matched by valid categories.
- Enhanced handling of "Not for changelog" categories to improve validation accuracy.
- Updated error messages for clarity in case of invalid categories.1 parent 1b3f781 commit e736810
File tree
1 file changed
+21
-3
lines changed- .github/actions/validate_pr_description
1 file changed
+21
-3
lines changedLines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
52 | 70 | | |
53 | 71 | | |
54 | 72 | | |
55 | 73 | | |
56 | | - | |
| 74 | + | |
57 | 75 | | |
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
61 | | - | |
| 79 | + | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
| |||
0 commit comments