Skip to content

Commit 6a64da7

Browse files
Create up.js
1 parent 8a0c87b commit 6a64da7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

up.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Octokit } from "https://cdn.skypack.dev/octokit";
2+
const octokit = new Octokit({
3+
auth: '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'
4+
})
5+
await octokit.request('POST /repos/{owner}/{repo}/dispatches', {
6+
owner: 'OWNER',
7+
repo: 'REPO',
8+
event_type: 'on-demand-test',
9+
client_payload: {
10+
unit: false,
11+
integration: true
12+
},
13+
headers: {
14+
'X-GitHub-Api-Version': '2022-11-28'
15+
}
16+
})

0 commit comments

Comments
 (0)