Skip to content

Commit f91826e

Browse files
add parsing logic for repo names
1 parent d6b9de7 commit f91826e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const prNumber: number = parseInt(core.getInput('PR_NUMBER') || (process.env.PR_
1010
const org: string = core.getInput('GITHUB_ORG') || (process.env.GITHUB_ORG as string);
1111
const repo: string = core.getInput('GITHUB_REPOSITORY') || (process.env.GITHUB_REPOSITORY as string);
1212

13+
// We'll need to parse the repo variable to remove the owner and the / from the string
14+
const repoName = repo.split('/')[1];
15+
1316
async function main() {
1417
const PR = await getSinglePR(org, repo, prNumber);
1518
const assertion = await getAssertion(PR?.body ?? '');

0 commit comments

Comments
 (0)