Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
tweaks to checks
grohith32761918344988c
diff --git a/.github/policy/enforce-issue-intake.mjs b/.github/policy/enforce-issue-intake.mjsindex bc3d958b..e5dd2d44 100644--- a/.github/policy/enforce-issue-intake.mjs+++ b/.github/policy/enforce-issue-intake.mjs@@ -5,6 +5,7 @@ import {addLabels,ensureLabel,githubRequest,+ paginate,removeLabel,repoContext,upsertIssueComment,@@ -30,6 +31,13 @@ function missingFieldsText(fields) {return fields.map((field) => `- ${field}`).join("\n");}+async function existingBugWarningComment(context, issueNumber) {+ const comments = await paginate(+ `/repos/${context.owner}/${context.repo}/issues/${issueNumber}/comments`,+ );+ return comments.find((comment) => comment.body?.includes(BUG_MARKER));+}+async function enforceBugIssue(context, issue) {const result = validateBugIssue(issue.body ?? "");@@ -66,6 +74,9 @@ async function closeStaleReproductionIssues(context) {const results = await githubRequest("GET", `/search/issues?q=${query}&per_page=100`);for (const issue of results.items) {+ const warningComment = await existingBugWarningComment(context, issue.number);+ if (!warningComment) continue;+await upsertIssueComment(context,issue.number,@@ -97,6 +108,9 @@ async function main() {const issue = event.issue;if (!issue || issue.pull_request) return;+ const warningComment = await existingBugWarningComment(context, issue.number);+ if (event.action !== "opened" && !warningComment) return;+const labels = issue.labels.map((label) =>typeof label === "string" ? label : label.name,);diff --git a/.github/policy/enforce-pr-policy.mjs b/.github/policy/enforce-pr-policy.mjsindex 343a68ae..05aec283 100644--- a/.github/policy/enforce-pr-policy.mjs+++ b/.github/policy/enforce-pr-policy.mjs@@ -41,6 +41,13 @@ async function changedFiles(context, pullNumber) {return files.map((file) => file.filename);}+async function existingWarningComment(context, pullNumber) {+ const comments = await paginate(+ `/repos/${context.owner}/${context.repo}/issues/${pullNumber}/comments`,+ );+ return comments.find((comment) => comment.body?.includes(MARKER));+}+function failureBody(result) {const missingList = result.missing.map((field) => `- ${field}`).join("\n");const visualFiles = result.visualFiles.length@@ -60,7 +67,7 @@ function failureBody(result) {].join("\n");}-async function enforceOne(context, pr, { closeExpired, failOnInvalid }) {+async function enforceOne(context, pr, { closeExpired, failOnInvalid, warningComment }) {const files = await changedFiles(context, pr.number);const result = validatePullRequest({ body: pr.body ?? "", changedFiles: files });@@ -78,10 +85,14 @@ async function enforceOne(context, pr, { closeExpired, failOnInvalid }) {labelsToAdd.push(LABELS.screenshots.name);}+ warningComment ??= await existingWarningComment(context, pr.number);await addLabels(context, pr.number, labelsToAdd);await upsertIssueComment(context, pr.number, MARKER, failureBody(result));- const expired = !pr.draft && hoursSince(pr.created_at) >= HOURS_BEFORE_CLOSE;+ const expired =+ !pr.draft &&+ warningComment?.created_at &&+ hoursSince(warningComment.created_at) >= HOURS_BEFORE_CLOSE;if (closeExpired && expired) {await githubRequest("PATCH", `/repos/${context.owner}/${context.repo}/pulls/${pr.number}`, {state: "closed",@@ -119,15 +130,29 @@ async function main() {if (eventName === "schedule" || eventName === "workflow_dispatch") {const pulls = await openPullRequests(context);for (const pr of pulls) {- await enforceOne(context, pr, { closeExpired: true, failOnInvalid: false });+ const warningComment = await existingWarningComment(context, pr.number);+ if (!warningComment) continue;++ await enforceOne(context, pr, {+ closeExpired: true,+ failOnInvalid: false,+ warningComment,+ });}return;}const event = eventPayload();+ const warningComment = await existingWarningComment(context, event.pull_request.number);++ if (event.action !== "opened" && !warningComment) {+ return;+ }+await enforceOne(context, event.pull_request, {closeExpired: true,failOnInvalid: true,+ warningComment,});}diff --git a/.github/policy/github-policy.mjs b/.github/policy/github-policy.mjsindex c6b8d48a..149d4d6a 100644--- a/.github/policy/github-policy.mjs+++ b/.github/policy/github-policy.mjs@@ -1,10 +1,11 @@const PLACEHOLDER_PATTERNS = [- /brief description of what this pr does/i,- /add screenshots or video recording/i,- /issue number if applicable/i,- /what you expected to happen/i,- /what actually happened/i,- /steps to reproduce/i,+ /^brief description of what this pr does(?: and why it is needed)?\.?$/i,+ /^add screenshots or video recording.*$/i,+ /^attach screenshots or a video.*$/i,+ /^closes #?\(issue number.*$/i,+ /^what you expected to happen\.?$/i,+ /^what actually happened\.?$/i,+ /^steps to reproduce:?$/i,/^\s*(n\/a|none|todo|tbd|\.\.\.)\s*$/i,];