From d3e8db7f047757f155717c3d816d1efd23ae5f87 Mon Sep 17 00:00:00 2001 From: Jeff Carpenter Date: Mon, 28 Sep 2026 21:57:18 +0000 Subject: [PATCH 1/2] Rename pr-approved-issue.yml to pull-request-validation.yml --- .../{pr-approved-issue.yml => pull-request-validation.yml} | 2 +- docs/pr_policy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{pr-approved-issue.yml => pull-request-validation.yml} (97%) diff --git a/.github/workflows/pr-approved-issue.yml b/.github/workflows/pull-request-validation.yml similarity index 97% rename from .github/workflows/pr-approved-issue.yml rename to .github/workflows/pull-request-validation.yml index d06a7f2..25f3613 100644 --- a/.github/workflows/pr-approved-issue.yml +++ b/.github/workflows/pull-request-validation.yml @@ -1,4 +1,4 @@ -name: 'PR Approved Issue Check (Reusable)' +name: 'Pull Request Validation (Reusable)' # Every PR from an external contributor is converted to a draft if its # description does not link an approved issue assigned to the PR author. # Repository owners, org members, collaborators and bots bypass this check. diff --git a/docs/pr_policy.md b/docs/pr_policy.md index aaafff3..20c5426 100644 --- a/docs/pr_policy.md +++ b/docs/pr_policy.md @@ -22,7 +22,7 @@ To keep review bandwidth focused on high-leverage improvements and prevent dupli --- -## Automated Enforcement (`pr-approved-issue`) +## Automated Enforcement (`pull-request-validation`) Our automated workflow checks every pull request from external contributors when a PR is `opened`, `edited`, `reopened`, or marked `ready_for_review`: From d21c55f3e991a7080cc52f35ca32a61f6ad762c1 Mon Sep 17 00:00:00 2001 From: Jeff Carpenter Date: Mon, 28 Sep 2026 22:03:36 +0000 Subject: [PATCH 2/2] Default checkout ref to job.workflow_sha --- .github/workflows/pull-request-validation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index 25f3613..a2f1a24 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -7,10 +7,10 @@ on: workflow_call: inputs: ref: - description: 'Git ref (branch, tag, or commit SHA) of shared-workflows to check out' + description: 'Git ref (branch, tag, or commit SHA) of shared-workflows to check out (defaults to job.workflow_sha)' required: false type: string - default: 'main' + default: '' permissions: contents: write # Needed, with pull-requests: write, to toggle draft state. @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: 'keras-team/shared-workflows' - ref: '${{ inputs.ref }}' + ref: '${{ inputs.ref || job.workflow_sha }}' persist-credentials: false path: '.shared-workflows'