The Data Annotator for Machine Learning (DAML) project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ.
Here are the typical steps in a contributor's workflow:
- Fork the main DAML repository.
- Clone your fork and set the upstream remote to the main DAML repository.
- Set your name and e-mail in the Git configuration for signing.
- Create a topic branch from where you want to base your work.
- Setup your local environment to run and build DAML.
- Make commits of logical units.
- Make sure your commit messages are in the proper format (see below).
- Push your changes to a topic branch in your fork of the repository.
- Submit a pull request.
Example:
# Clone your forked repository
git clone [email protected]:<github username>/data-annotator-for-machine-learning.git
# Navigate to the directory
cd data-annotator-for-machine-learning
# Set name and e-mail configuration
git config user.name "John Doe"
git config user.email [email protected]
# Setup the upstream remote
git remote add upstream https://github.com/vmware/data-annotator-for-machine-learning.git
# Create a topic branch for your changes
git checkout -b my-new-feature master
# After making the desired changes, commit and push to your fork.
# note the usage of the -s option which signs your commit. This is required.
git commit -a -s -m "Some detailed and helpful comment here"
git push origin my-new-feature
When your branch gets out of sync with the master branch, use the following to update:
git checkout my-new-feature
git fetch -a
git pull --rebase upstream master
git push --force-with-lease origin my-new-feature
If your PR fails to pass CI, or requires changes based on code review, you'll most likely want to squash these changes into existing commits.
If your pull request contains a single commit, or your changes are related to the most recent commit, you can amend the commit.
git add .
git commit --amend
git push --force-with-lease origin my-new-feature
If you need to squash changes into an earlier commit, use the following:
git add .
git commit --fixup <commit>
git rebase -i --autosquash master
git push --force-with-lease origin my-new-feature
Make sure you add a comment to the PR indicating that your changes are ready to review. GitHub does not generate a notification when you use git push.
Use this format for your commit message:
<title>
<BLANK LINE>
<detailed commit message>
<BLANK LINE>
<reference to closing an issue if applicable>
<BLANK LINE>
Signed-off-by: Your Name <[email protected]>
These documents provide guidance creating a well-crafted commit message:
You can submit an issue or a bug to our GitHub repository. You must provide:
- The version number of Angular
- The version number of Data Annotator for Machine Learning
- The browser name and version number
- Any available console log messages that show the error.