Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.
Expand All @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion docs/pr_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
Loading