Open a new issue. Be sure to include a title and clear description, with as much relevant information as possible. If you have a code sample that illustrates the problem that would be even better!
Fork the project on GitHub and check out your copy locally.
git clone [email protected]:username/openshift-rest-client.git
cd openshift-rest-client
git remote add upstream https://github.com/nodeshift/openshift-rest-client.git
Create a feature branch and start hacking:
git checkout -b my-contrib-branch
Writing good commit logs is important. A commit log should describe what changed and why. Follow these guidelines when writing one:
- The first line should be 50 characters or less and contain a short description of the change.
- Keep the second line blank.
- Wrap all other lines at 72 columns.
Example of commit message:
bug: timeout flakeyness resolved
Occasionally, when tries to access the API, it remains in an
unresolved state. This fixes that issue by modifying the frobjam
function to return the first framble it can find.
The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
72 characters or so. That way `git log` will show things
nicely even when it is indented.
Use git rebase
to sync your work from time to time.
git fetch upstream
git rebase upstream/main
Bug fixes and features should come with tests.
The tests are on test
directory. Before submitting a pull request,
ensure that your change will pass CI.
npm install
npm test
or
npm it
The test script calls the lint script. But you can run only the lint with npm run pretest
.
git push origin my-contrib-branch
Go to https://github.com/yourusername/openshift-rest-client and select your feature branch. Click the 'Pull Request' button and fill out the form.