Skip to content
Snippets Groups Projects
CONTRIBUTING.md 2.95 KiB
Newer Older
Aaron Spring's avatar
Aaron Spring committed
# Contributing to Renku

Want to contribute to this template project? Thanks!
There are many ways to help, and we very much
appreciate your efforts.

The sections below provide guidelines for various types of contributions.

# Bug Reports and Feature Requests

Bugs and feature requests should be reported on `s2s-ai-challenge` gitlab [issue tracker](https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge/-/issues/new?issuable_template=bug)


# Merge Requests

Checklist:

- MRs should include a short, descriptive title.
- Small improvements need not reference an issue, but PRs that introduce larger changes or add new functionality should refer to an issue.
- Structure your commits in meaningful units, each with an understandable purpose and coherent commit message. For example, if your proposed changes contain a refactoring and a new feature, make two PRs.

## Steps

Aaron Spring's avatar
Aaron Spring committed
### 1. Fork this `s2s-ai-challenge-template` repository [https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge-template](https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge-template).
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 2. Clone your fork locally using `git <https://git-scm.com/>`_, connect your repository
   to the upstream (main project), and create a branch:
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
```bash
git clone https://renkulab.io/gitlab/$YOURNAME/s2s-ai-challenge-template.git
cd s2s-ai-challenge-template
git remote add upstream https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge-template.git
```
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 3. To fix a bug or add feature create your own branch off "master":
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
```bash
git checkout -b your-bugfix-feature-branch-name master
```
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
If you need some help with Git, follow this quick start
`guide <https://git.wiki.kernel.org/index.php/QuickStart>`_.
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 4. Install dependencies into a new conda environment::
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
```bash
conda env create -f environment.yml  # rename name: "base" to name: "s2s-ai"
conda activate "s2s-ai"
```
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
Now you have an environment called ``s2s-ai`` that you can work in.
You’ll need to make sure to activate that environment next time you want
to use it after closing the terminal or your system.
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 5. Break your edits up into reasonably sized commits::
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
```bash
git commit -a -m "<commit message>"
git push -u
```
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 6. Create a new changelog entry in ``CHANGELOG.md``:
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
The entry should be entered as: tbd
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
<description> (``:pr:`#<pull request number>```) ```<author's names>`_``
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
where ``<description>`` is the description of the PR related to the change and
``<pull request number>`` is the pull request number and ``<author's names>`` are your first
and last names.
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
Add yourself to list of authors at the end of ``CHANGELOG.md`` file if not there yet, in
alphabetical order.
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
### 7. Open your MR on renkulab.io/gitlab under [https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge-template/-/merge_requests](https://renkulab.io/gitlab/aaron.spring/s2s-ai-challenge-template/-/merge_requests).
Aaron Spring's avatar
Aaron Spring committed

Aaron Spring's avatar
Aaron Spring committed
- Document your MR
- List closing issues
- Add references
- Show improvement
Aaron Spring's avatar
Aaron Spring committed
   
Aaron Spring's avatar
Aaron Spring committed
### 8. Your MR will be review and eventually merged by a maintainer.
Aaron Spring's avatar
Aaron Spring committed