11# Contributing
2+
23[ fork ] : https://github.com/actions/dependency-review-action/fork
34[ pr ] : https://github.com/actions/dependency-review-action/compare
45[ code-of-conduct ] : CODE_OF_CONDUCT.md
@@ -9,7 +10,6 @@ Contributions to this project are
910[ released] ( https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license )
1011to the public under the [ project's open source license] ( LICENSE ) .
1112
12-
1313Please note that this project is released with a [ Contributor Code of
1414Conduct] [ code-of-conduct ] . By participating in this project you agree
1515to abide by its terms.
@@ -20,7 +20,6 @@ This Action makes an authenticated query to the Dependency Graph Diff
2020API endpoint (` GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead} ` )
2121to find out the set of added and removed dependencies for each manifest.
2222
23-
2423### Bootstrapping the project
2524
2625```
@@ -35,7 +34,7 @@ npm install
3534npm run test
3635```
3736
38- * Note * : We don't have any useful tests yet, contributions are welcome!
37+ _ Note _ : We don't have any useful tests yet, contributions are welcome!
3938
4039## Local Development
4140
@@ -56,16 +55,24 @@ Like this:
5655$ GITHUB_TOKEN=my-secret-token ./scripts/scan_pr https://github.com/actions/dependency-review-action/pull/3
5756```
5857
58+ [ Configuration options] ( README.md#configuration-options ) can be set by
59+ passing an external YAML [ configuration file] ( README.md#configuration-file ) to the
60+ ` scan_pr ` script with the ` -c ` /` --config-file ` option:
61+
62+ ``` sh
63+ $ GITHUB_TOKEN=< token> ./scripts/scan_pr --config-file my_custom_config.yml < pr_url>
64+ ```
65+
5966## Submitting a pull request
6067
61680 . [ Fork] [ fork ] and clone the repository
62- 0 . Configure and install the dependencies: ` npm install `
63- 0 . Make sure the tests pass on your machine: ` npm run test `
64- 0 . Create a new branch: ` git checkout -b my-branch-name `
65- 0 . Make your change, add tests, and make sure the tests still pass
66- 0 . Make sure to build and package before pushing: ` npm run build && npm run package `
67- 0 . Push to your fork and [ submit a pull request] [ pr ]
68- 0 . Pat your self on the back and wait for your pull request to be reviewed and merged.
69+ 1 . Configure and install the dependencies: ` npm install `
70+ 2 . Make sure the tests pass on your machine: ` npm run test `
71+ 3 . Create a new branch: ` git checkout -b my-branch-name `
72+ 4 . Make your change, add tests, and make sure the tests still pass
73+ 5 . Make sure to build and package before pushing: ` npm run build && npm run package `
74+ 6 . Push to your fork and [ submit a pull request] [ pr ]
75+ 7 . Pat your self on the back and wait for your pull request to be reviewed and merged.
6976
7077Here are a few things you can do that will increase the likelihood of your pull request being accepted:
7178
@@ -77,21 +84,21 @@ Here are a few things you can do that will increase the likelihood of your pull
7784
78851 . Update the version number in [ package.json] ( https://github.com/actions/dependency-review-action/blob/main/package.json ) .
79861 . Go to [ Draft a new
80- release] ( https://github.com/actions/dependency-review-action/releases/new )
81- in the Releases page.
82- 2 . Make sure that the ` Publish this Action to the GitHub Marketplace `
83- checkbox is enabled
87+ release] ( https://github.com/actions/dependency-review-action/releases/new )
88+ in the Releases page.
89+ 1 . Make sure that the ` Publish this Action to the GitHub Marketplace `
90+ checkbox is enabled
8491
8592<img width =" 481 " alt =" Screenshot 2022-06-15 at 12 08 19 " src =" https://user-images.githubusercontent.com/2161/173822484-4b60d8b4-c674-4bff-b5ff-b0c4a3650ab7.png " >
8693
87943 . Click "Choose a tag" and then "Create new tag", where the tag name
88- will be your version prefixed by a ` v ` (e.g. ` v1.2.3 ` ).
95+ will be your version prefixed by a ` v ` (e.g. ` v1.2.3 ` ).
89964 . Use a version number for the release title (e.g. "1.2.3").
9097
9198<img width =" 700 " alt =" Screenshot 2022-06-15 at 12 08 36 " src =" https://user-images.githubusercontent.com/2161/173822548-33ab3432-d679-4dc1-adf8-b50fdaf47de3.png " >
9299
931005 . Add your release notes. If this is a major version make sure to
94- include a small description of the biggest changes in the new version.
101+ include a small description of the biggest changes in the new version.
951026 . Click "Publish Release".
96103
97104You now have a tag and release using the semver version you used
@@ -102,6 +109,7 @@ automatically getting all the
102109minor/patch updates.
103110
104111To do this just checkout ` main ` , force-create a new annotated tag, and push it:
112+
105113```
106114git tag -fa v2 -m "Updating v2 to 2.3.4"
107115git push origin v2 --force
0 commit comments