From 23ce28ec02097ae6af085febe6ec582e512a6a53 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:53:45 +0000 Subject: [PATCH 1/9] Initial plan From e482761f422d9ad4898ed28401b0bea318e7675e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:55:48 +0000 Subject: [PATCH 2/9] fix: repair PR checker workflow parsing and checkout action version Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 5b4c111..c4cdbc2 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -1,6 +1,6 @@ name: PR Issue Checker -# Created my @smog-root. -on: + +'on': pull_request: types: [opened, edited] @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Check PR Description id: check_pr_description @@ -22,8 +22,8 @@ jobs: fi if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "The PR description should include 'Fixes #' if not addressing any issue." - echo "##[error]Fixes #NEW must be included in the description." + echo "The PR description should include 'Fixes #'." + echo "##[error]Fixes # must be included in the description." exit 1 fi From 0de88227441f08bd0face9907f3784ac68be5895 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:56:26 +0000 Subject: [PATCH 3/9] chore: align PR checker validation message wording Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index c4cdbc2..a898b2b 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -22,7 +22,7 @@ jobs: fi if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "The PR description should include 'Fixes #'." + echo "The PR description must include 'Fixes #'." echo "##[error]Fixes # must be included in the description." exit 1 fi From e388ddb6144f0848d27b587012633df46b0dcf4d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:56:56 +0000 Subject: [PATCH 4/9] style: restore standard GitHub Actions on key formatting Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index a898b2b..7a0d051 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -1,6 +1,5 @@ name: PR Issue Checker - -'on': +on: pull_request: types: [opened, edited] From f162b4474b3aabc43c58e6815bd8da7d01c4c4dd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:57:25 +0000 Subject: [PATCH 5/9] docs: clarify required PR issue reference format in checker message Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 7a0d051..46cc4fb 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -21,8 +21,8 @@ jobs: fi if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "The PR description must include 'Fixes #'." - echo "##[error]Fixes # must be included in the description." + echo "The PR description must include an issue reference in the format 'Fixes #123'." + echo "##[error]PR description must include 'Fixes #123' (replace 123 with your issue number)." exit 1 fi From 011f2be90caf888810df22b34d4a725c5265b957 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:57:54 +0000 Subject: [PATCH 6/9] chore: standardize PR checker error messaging format Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 46cc4fb..a3a2770 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -21,8 +21,8 @@ jobs: fi if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "The PR description must include an issue reference in the format 'Fixes #123'." - echo "##[error]PR description must include 'Fixes #123' (replace 123 with your issue number)." + echo "The PR description must include an issue reference in the format 'Fixes #' (for example: 'Fixes #123')." + echo "##[error]PR description must include 'Fixes #' (for example: 'Fixes #123')." exit 1 fi From 37924f09b6cd46c92f74c03feb7799f91d3c45a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:58:23 +0000 Subject: [PATCH 7/9] style: remove redundant PR checker log line Agent-Logs-Url: https://github.com/WeiXuChong/LibraryMan-API/sessions/e759b607-30eb-44fa-b687-1d8b7c5d0756 Co-authored-by: achanhalt <199769577+achanhalt@users.noreply.github.com> --- .github/workflows/pr-checker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index a3a2770..eff70df 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -21,7 +21,6 @@ jobs: fi if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "The PR description must include an issue reference in the format 'Fixes #' (for example: 'Fixes #123')." echo "##[error]PR description must include 'Fixes #' (for example: 'Fixes #123')." exit 1 fi From 6ca56b3a78d279778dbd052dc8dcbf9382e2dc6a Mon Sep 17 00:00:00 2001 From: LucassChong Date: Mon, 12 Oct 2026 12:17:31 +0800 Subject: [PATCH 8/9] Harden PR description validation script --- .github/workflows/pr-checker.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index eff70df..0ab0d81 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -6,26 +6,20 @@ on: jobs: check_pr_description: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Check PR Description id: check_pr_description + env: + PR_DESCRIPTION: ${{ github.event.pull_request.body }} run: | - PR_DESCRIPTION="${{ github.event.pull_request.body }}" if [[ -z "$PR_DESCRIPTION" ]]; then echo "PR description is missing." exit 1 fi - if [[ ! "$PR_DESCRIPTION" =~ Fixes\ #[0-9]+ ]]; then - echo "##[error]PR description must include 'Fixes #' (for example: 'Fixes #123')." + if [[ ! "$PR_DESCRIPTION" =~ Fixes\\ #[0-9]+ ]]; then + echo "PR description must include 'Fixes #' (for example: 'Fixes #123')." >&2 exit 1 fi echo "PR description is valid." - - - name: Output result - run: echo "All checks passed." From 3c8ea4e94b53dd80aa26ec2626fb985c723aba11 Mon Sep 17 00:00:00 2001 From: LucassChong Date: Mon, 12 Oct 2026 12:18:25 +0800 Subject: [PATCH 9/9] Fix PR description pattern matching --- .github/workflows/pr-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 0ab0d81..b5c633e 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -17,7 +17,7 @@ jobs: exit 1 fi - if [[ ! "$PR_DESCRIPTION" =~ Fixes\\ #[0-9]+ ]]; then + if [[ ! "$PR_DESCRIPTION" =~ Fixes[[:space:]]#[0-9]+ ]]; then echo "PR description must include 'Fixes #' (for example: 'Fixes #123')." >&2 exit 1 fi