Skip to content

Commit dade488

Browse files
Update up.js
1 parent 2662d88 commit dade488

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

up.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { Octokit } from "https://esm.sh/@octokit/core";
22

3-
export const octokit = new Octokit({
3+
const octokit = new Octokit({
44
auth: "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",
5-
});
5+
})
66

7-
const repo = await octokit.request(
8-
"GET /users/{username}/repos{?type,sort,direction,per_page,page}",
9-
{
10-
username: "KittenApps-Films",
7+
await octokit.request('POST /repos/{owner}/{repo}/dispatches', {
8+
owner: 'OWNER',
9+
repo: 'REPO',
10+
event_type: 'on-demand-test',
11+
client_payload: {
12+
unit: false,
13+
integration: true
14+
},
15+
headers: {
16+
'X-GitHub-Api-Version': '2022-11-28'
1117
}
12-
);
13-
console.log(repo);
18+
})

0 commit comments

Comments
 (0)