From 5974c9b03ec3e513dc5aa2a9fb0e22ca604c807e Mon Sep 17 00:00:00 2001 From: Lukas Riedel <34276446+peanutfun@users.noreply.github.com> Date: Mon, 7 Sep 2026 11:31:15 +0200 Subject: [PATCH 1/2] ci: Trigger pipeline for pull requests Trigger the push pipeline only for pushes to `develop`, `main`, and release tags. --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ab271872..cf6767dc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,17 @@ name: GitHub CI -# Execute this for every push -on: [push] +# When to execute +on: + push: + # Pushes to important branches + branches: + - develop + - main + # Release tags + tags: + - v* + # Any pull request + pull_request: # Use bash explicitly for being able to enter the conda environment defaults: From b04a0e047a6440934e96c1e8555829e23d80b66e Mon Sep 17 00:00:00 2001 From: Lukas Riedel <34276446+peanutfun@users.noreply.github.com> Date: Tue, 15 Sep 2026 16:03:54 +0200 Subject: [PATCH 2/2] Add info on approving workflow runs to CONTRIBUTING.md --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ee11385f..f9fb23d75 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,6 +61,11 @@ To contribute follow these steps: This also works if you pushed to a fork instead of the main repository. Add a description and explanation of your changes and work through the pull request author checklist provided. Feel free to request reviews from specific team members. + + **NOTE:** If a pull request originates from a fork, a team member (usually the reviewer) will have to [approve workflow runs](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks). + Before doing so, please carefully check the suggested changes for potentially harmful code. + If unsure, ask the core developers. + 9. After approval of the pull request, the branch is merged into `develop` and your changes will become part of the next CLIMADA release. ## Resources