[mod] github: convert issue templates to yaml forms

This commit is contained in:
vojkovic
2026-09-13 08:31:34 +00:00
committed by Brock Vojkovic
parent 42829cecd6
commit 230c3632d9
7 changed files with 164 additions and 129 deletions

View File

@@ -8,7 +8,7 @@ module.exports = async ({ github, context }) => {
// https://github.com/searxng/searxng/pull/6476#discussion_r3683782481
const hasBox = /\[[Xx]\].*AI Policy/.test(body);
const hasRef = /\[AI Policy\]:\s*https:\/\/github\.com\/searxng\/searxng\/.*AI_POLICY/.test(body);
const hasRef = /\[AI Policy\](?::\s*|\()https:\/\/github\.com\/searxng\/searxng\/.*AI_POLICY/.test(body);
if (hasBox && hasRef) {
return;
}