Handle Minimal Theme issues

This commit is contained in:
Zep Fietje
2023-12-28 17:57:57 +01:00
parent d55d952518
commit 46ffe401ea
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ body:
- type: input
id: reproduction
attributes:
label: Reproduction repository
label: Reproduction repository (use demo for Minimal Theme issues)
description: The URL of a public GitHub repository which reproduces the problem. **Please do not link to your actual project**, what we need instead is a _minimal_ reproduction in a fresh project without any unnecessary code. This means it doesn\'t matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. This allows us to fix the problem much quicker. **This issue will be automatically closed and not reviewed if this is missing. Please make sure to format the URL starting with `https://github.com` - only repositories hosted on GitHub are accepted.** [Need a headstart? We have a template Filament project for you.](https://filament-issue.unitedbycode.com/)
validations:
required: true
+7
View File
@@ -29,6 +29,13 @@ jobs:
const user = context.payload.sender.login
const issue = context.payload.issue
const body = issue.body
if (body.includes('filament/minimal-theme')) {
debug('Ignoring Minimal Theme issue.')
return
}
const urlMatch = body.match(URL_REGEXP)
const reproStepsMatch = body.match(REPRO_STEPS_REGEXP)
const url = urlMatch !== null ? urlMatch[1].trim() : null