git: 2c965fa333c0 - stable/15 - github: Only run the checklist checker for PRs against main

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 19 Nov 2026 14:45:54 UTC
The branch stable/15 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=2c965fa333c041b3f407d228bdd02d4935bd5071

commit 2c965fa333c041b3f407d228bdd02d4935bd5071
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-10-17 15:24:23 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-11-19 14:44:41 +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
    
    (cherry picked from commit 19a5023e45bd34d6bf5ee15e580f945caece5d2c)
---
 .github/workflows/checklist.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/checklist.yml b/.github/workflows/checklist.yml
index b5cfc6d72063..bc0f46d0f4e1 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: