Skip to content

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

Update github workflow

grohith327d142f1ee71a3
diff --git a/.github/policy/enforce-awaiting-response.mjs b/.github/policy/enforce-awaiting-response.mjs
index e6f21fed..3ffc7ba6 100644
--- a/.github/policy/enforce-awaiting-response.mjs
+++ b/.github/policy/enforce-awaiting-response.mjs
@@ -12,9 +12,8 @@ import {
const LABEL = {
name: "awaiting response",
color: "FBCA04",
- description: "Older issue will close after three days unless this label is removed.",
+ description: "Issue will close after three days unless this label is removed.",
};
-const CUTOFF = new Date("2026-07-08T00:00:00Z");
const DAYS_BEFORE_CLOSE = 3;
const CLOSE_MARKER = "<!-- fluidvoice-awaiting-response-close -->";
@@ -22,10 +21,6 @@ function eventPayload() {
return JSON.parse(readFileSync(process.env.GITHUB_EVENT_PATH, "utf8"));
}
-function isOlderIssue(issue) {
- return !issue.pull_request && new Date(issue.created_at) < CUTOFF;
-}
-
async function latestLabelTime(context, issueNumber) {
const events = await paginate(
`/repos/${context.owner}/${context.repo}/issues/${issueNumber}/events`,
@@ -44,7 +39,7 @@ async function latestLabelTime(context, issueNumber) {
}
async function warnOrClose(context, issue, now = new Date()) {
- if (!isOlderIssue(issue)) return;
+ if (issue.pull_request) return;
const labeledAt = await latestLabelTime(context, issue.number);
if (!labeledAt) return;
@@ -69,9 +64,8 @@ async function warnOrClose(context, issue, now = new Date()) {
}
async function scanLabeledIssues(context) {
- const cutoff = CUTOFF.toISOString().slice(0, 10);
const query = encodeURIComponent(
- `repo:${context.owner}/${context.repo} is:issue is:open created:<${cutoff} label:"${LABEL.name}"`,
+ `repo:${context.owner}/${context.repo} is:issue is:open label:"${LABEL.name}"`,
);
let page = 1;
diff --git a/.github/workflows/awaiting-response.yml b/.github/workflows/awaiting-response.yml
index bd8be6f4..c51fb42f 100644
--- a/.github/workflows/awaiting-response.yml
+++ b/.github/workflows/awaiting-response.yml
@@ -1,4 +1,4 @@
-name: Close Older Issues Awaiting Response
+name: Close Issues Awaiting Response
on:
issues:
@@ -15,7 +15,7 @@ permissions:
jobs:
awaiting-response:
- name: Close older issues awaiting response
+ name: Close issues awaiting response
runs-on: ubuntu-latest
steps:
- name: Checkout policy from default branch
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 8f409181..0a39472b 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -39,7 +39,7 @@ jobs:
Closing this pull request because it remained inactive for 2 days
after being marked stale.
- exempt-issue-labels: keep-open,pinned,needs reproduction
+ exempt-issue-labels: keep-open,pinned,needs reproduction,awaiting response
exempt-pr-labels: keep-open,pinned,needs PR template,needs screenshots
exempt-draft-pr: true
remove-stale-when-updated: true