@npmcli/template-oss 4.14.1 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/release-manager.js
CHANGED
|
@@ -63,7 +63,7 @@ const DEFAULT_RELEASE_PROCESS = (args.publish ? AUTO_PUBLISH_STEPS : MANUAL_PUBL
|
|
|
63
63
|
Release Please will run on the just pushed release commit and create GitHub releases and tags for each package.
|
|
64
64
|
|
|
65
65
|
\`\`\`
|
|
66
|
-
gh run watch
|
|
66
|
+
gh run watch -R {NWO} $(gh run list -R {NWO} -w release -b <BASE-BRANCH> -L 1 --json databaseId -q ".[0].databaseId")
|
|
67
67
|
\`\`\`
|
|
68
68
|
`
|
|
69
69
|
/* eslint-enable max-len */
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Code of Conduct
|
|
4
|
+
|
|
5
|
+
All interactions in the **npm** organization on GitHub are considered to be covered by our standard [Code of Conduct](https://docs.npmjs.com/policies/conduct).
|
|
6
|
+
|
|
7
|
+
## Reporting Bugs
|
|
8
|
+
|
|
9
|
+
Before submitting a new bug report please search for an existing or similar report.
|
|
10
|
+
|
|
11
|
+
Use one of our existing issue templates if you believe you've come across a unique problem.
|
|
12
|
+
|
|
13
|
+
Duplicate issues, or issues that don't use one of our templates may get closed without a response.
|
|
14
|
+
|
|
15
|
+
## Pull Request Conventions
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
20
|
+
|
|
21
|
+
When opening a pull request please be sure that either the pull request title, or each commit in the pull request, has one of the following prefixes:
|
|
22
|
+
|
|
23
|
+
- `feat`: For when introducing a new feature. The result will be a new semver minor version of the package when it is next published.
|
|
24
|
+
- `fix`: For bug fixes. The result will be a new semver patch version of the package when it is next published.
|
|
25
|
+
- `docs`: For documentation updates. The result will be a new semver patch version of the package when it is next published.
|
|
26
|
+
- `chore`: For changes that do not affect the published module. Often these are changes to tests. The result will be *no* change to the version of the package when it is next published (as the commit does not affect the published version).
|
|
27
|
+
|
|
28
|
+
### Test Coverage
|
|
29
|
+
|
|
30
|
+
Pull requests made against this repo will run `npm test` automatically. Please make sure tests pass locally before submitting a PR.
|
|
31
|
+
|
|
32
|
+
Every new feature or bug fix should come with a corresponding test or tests that validate the solutions. Testing also reports on code coverage and will fail if code coverage drops.
|
|
33
|
+
|
|
34
|
+
### Linting
|
|
35
|
+
|
|
36
|
+
Linting is also done automatically once tests pass. `npm run lintfix` will fix most linting errors automatically.
|
|
37
|
+
|
|
38
|
+
Please make sure linting passes before submitting a PR.
|
|
39
|
+
|
|
40
|
+
## What _not_ to contribute?
|
|
41
|
+
|
|
42
|
+
### Dependencies
|
|
43
|
+
|
|
44
|
+
It should be noted that our team does not accept third-party dependency updates/PRs. If you submit a PR trying to update our dependencies we will close it with or without a reference to these contribution guidelines.
|
|
45
|
+
|
|
46
|
+
### Tools/Automation
|
|
47
|
+
|
|
48
|
+
Our core team is responsible for the maintenance of the tooling/automation in this project and we ask contributors to not make changes to these when contributing (e.g. `.github/*`, `.eslintrc.json`, `.licensee.json`). Most of those files also have a header at the top to remind folks they are automatically generated. Pull requests that alter these will not be accepted.
|
package/lib/content/index.js
CHANGED
|
@@ -49,6 +49,9 @@ const sharedRootAdd = (name) => ({
|
|
|
49
49
|
'.github/workflows/post-dependabot.yml': {
|
|
50
50
|
file: 'post-dependabot.yml',
|
|
51
51
|
},
|
|
52
|
+
'.github/settings.yml': {
|
|
53
|
+
file: 'settings.yml',
|
|
54
|
+
},
|
|
52
55
|
})
|
|
53
56
|
|
|
54
57
|
const sharedRootRm = () => ({
|
|
@@ -87,6 +90,7 @@ const rootModule = {
|
|
|
87
90
|
'.npmrc': 'npmrc',
|
|
88
91
|
'SECURITY.md': 'SECURITY.md',
|
|
89
92
|
'CODE_OF_CONDUCT.md': 'CODE_OF_CONDUCT.md',
|
|
93
|
+
'CONTRIBUTING.md': 'CONTRIBUTING.md',
|
|
90
94
|
'package.json': 'pkg.json',
|
|
91
95
|
},
|
|
92
96
|
rm: [
|
|
@@ -18,5 +18,7 @@ jobs:
|
|
|
18
18
|
{{ rootNpxPath }} --offline commitlint -V --from 'origin/$\{{ github.base_ref }}' --to $\{{ github.event.pull_request.head.sha }}
|
|
19
19
|
- name: Run Commitlint on PR Title
|
|
20
20
|
if: steps.commit.outcome == 'failure'
|
|
21
|
+
env:
|
|
22
|
+
PR_TITLE: $\{{ github.event.pull_request.title }}
|
|
21
23
|
run: |
|
|
22
|
-
echo '
|
|
24
|
+
echo '$PR_TITLE' | {{ rootNpxPath }} --offline commitlint -V
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
repository:
|
|
2
|
+
allow_merge_commit: false
|
|
3
|
+
allow_rebase_merge: true
|
|
4
|
+
allow_squash_merge: true
|
|
5
|
+
squash_merge_commit_title: PR_TITLE
|
|
6
|
+
squash_merge_commit_message: PR_BODY
|
|
7
|
+
delete_branch_on_merge: true
|
|
8
|
+
enable_automated_security_fixes: true
|
|
9
|
+
enable_vulnerability_alerts: true
|
|
10
|
+
|
|
11
|
+
branches:
|
|
12
|
+
{{#each branches}}
|
|
13
|
+
- name: {{ . }}
|
|
14
|
+
protection:
|
|
15
|
+
required_pull_request_reviews:
|
|
16
|
+
required_pull_request_review_count: 1
|
|
17
|
+
dismiss_stale_reviews: true
|
|
18
|
+
require_code_owner_reviews: true
|
|
19
|
+
restrictions:
|
|
20
|
+
teams:
|
|
21
|
+
- "npm/cli-team"
|
|
22
|
+
enforce_admins: true
|
|
23
|
+
required_status_checks: null
|
|
24
|
+
{{/each}}
|