mirror of
https://github.com/d3ward/toolz.git
synced 2025-02-23 23:34:19 +08:00
Update issue-checker.yml
This commit is contained in:
parent
b13a1f1cd7
commit
1e96e55457
1 changed files with 7 additions and 2 deletions
9
.github/workflows/issue-checker.yml
vendored
9
.github/workflows/issue-checker.yml
vendored
|
@ -33,9 +33,14 @@ jobs:
|
|||
"Test Result:",
|
||||
];
|
||||
|
||||
// Helper function to check if a required field is missing
|
||||
// Helper function to check if a required field is actually filled
|
||||
const isFieldMissing = (field) => {
|
||||
return !issue.body.includes(field) || issue.body.includes(field + " ");
|
||||
// Regex to find the field and any subsequent text
|
||||
const fieldRegex = new RegExp(`${field}\\s*:\\s*(.+)`);
|
||||
const match = issue.body.match(fieldRegex);
|
||||
|
||||
// Check if the field is present and has content after the colon
|
||||
return !match || match[1].trim().length === 0;
|
||||
};
|
||||
|
||||
// Find all missing fields
|
||||
|
|
Loading…
Reference in a new issue