Pedixplorer: Contributing Guidelines
Source:.github/CONTRIBUTING.md
Hi there! Many thanks for taking an interest in improving Pedixplorer.
We try to manage the required tasks for Pedixplorer using GitHub issues, you probably came to this page when creating one.
Contribution workflow
If you’d like to write some code for Pedixplorer, the standard workflow is as follows:
- Check that there isn’t already an issue about your idea in the Pedixplorer to avoid duplicating work. If there isn’t one already, please create one so that others know you’re working on this
- Fork the Pedixplorer repository to your GitHub account
- Checkout the devel branch and create your work environment
- Make the necessary changes / additions within your forked repository
- Submit a Pull Request against the
develbranch and wait for the code to be reviewed and merged
If you’re not used to this workflow with git, you can start with some docs from GitHub or even their excellent git resources.
Tests
You have the option to test your changes locally by running the unittests. Execute all the tests with the following command:
When you create a pull request with changes, GitHub Actions will run automatic tests. Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
Patch
⚠️ Only in the unlikely and regretful event of a release happening with a bug.
- On your own fork, make a new branch
patchbased onupstream/mainorupstream/master. - Fix the bug, and bump version (X.Y.Z+1).
- Open a pull-request from
patchtomain/masterwith the changes.
Getting help
For further information/help, please consult the R nf-core/utils vignettes and don’t hesitate to get in touch on the nf-core Slack #nf-core-r-utils channel (join our Slack here).
Package contribution conventions
To make the R nf-core/utils code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
Adding a new function
If you wish to contribute a new function, please use the following coding standards:
- Use snake_case
- Lint the code
- Add documentation and example through Roxygen2 syntax
- Add a unittest and aim for a full coverage
Images and figures
For overview images and other documents we follow the nf-core style guidelines and examples.