You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-31Lines changed: 17 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,27 @@
1
1
_These contributing guidelines are adapted from [scikit-image](https://github.com/scikit-image/scikit-image) - Copyright 2019, the scikit-image team._
2
2
3
-
# How to contribute to `Solaris`
3
+
# How to contribute to `solaris`
4
4
5
5
We welcome contributions from the open source community! From creating issues to describe bugs or request new features, to PRs to improve the codebase or documentation, we encourage you to dive in, even if you're a novice.
6
6
7
-
- To find things to work on, check out the [open issues on GitHub](https://github.com/cosmiq/solaris/issues?state=open)
7
+
- To find things to work on, check out the [open issues on GitHub](https://github.com/CosmiQ/solaris/issues?state=open)
8
8
- The technical detail of the development process is summed up below.
9
9
10
10
## Contributing through issues to identify bugs or request features
11
11
12
12
We welcome bug reports or feature requests through issues.
13
13
14
-
1. Go to https://github.com/cosmiq/solaris/issues and search the issues to see if your bug/feature is already present in the list. If not,
14
+
1. Go to https://github.com/CosmiQ/solaris/issues and search the issues to see if your bug/feature is already present in the list. If not,
15
15
2. Create a new issue, using the template appropriate for the type of issue you're creating (bug report/feature request/etc.)
16
16
- Please don't change the labels associated with the issue when you create it - maintainers will do so during triage.
17
17
- If you wish to work on resolving the issue yourself, you're welcome to do so! proceed to the next session for guidelines.
18
18
19
+
For general discussion, questions on usage of solaris, or other general questions that relate to solaris, please use this repo's Github Discussions page.
20
+
19
21
## Contributing through pull requests (PRs) to improve the codebase
20
22
21
23
1. If you are a first-time contributor:
22
-
- Go to [https://github.com/cosmiq/solaris](https://github.com/cosmiq/solaris) and click the "fork" button to create your own copy of the project.
24
+
- Go to [https://github.com/CosmiQ/solaris](https://github.com/CosmiQ/solaris) and click the "fork" button to create your own copy of the project.
- `upstream`, which refers to the CosmiQ repository
38
+
- `upstream`, which refers to the main solaris Github repository
37
39
- `origin`, which refers to your personal fork
38
40
39
41
2. Develop your contribution:
@@ -61,23 +63,25 @@ We welcome bug reports or feature requests through issues.
61
63
- To update your pull request, make your changes on your local repository, commit, and push to the same branch on your fork of the repository. As soon as those changes are pushed up (to the same branch as before) the pull request will update automatically.
62
64
63
65
### Continuing integration
64
-
`Travis-CI <https://travis-ci.org/>` (soon to be replaced with GitHub actions), a continuous integration service, is triggered after each Pull Request or new branch push. CI runs unit tests, measures code coverage, and checks coding style (PEP8) of your branch. The Travis tests must pass before your PR can be merged. If Travis fails, you can find out why by clicking on the "failed" icon (red cross) and inspecting the build and test log. The PR will not be merged until the CI run succeeds.
66
+
`Github Actions <https://github.com/features/actions>` is a continuous integration service, triggering tests and other processes automatically after each Pull Request or new branch push. CI runs unit tests, measures code coverage, and checks coding style (PEP8) of your branch. The tests must pass before your PR can be merged. If CI fails, you can find out why by clicking on the "failed" icon (red cross) and inspecting the build and test log. The PR will not be merged until the CI run succeeds.
67
+
68
+
The easiest way to test your code locally prior to pushing to Github is to use `act <https://github.com/nektos/act>`, a CLI that allows you to run Github actions locally. Using act, you can run the same suite of tests in the same suite of environments that are used when a push is made to a branch on Github. To use `act`, follow the installation instructions and then run `act` in the root directory of this repository.
65
69
66
-
A pull request must be approved by a core team members before merging.
70
+
A pull request must be approved by a core team member before merging.
67
71
68
72
### Unit tests
69
73
70
-
Our codebase is tested by `pytest` unit tests [in the tests directory](https://github.com/CosmiQ/solaris/tree/master/tests). Those tests run during the pull request CI, and if they fail, the CI fails and the PR will not be merged until it is fixed. When adding new functionality, you are encouraged to extend existing tests or implement new tests to test the functionality you added. As a rule of thumb, any PR should increase code coverage on the repository. If substantial changes are made without accompanying tests, maintainers may ask you to add tests before a PR is merged.
74
+
Our codebase is tested by `pytest` unit tests [in the tests directory](https://github.com/CosmiQ/solaris/tree/main/tests). Those tests run during the pull request CI, and if they fail, the CI fails and the PR will not be merged until it is fixed. When adding new functionality, you are encouraged to extend existing tests or implement new tests to test the functionality you added. As a rule of thumb, any PR should increase code coverage on the repository. If substantial changes are made without accompanying tests, maintainers may ask you to add tests before a PR is merged.
71
75
72
76
### Document changes
73
77
74
-
Every pull request must include an update to the "Unreleased" portion of [the changelog](https://github.com/CosmiQ/solaris/blob/master/CHANGELOG.md).
78
+
Every pull request must include an update to the "Unreleased" portion of [the changelog](https://github.com/CosmiQ/solaris/blob/main/CHANGELOG.md).
75
79
76
-
Divergence between ``upstream master`` and your feature branch
80
+
Divergence between ``upstream main`` and your feature branch
0 commit comments