Skip to content

Commit 4ec80d0

Browse files
committed
chore: quote property keys and fix indentation
1 parent 5a95340 commit 4ec80d0

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

.github/workflows/cleanup_coverage.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ jobs:
5959
script: |
6060
const prNumber = context.payload.pull_request.number;
6161
const { data: comments } = await github.rest.issues.listComments({
62-
owner: context.repo.owner,
63-
repo: context.repo.repo,
64-
issue_number: prNumber,
62+
'owner': context.repo.owner,
63+
'repo': context.repo.repo,
64+
'issue_number': prNumber
6565
});
6666
const coverageComment = comments.find( comment => comment.body && comment.body.includes( '## Coverage Report' ) );
6767
if ( coverageComment ) {
6868
// Replace URLs with plain text in the coverage report comment body:
6969
const updatedBody = coverageComment.body.replace( /<a href="[^"]+">([^<]+)<\/a>/g, '$1' );
7070
await github.rest.issues.updateComment({
71-
owner: context.repo.owner,
72-
repo: context.repo.repo,
73-
comment_id: coverageComment.id,
74-
body: updatedBody,
71+
'owner': context.repo.owner,
72+
'repo': context.repo.repo,
73+
'comment_id': coverageComment.id,
74+
'body': updatedBody
7575
});
7676
} else {
7777
console.log( 'No Coverage Report comment found.' );

.github/workflows/run_tests_coverage.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -226,25 +226,25 @@ jobs:
226226
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
227227
script: |
228228
const { data: comments } = await github.rest.issues.listComments({
229-
issue_number: context.issue.number,
230-
owner: context.repo.owner,
231-
repo: context.repo.repo,
229+
'issue_number': context.issue.number,
230+
'owner': context.repo.owner,
231+
'repo': context.repo.repo,
232232
});
233233
234234
const botComment = comments.find( comment => comment.user.login === 'stdlib-bot' && comment.body.includes( '## Coverage Report' ) );
235235
if ( botComment ) {
236236
await github.rest.issues.updateComment({
237-
owner: context.repo.owner,
238-
repo: context.repo.repo,
239-
comment_id: botComment.id,
240-
body: `${{ steps.create-report.outputs.report }}`,
237+
'owner': context.repo.owner,
238+
'repo': context.repo.repo,
239+
'comment_id': botComment.id,
240+
'body': `${{ steps.create-report.outputs.report }}`
241241
});
242242
} else {
243243
await github.rest.issues.createComment({
244-
issue_number: context.issue.number,
245-
owner: context.repo.owner,
246-
repo: context.repo.repo,
247-
body: `${{ steps.create-report.outputs.report }}`,
244+
'issue_number': context.issue.number,
245+
'owner': context.repo.owner,
246+
'repo': context.repo.repo,
247+
'body': `${{ steps.create-report.outputs.report }}`
248248
});
249249
}
250250
@@ -257,10 +257,10 @@ jobs:
257257
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
258258
script: |
259259
github.rest.repos.createCommitComment({
260-
commit_sha: context.sha,
261-
owner: context.repo.owner,
262-
repo: context.repo.repo,
263-
body: '${{ steps.create-report.outputs.report }}'
260+
'commit_sha': context.sha,
261+
'owner': context.repo.owner,
262+
'repo': context.repo.repo,
263+
'body': '${{ steps.create-report.outputs.report }}'
264264
})
265265
266266
# Checkout coverage repository:
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
[
2-
"name",
3-
"version",
4-
"description",
5-
"license",
6-
"licenses",
7-
"author",
8-
"maintainers",
9-
"contributors",
2+
"name",
3+
"version",
4+
"description",
5+
"license",
6+
"licenses",
7+
"author",
8+
"maintainers",
9+
"contributors",
1010
"funding",
11-
"bin",
12-
"main",
13-
"exports",
14-
"browser",
15-
"unpkg",
16-
"gypfile",
17-
"directories",
18-
"types",
19-
"scripts",
20-
"homepage",
21-
"repository",
22-
"repositories",
23-
"bugs",
24-
"dependencies",
11+
"bin",
12+
"main",
13+
"exports",
14+
"browser",
15+
"unpkg",
16+
"gypfile",
17+
"directories",
18+
"types",
19+
"scripts",
20+
"homepage",
21+
"repository",
22+
"repositories",
23+
"bugs",
24+
"dependencies",
2525
"optionalDependencies",
26-
"devDependencies",
27-
"engines",
28-
"os",
29-
"keywords",
30-
"__stdlib__"
26+
"devDependencies",
27+
"engines",
28+
"os",
29+
"keywords",
30+
"__stdlib__"
3131
]

0 commit comments

Comments
 (0)