git: 19a5023e45bd - main - github: Only run the checklist checker for PRs against main

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sat, 17 Oct 2026 15:24:37 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=19a5023e45bd34d6bf5ee15e580f945caece5d2c

commit 19a5023e45bd34d6bf5ee15e580f945caece5d2c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-10-17 15:24:23 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-10-17 15:24:23 +0000

    github: Only run the checklist checker for PRs against main
    
    Currently this check is run on every push to stable branches which all
    fail since they fail to fetch the non-existent .github/path-rules.txt
    from the just-updated branches.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D60709
---
 .github/workflows/checklist.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/checklist.yml b/.github/workflows/checklist.yml
index 65e640a2a0e4..13f52a4a87b8 100644
--- a/.github/workflows/checklist.yml
+++ b/.github/workflows/checklist.yml
@@ -5,6 +5,7 @@ name: Checklist
 
 on:
   pull_request_target:
+    branches: [ main ]
     types: [ opened, reopened, edited, synchronize ]
 
 permissions: