Skip to content

Commit 9ed21f4

Browse files
feat(*): next try
1 parent 29969f7 commit 9ed21f4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function run() {
6666
// // ok
6767
// const commit = await response.json() as { message: string }
6868
// const commitMessage = commit.message as string
69-
const url = `https://api.github.com/repos/${github.context.payload.repository}/git/commits/${sha}`;
69+
const url = `https://api.github.com/repos/${github.context.payload.repository?.full_name}/git/commits/${sha}`;
7070
console.log('fetch with url', url);
7171
const commit = (await fetch(url, ghToken)); /* and others */
7272
const commitMessage = commit.message;

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function run() {
4848
// // ok
4949
// const commit = await response.json() as { message: string }
5050
// const commitMessage = commit.message as string
51-
const url = `https://api.github.com/repos/${github.context.payload.repository}/git/commits/${sha}`
51+
const url = `https://api.github.com/repos/${github.context.payload.repository?.full_name}/git/commits/${sha}`
5252
console.log('fetch with url', url)
5353
const commit = (await fetch(url, ghToken)) as { sha: string, url: string, message: string } /* and others */
5454

0 commit comments

Comments
 (0)