mit einem Klick
fetch-bugfix-prs
// Fetch bug-fix PRs with linked issues from a GitHub repository. Use this when asked to find PRs that fix bugs, especially when needing to analyze the relationship between PRs and their linked issues.
// Fetch bug-fix PRs with linked issues from a GitHub repository. Use this when asked to find PRs that fix bugs, especially when needing to analyze the relationship between PRs and their linked issues.
Set up the local environment for analyzing a specific PR/issue pair. Use this before running the bug-analyzer agent to checkout the parent commit and prepare context files.
Compile bug fix proposals and validation results into a markdown report. Use this after running bug-analyzer and fix-validator on multiple PRs.
| name | fetch-bugfix-prs |
| description | Fetch bug-fix PRs with linked issues from a GitHub repository. Use this when asked to find PRs that fix bugs, especially when needing to analyze the relationship between PRs and their linked issues. |
This skill fetches pull requests that are bug fixes with linked issues from a GitHub repository.
Run the fetch.sh script with the following parameters:
./fetch.sh --repo <owner/repo> --since <YYYY-MM-DD> --until <YYYY-MM-DD> [--author <username>] [--issue-label <label>[,<label>...]] [--output <path>]
| Parameter | Required | Description | Example |
|---|---|---|---|
--author | No | GitHub username of the PR author | osortega |
--issue-label | No | Only keep linked issues whose labels contain one of these values | bug |
--repo | Yes | Repository in owner/repo format | microsoft/vscode |
--since | Yes | Start date (inclusive) | 2025-12-02 |
--until | Yes | End date (inclusive) | 2026-02-02 |
--output | No | Output file path (default: data/prs-with-issues.md) | ./results.md |
# Fetch all bug-fix PRs from the last 2 months
./.github/skills/fetch-bugfix-prs/fetch.sh \
--repo microsoft/vscode \
--since 2025-12-02 \
--until 2026-02-02
# Fetch Osvaldo's bug-fix PRs from the last 2 months
./.github/skills/fetch-bugfix-prs/fetch.sh \
--author osortega \
--repo microsoft/vscode \
--since 2025-12-02 \
--until 2026-02-02
# Fetch all March PRs linked to bug-labeled issues
./.github/skills/fetch-bugfix-prs/fetch.sh \
--repo microsoft/vscode \
--since 2026-03-01 \
--until 2026-03-31 \
--issue-label bug \
--output data/prs-with-issues-2026-03.md
The script generates a markdown file with a table:
| PR # | PR Title | Issue # | Issue Title | Issue Labels | PR Created | Issue Created | Valid | Merge Commit | Parent Commit |
|---|
gh CLI to search for PRs by author in the date rangegh CLI installed and authenticatedjq for JSON processingGitHub CLI calls are retried on primary/secondary rate-limit responses. Tune with:
GH_RETRY_MAX - retry attempts, default 5GH_RETRY_BASE_DELAY - fallback delay multiplier in seconds, default 10GH_RETRY_MAX_DELAY - maximum sleep between retries in seconds, default 300Authentication and SSO failures are not retried.