From f860978c955d409bfe2bff45f3c1973b9bb2e511 Mon Sep 17 00:00:00 2001 From: Tian1996 <40369357+Tian1996@users.noreply.github.com> Date: Mon, 22 Jun 2026 08:03:41 +0800 Subject: [PATCH] fix: include parent bounty in seeded issues --- .github/workflows/seed-issues.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/seed-issues.yml b/.github/workflows/seed-issues.yml index 3de0bdaa6..8c108eb83 100644 --- a/.github/workflows/seed-issues.yml +++ b/.github/workflows/seed-issues.yml @@ -15,9 +15,21 @@ jobs: uses: actions/github-script@v7 with: script: | + const parentBountyTitle = "Bug Bounty Program — How to Participate"; + const existingIssues = await github.paginate(github.rest.issues.listForRepo, { + owner: context.repo.owner, + repo: context.repo.repo, + state: "all", + per_page: 100 + }); + const parentBountyIssue = existingIssues.find((issue) => ( + !issue.pull_request && issue.title === parentBountyTitle + )); + const bountyBody = (description) => [ description, "", + ...(parentBountyIssue ? [`Parent bounty: #${parentBountyIssue.number}`, ""] : []), "## Acceptance Criteria", "", "- Keep the pull request focused.",