You are here to help on bpmnVisualizationR
? Awesome, feel welcome and read the following guidelines in order to know how to contribute, to ask questions and to make bpmnVisualizationR
such a great tool.
All members of our community are expected to follow our Code of Conduct. Please make sure you are welcoming and friendly in all of our spaces.
There are many ways to contribute:
- help people with the questions they ask on the GitHub Issues
- submitting bug reports and feature requests in the GitHub Issues
- improving the README & documentation
- writing code which can be incorporated into
bpmnVisualizationR
itself
For all contributions, please respect the following guidelines:
-
If you've noticed a bug or have a feature request, let us know in the GitHub Issue tracker! So we can confirm the bug or approve your feature, and provide feedback, before starting to code 🙂
-
Do the changes in your own fork of the code
-
Do not commit changes to files that are irrelevant to your feature or bugfix (eg:
.gitignore
). -
Open a GitHub Pull Request with your patches. (1 pull request = 1 feature or bug) We will review your contribution and respond as quickly as possible. Keep in mind that this is an open source project, and it may take us some time to get back to you. Your patience is very much appreciated.
-
If this is your 1st Pull Request, sign the Contributor License Agreement
-
Be willing to accept criticism and work on improving your code.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
Fork the bpmn-visualization-R repository and create a branch with a descriptive name.
A good branch name would be (where issue #25 is the ticket you're working on): 25-customize_overlays
git checkout -b 25-customize_overlays
There is no convention for the commit message in the Pull Request. The most important part is the title of the Pull Request, because:
- Everyone must use Pull Request, no direct commit allowed on the
main
branch. - The commits of a Pull Request are almost always squashed.
- The title of the Pull Request is used as proposal for the maintainer merging the Pull Request.
At this point, you should switch back to your own branch and make sure it's up-to-date with the main
branch of the bpmn-visualization-R
repository:
git remote add upstream git@github.com:process-analytics/bpmn-visualization-R.git
git checkout main
git pull upstream main
Then update your feature branch from your local copy of the main
branch, and push it!
git checkout 25-customize_overlays
git rebase main
git push --set-upstream origin 25-customize_overlays
Finally, go to GitHub and make a Pull Request with labels 😄
For the title, follow the directives of the Pull Request template.
By signing the CLA, we acknowledge that your contribution is accepted as it and that you cannot be held responsible for any impacts on its integration. You then grant us the right to modify and distribute your code without restrictions. We ask this of all contributors in order to assure our users of the origin and continuing existence of the code.
When you contribute to the project on GitHub with a new pull request, the cla-assistant bot will evaluate whether you have signed the CLA. If required, the bot will comment on the pull request, including a link to this system to accept the agreement.
You only need to sign the CLA once or when the CLA terms have changed.
If a maintainer asks you to rebase your PR, they're saying that a lot of code has changed, and that you need to update your branch, so it's easier to merge.
Here's the suggested workflow:
git checkout 25-customize_overlays
git pull --rebase upstream main
git push --force-with-lease 25-customize_overlays
At this point, you're ready to make your changes! Feel free to ask for help. Everyone is a beginner at first 😸
devtools::install()
The R documentation (.Rd) format is generated from the function comments thanks to roxygen2.
To regenerate this documentation after function comment updating, run this command:
devtools::document()
The HTML documentation is generated with pkgdown.
If you need to test locally changes in the configuration or content of this documentation, install pkgdown
following the official documentation.
Note: on Ubuntu, you may encounter errors during the installation of pkgdown
. In particular, the installation of some dependent packages may fail:
systemfonts
: runsudo apt -y install libfontconfig1-dev
(see systemfonts#35 )textshapping
:run sudo apt -y install libharfbuzz-dev libfribidi-dev
Once pkgdown
is installed, you can generate the HTML documentation quickly with this command:
pkgdown::build_site(devel = TRUE, lazy = TRUE, preview = FALSE)
For more details about the available options, see the official documentation.
The bpmn-visualization
dependency is automatically updated by the Update bpmn-visualization version workflow when a new version of this library is released.
This generates a new Pull Request and notifies the reviewers.
- Change bpmn-visualization.min.js. The file can be retrieved from jsdelivr or unpkg.
- Update the version of
bpmn-visualization
TypeScript library in bpmnVisualizationR.yaml