Skip to content

Commit 2efb5ae

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 52ec1f9 commit 2efb5ae

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/actions/create-check/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
with:
2626
result-encoding: string
2727
script: |
28-
const { repo: { owner, repo}, runId, serverUrl } = context
28+
const { repo: { owner, repo}, runId, serverUrl } = context
2929
const { JOB_NAME, SHA } = process.env
3030
3131
const job = await github.rest.actions.listJobsForWorkflowRun({

.github/actions/install-latest-npm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
MATCH=$SPEC
4545
echo "Found compatible version: npm@$MATCH"
4646
break
47-
fi
47+
fi
4848
done
4949
5050
if [ -z $MATCH ]; then

.github/workflows/ci-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: npm run postlint --ignore-scripts
6262
- name: Conclude Check
6363
uses: LouisBrunner/checks-action@v1.6.0
64-
if: always()
64+
if: steps.create-check.outputs.check-id && always()
6565
with:
6666
token: ${{ secrets.GITHUB_TOKEN }}
6767
conclusion: ${{ job.status }}
@@ -151,7 +151,7 @@ jobs:
151151
run: npm test --ignore-scripts
152152
- name: Conclude Check
153153
uses: LouisBrunner/checks-action@v1.6.0
154-
if: always()
154+
if: steps.create-check.outputs.check-id && always()
155155
with:
156156
token: ${{ secrets.GITHUB_TOKEN }}
157157
conclusion: ${{ job.status }}

.github/workflows/post-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: flags
5050
run: |
5151
dependabot_dir="${{ steps.metadata.outputs.directory }}"
52-
if [[ "$dependabot_dir" == "/" ]]; then
52+
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/main" ]]; then
5353
echo "workspace=-iwr" >> $GITHUB_OUTPUT
5454
else
5555
# strip leading slash from directory so it works as a

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
# ignore everything in the root
44
/*
5-
# transient test directories
6-
tap-testdir*/
75

8-
# keep these
96
!**/.gitignore
107
!/.commitlintrc.js
118
!/.eslintrc.js
129
!/.eslintrc.local.*
10+
!/.git-blame-ignore-revs
1311
!/.github/
1412
!/.gitignore
1513
!/.npmrc
14+
!/.prettierignore
15+
!/.prettierrc.js
1616
!/.release-please-manifest.json
1717
!/bin/
1818
!/CHANGELOG*
@@ -30,3 +30,4 @@ tap-testdir*/
3030
!/tap-snapshots/
3131
!/test/
3232
!/tsconfig.json
33+
tap-testdir*/

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
GitHub takes the security of our software products and services seriously, including the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
44

5-
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
5+
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
66

77
If the vulnerability you have found is *not* [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) or if you do not wish to be considered for a bounty reward, please report the issue to us directly through [opensource-security@github.com](mailto:opensource-security@github.com).
88

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
},
1414
"scripts": {
1515
"test": "tap",
16-
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
16+
"lint": "npm run eslint",
1717
"postlint": "template-oss-check",
1818
"template-oss-apply": "template-oss-apply --force",
19-
"lintfix": "npm run lint -- --fix",
19+
"lintfix": "npm run eslint -- --fix",
2020
"snap": "tap",
21-
"posttest": "npm run lint"
21+
"posttest": "npm run lint",
22+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
2223
},
2324
"repository": {
2425
"type": "git",
@@ -39,7 +40,7 @@
3940
"author": "GitHub Inc.",
4041
"templateOSS": {
4142
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
42-
"version": "4.22.0",
43+
"version": "4.23.1",
4344
"publish": "true"
4445
},
4546
"tap": {

0 commit comments

Comments
 (0)