Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contribution guidelines #1286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
55 changes: 55 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Contributing to the BCI-dockerfile-generator

## Opening an pull request

The BCI-dockerfile-generator documentation has a section on contributing a
new container or modifying an existing container. Please check the chapter
**Adding and modifying containers** for details.

Before creating a pull request, please format your source code with Ruff,
which is installed in the Poetry virtual environment by default:

```bash
poetry run ruff format
alexandrevicenzi marked this conversation as resolved.
Show resolved Hide resolved
# reorder imports:
poetry run ruff check --fix
```

Additionally, run the unit tests and check whether the documentation builds
(additional points if you update it):

```bash
# tests
poetry run pytest -vv
# docs
poetry run sphinx-build -M html source build -W
```


## Reviewing a pull request

The following guidelines are respected by the maintainers on reviewing a Pull Request:

* CI failures are treated seriously. As a general rule changes with failing CI are not being merged.

* A reviewer who has requested a change should be notified when the feedback
has been handled. This can be done by clicking the "re-request review" button
on the particular reviewers handle.

* A pull request is considered mergeable if it has no outstanding change
requests, at least one approval by the maintainers and sufficient time has
passed. Sufficient time means at least one business day, could be two or
three in case there are multiple people deciding to send in PRs and Dan has a
busy day.
Comment on lines +39 to +43
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for calling me out personally, but I don't think that mentioning my name improves this document in any way

Suggested change
* A pull request is considered mergeable if it has no outstanding change
requests, at least one approval by the maintainers and sufficient time has
passed. Sufficient time means at least one business day, could be two or
three in case there are multiple people deciding to send in PRs and Dan has a
busy day.
* A pull request is considered mergeable if it has no outstanding change
requests, at least one approval by the maintainers and sufficient time has
passed. Sufficient time means at least one business day, could be two or
three in case there are multiple people deciding to send in PRs.


* For changes that touch areas where there are subject matter experts (e.g.
the documentation team for documentation changes), the reviewer or the author
of the PR takes responsibility that these experts had an opportunity to
provide feedback before merging.

* *Single Review*: The reviewers address the most important issues in the
first review. Minor issues can be commented, for example with a 'NIT:'
prefix. These can be addressed in a followup change or documented for later
in an issue tracker entry. We avoid trickling in further feedback over the
whole review process so that the pull request author understands what the
outstanding action items are upfront.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Additionally, run the unit tests and check whether the documentation builds
# docs
poetry run sphinx-build -M html source build -W

Further Contributing Guidelines are defined in the `CONTRIBUTING.md` file
in the root directory of the project.


Documentation - READMEs
^^^^^^^^^^^^^^^^^^^^^^^
Expand Down