Skip to content

Commit 5050f09

Browse files
committed
Updated action.yml
1 parent 0bd4060 commit 5050f09

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

action.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
name: 'WebPageTest GitHub Action'
2-
author: 'WebPageTest'
3-
description: 'Automatically test code changes in WebPageTest and enforce performance budgets'
1+
name: "WebPageTest GitHub Action"
2+
author: "WebPageTest"
3+
description: "Automatically test code changes in WebPageTest and enforce performance budgets"
44
inputs:
55
apiKey:
6-
description: 'WebPageTest API Token'
6+
description: "WebPageTest API Token"
77
required: true
88
urls:
9-
description: 'List of URL(s) to test'
9+
description: "List of URL(s) to test"
1010
required: true
1111
budget:
12-
description: 'Path to WebPageTest testspecs.json file'
12+
description: "Path to WebPageTest testspecs.json file"
1313
required: false
1414
label:
15-
description: 'Label for test (shows up in WebPageTest)'
15+
description: "Label for test (shows up in WebPageTest)"
1616
required: false
1717
wptOptions:
18-
description: 'Path to JSON file with WebPageTest test options (see https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only)'
18+
description: "Path to JSON file with WebPageTest test options (see https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only)"
1919
required: false
2020
GITHUB_TOKEN:
21-
description: 'Secret GitHub Token (automatically provided by GitHub)'
22-
default: ${{ github.token }}
21+
description: "Secret GitHub Token (automatically provided by GitHub)"
22+
required: true
2323
runs:
24-
using: 'node12'
25-
main: 'index.js'
24+
using: "node12"
25+
main: "index.js"
2626
branding:
27-
icon: 'bar-chart-2'
28-
color: 'blue'
27+
icon: "bar-chart-2"
28+
color: "blue"

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ async function renderComment(data) {
7474

7575
//submit a comment
7676
await octokit.rest.issues.createComment({
77-
...context.repo,
77+
owner: context.repo.owner,
78+
repo: context.repo.repo,
7879
issue_number: prNumber,
7980
body: markdown,
8081
});

0 commit comments

Comments
 (0)