Skip to content
Open
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
48 changes: 48 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: check-pr

concurrency:
group: prtk-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

on:
pull_request_target:
types: [opened, synchronize, reopened, edited, ready_for_review, converted_to_draft]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
check-pr:
if: github.repository_owner == 'ecmwf-ifs'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
version: 0.6.12
enable-cache: false

- name: Install prtk
env:
PRTK_READ_ACCESS_TOKEN: ${{ secrets.PRTK_READ_ACCESS }}
run: |
uv tool install "git+https://${PRTK_READ_ACCESS_TOKEN}@github.com/ecmwf-ifs/prtk"

- name: Run prtk checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
prtk check
--pr-number "${{ github.event.pull_request.number }}"
--default-branch "${{ github.event.repository.default_branch }}"
--event-name "${{ github.event_name }}"
--event-action "${{ github.event.action }}"
25 changes: 25 additions & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
owner: ecmwf

maintainers:
- Adehill

checks:
ensure-assignee: {}
validate-target-branch:
allowed-branches:
- main
- main_staging
allowed-patterns:
- "openifs-*"
- "lts/*"
- "mts/*"
- "release/*"
assign-reviewers:
exclude-author: true
exclude-existing: true
copyright-audit:
reviewer: Adehill
skip-label: "prtk:skip-copyright"
allowed-holders:
- ECMWF
- European Centre for Medium-Range Weather Forecasts
Loading