From 371b89ed7cc3515f1a1721e9f5045761a7552ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9?= Date: Sat, 9 May 2026 21:19:45 +0200 Subject: [PATCH] feat : add recruitment issues from translator --- scripts/fetch-issues.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/fetch-issues.js b/scripts/fetch-issues.js index b8e6d55..dc0ebed 100644 --- a/scripts/fetch-issues.js +++ b/scripts/fetch-issues.js @@ -25,7 +25,8 @@ const ORG = 'btcpayserver' const LABEL = 'good first issue' const TESTER_LABEL_RE = /user[-\s]testing/i const TESTER_LABELS = ['User Testing', 'User-Testing'] -const WRITER_REPOS = ['btcpayserver-doc', 'blog'] +const WRITER_REPOS = ['btcpayserver-doc', 'blog', 'btcpayserver-translator'] +const WRITER_LABEL_NAME = 'recruitment' const OUT = resolve(__dirname, '../public/data/issues.json') const BODY_MAX = 600 @@ -60,7 +61,7 @@ async function main() { const { data } = await octokit.rest.issues.listForRepo({ owner: ORG, repo: repo.name, - labels: LABEL, + labels: repo.name === 'btcpayserver-translator' ? WRITER_LABEL_NAME : LABEL, state: 'open', per_page: 100, page, @@ -173,7 +174,7 @@ async function main() { return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime() }) - // ── 3c. Writer issues: "good first issue" items from doc + blog repos ─────── + // ── 3c. Writer issues: docs/blog + translator recruitment ───────────────── const writerIssues = issues.filter((i) => WRITER_REPOS.includes(i.repo.name)) console.log(`Found ${writerIssues.length} writer issues from ${WRITER_REPOS.join(', ')}`) @@ -205,6 +206,7 @@ async function main() { const json = JSON.stringify(output, null, 2) if (existsSync(OUT)) { const existing = readFileSync(OUT, 'utf8') + /** @param {string} s */ const strip = (s) => s .replace(/"lastUpdated":\s*"[^"]+"/g, '"lastUpdated":""')