Skip to content

Add Pull Request guidelines#34

Merged
corentincarton merged 1 commit into
mainfrom
pr-guidelines
Jan 16, 2026
Merged

Add Pull Request guidelines#34
corentincarton merged 1 commit into
mainfrom
pr-guidelines

Conversation

@Ozaq

@Ozaq Ozaq commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

Description

Add guidelines how to handle Pull Requests as reviewee and reviewer.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

Comment thread Guidelines/pr_guidelines.md Outdated
@@ -0,0 +1,97 @@
# Pull Requests

Changes to our repository are to be approved through a peer review process

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important to note here that this applies for certain branches. In the internal workflow, these PRs should be based on branches that are already in the repo.

Also reference the git guidelines re git-flow and GitHub based workflows. See ADR-001

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Guidelines/pr_guidelines.md Outdated

## Preparation

Speak with your team and/or the repository's maintainer before you open a PR,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this only applies for big PRs. For small/trivial ones, it is fine to just create the PR and then poke someone.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Guidelines/pr_guidelines.md
Comment thread Guidelines/pr_guidelines.md Outdated
For example: Your change uses a particularly complicated implementation for which
a much more obvious and simple implementation would be possible. However you
know that we receive inputs that exhibit worst-case run-time behaviour in the
obvious solution, hence the sophisticated solution is required. In this case

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, the context should also, or primarily, be in source code comments...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Guidelines/pr_guidelines.md
Comment thread Guidelines/pr_guidelines.md
Comment thread Guidelines/pr_guidelines.md Outdated

For example a PR that addresses long outdated comments or clarifies
documentation with a generally accepted explanation can be handled by Reviewer
and Reviewee having a short call and agreeing on the change. It is important,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is worth explicitly saying here that an exchange on Teams is perfectly sufficient. Especially an exchange in a chat with all relevant stakeholders having visibility.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Guidelines/pr_guidelines.md

@simondsmart simondsmart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments on things that would be nice to have. But happy for you to merge when you are happy with it.

Comment thread Guidelines/pr_guidelines.md Outdated
the obvious solution, hence the sophisticated solution is required. In this
case you should strongly consider providing enough context within the code as
comments. Repeating this information in commit messages and PR description will
go a long way to spread the word. In any case: start with the comments they

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check English here: "start with the comments they will read most often and easies to find and closest to the code.". This sentence doesn't make sense.

Comment thread Guidelines/pr_guidelines.md
Comment thread Guidelines/pr_guidelines.md Outdated

For example a PR that addresses long outdated comments or clarifies
documentation with a generally accepted explanation can be handled by Reviewer
and Reviewee having a short call or chat with required stakeholders and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really think that this comment needs to the word 'Teams' or 'Online' or similar. Otherwise this still reads as needing to have a synchronous rather than asynchronous communication process.


- [ ] Do I understand the problem and agree with the solution?
- [ ] Is the change functionally correct?
- [ ] Are all GitHub checks passing?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the process for a reviewer, or for the person doing a merge?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewers

Co-authored-by: Andreas Grafberger <andreas.grafberger@ecmwf.int>

@corentincarton corentincarton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the work guys @andreas-grafberger and @Ozaq!

@corentincarton corentincarton merged commit 96c667b into main Jan 16, 2026
1 check passed
@corentincarton corentincarton deleted the pr-guidelines branch January 16, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants