Migrate PR automation to prtk check#101
Merged
Merged
Conversation
reuterbal
approved these changes
May 26, 2026
Replace the standalone prtk assign-reviewers step with prtk check, the recommended repository automation entry point in the current version of prtk. Add a checks: section to MAINTAINERS.yml enabling ensure-assignee, validate-target-branch (master, develop), assign-reviewers, and copyright-audit. Expand the workflow event types, add issues: write permission and a concurrency group, and pass the default branch and event metadata to prtk check. Also gate the job with `if: github.repository_owner == 'ecmwf-ifs'` so PR automation does not run on personal forks.
ec57a78 to
fa66179
Compare
4 tasks
|
Automated check: Non-standard copyright statements were detected in added lines. Please resolve them before merge.
|
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates ecrad's PR automation from the standalone
prtk assign-reviewerscommand to the currentprtk checkentry point, and adds achecks:section toMAINTAINERS.yml. No Jira and nocycle_leads(this repo doesn't use them).MAINTAINERS.ymlensure-assignee— every non-draft PR gets one assignee (falls back toreuterbal, the top-level maintainer)validate-target-branch— PRs must targetmasterordevelop. PRs against feature branches will be rejected with a clear messageassign-reviewers— path-based reviewer requesting, withexclude-authorandexclude-existingcopyright-audit— advisory comment for suspicious copyright additions, withallowed-holderscovering ECMWF and Météo-France variants. Skippable per-PR with theprtk:skip-copyrightlabel.github/workflows/pr-check.ymlprtk assign-reviewers ...step withprtk check ..., passing--default-branchand the GitHub event metadata that the new entry point expectspull_request_targetevent types toopened, synchronize, reopened, edited, ready_for_review, converted_to_draftsoprtk checkcan react to title edits, draft transitions, etc.issues: writepermission (needed byensure-assignee)timeout-minutes: 5Out of scope
prtk scan/close-staleworkflow. Can be a follow-up if stale-PR cleanup is wanted.Test plan
masterand confirm theprtkjob skips automation (draft handling)MAINTAINERS.ymlrulesvalidate-target-branchfails with a clear messageprtk checkre-runs on theeditedevent