Before Developer submits a PR
Actor(s)
- Developer
Step(s)
- Developer forks this nr1-catalog repository
- Developer reviews documentation on this website
- Developer preps their nerdpack based on the PR checklist to either add or update code
- Developer adds that repository as a git submodule under the apps directory in the following manner:
If adding a submodule
# assumed state: you've forked newrelic/nr1-catalog
# assumed state: git clone https://github.com/[YOUR_GITHUB_HANDLE]/nr1-catalog.git
cd nr1-catalog/apps
git submodule add [YOUR REPO URL]
# example: git submodule add https://github.com/newrelic/nr1-browser-analyzer.git
git commit -a -m "feat: Adding [YOUR REPO NAME] to nr1-catalog."
git push
Note: By convention, you must use the https URL for the git repository.
If updating a submodule to the latest commit
# assumed state: you've forked newrelic/nr1-catalog
# assumed state: git clone https://github.com/[YOUR_GITHUB_HANDLE]/nr1-catalog.git
cd nr1-catalog/apps/[YOUR REPO URL]
git pull
cd ..
git commit -a -m "feat: Updating [YOUR REPO NAME] to v. [YOUR REPO VERSION]."
git push
Outcomes
- Nerdpack repository is prepared for a Pull Request to the newrelic/nr1-catalog repository.
Next Step(s)
- Submitting a Pull Request to the newrelic/nr1-catalog repository