-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0eeceec
commit 39f6326
Showing
27 changed files
with
1,223 additions
and
3,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* This file is automatically added by @npmcli/template-oss. Do not edit. */ | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']], | ||
'header-max-length': [2, 'always', 80], | ||
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']], | ||
}, | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
* @npm/cli-team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
name: Bug | ||
description: File a bug/issue | ||
title: "[BUG] <title>" | ||
labels: [ Bug, Needs Triage ] | ||
|
||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please [search here](./issues) to see if an issue already exists for your problem. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A clear & concise description of what you're experiencing. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear & concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
value: | | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
examples: | ||
- **npm**: 7.6.3 | ||
- **Node**: 13.14.0 | ||
- **OS**: Ubuntu 20.04 | ||
- **platform**: Macbook Pro | ||
value: | | ||
- npm: | ||
- Node: | ||
- OS: | ||
- platform: | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
blank_issues_enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"//@npmcli/template-oss": "This file is automatically added by @npmcli/template-oss. Do not edit.", | ||
"problemMatcher": [ | ||
{ | ||
"owner": "tap", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*not ok \\d+ - (.*)", | ||
"message": 1 | ||
}, | ||
{ | ||
"regexp": "^\\s*---" | ||
}, | ||
{ | ||
"regexp": "^\\s*at:" | ||
}, | ||
{ | ||
"regexp": "^\\s*line:\\s*(\\d+)", | ||
"line": 1 | ||
}, | ||
{ | ||
"regexp": "^\\s*column:\\s*(\\d+)", | ||
"column": 1 | ||
}, | ||
{ | ||
"regexp": "^\\s*file:\\s*(.*)", | ||
"file": 1 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
repository: | ||
allow_merge_commit: false | ||
allow_rebase_merge: true | ||
allow_squash_merge: true | ||
squash_merge_commit_title: PR_TITLE | ||
squash_merge_commit_message: PR_BODY | ||
delete_branch_on_merge: true | ||
enable_automated_security_fixes: true | ||
enable_vulnerability_alerts: true | ||
|
||
branches: | ||
- name: main | ||
protection: | ||
required_status_checks: null | ||
enforce_admins: true | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
require_code_owner_reviews: true | ||
require_last_push_approval: true | ||
dismiss_stale_reviews: true | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [ "cli-team" ] | ||
- name: latest | ||
protection: | ||
required_status_checks: null | ||
enforce_admins: true | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
require_code_owner_reviews: true | ||
require_last_push_approval: true | ||
dismiss_stale_reviews: true | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [ "cli-team" ] | ||
- name: release/v* | ||
protection: | ||
required_status_checks: null | ||
enforce_admins: true | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
require_code_owner_reviews: true | ||
require_last_push_approval: true | ||
dismiss_stale_reviews: true | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [ "cli-team" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
name: Audit | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# "At 08:00 UTC (01:00 PT) on Monday" https://crontab.guru/#0_8_*_*_1 | ||
- cron: "0 8 * * 1" | ||
|
||
jobs: | ||
audit: | ||
name: Audit Dependencies | ||
if: github.repository_owner == 'npm' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Git User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "npm CLI robot" | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Remove Template-OSS | ||
if: matrix && matrix.node-version == '6.17.1' | ||
run: | | ||
# template-oss cannot be installed on older npms because there are transient deps | ||
# that use "npm:" aliases which are not supported | ||
jq 'del(.devDependencies["@npmcli/template-oss"])' package.json > package.json-update | ||
mv package.json-update package.json | ||
- name: Install Dependencies | ||
run: npm i --ignore-scripts --no-audit --no-fund --package-lock | ||
- name: Run Production Audit | ||
run: npm audit --omit=dev | ||
- name: Run Full Audit | ||
run: npm audit --audit-level=none |
Oops, something went wrong.