Skip to content

Commit

Permalink
chore: fix autolabeler (#54916)
Browse files Browse the repository at this point in the history
### What?

Follow-up of #54824

### Why?

Correctly detect the section to look for while autolabeling. The text currently being searched is not present in the issue body, just the template. Example: #54911 where "App Router" is present but was not detected.
  • Loading branch information
balazsorban44 authored Sep 2, 2023
1 parent 53d6da6 commit 7a871a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/issue-validator/autolabel/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/issue-validator/src/autolabel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function run() {

const matchSection = issue_body
.split('Which area(s) are affected? (Select all that apply)')[1]
?.split('Another way you can help the maintainers')[0]
?.split('### Additional context')[0]

if (!matchSection) {
console.log(
Expand Down

0 comments on commit 7a871a9

Please sign in to comment.