Skip to content

Commit

Permalink
add parsing logic for repo names
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez committed Jan 8, 2024
1 parent d6b9de7 commit f91826e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const prNumber: number = parseInt(core.getInput('PR_NUMBER') || (process.env.PR_
const org: string = core.getInput('GITHUB_ORG') || (process.env.GITHUB_ORG as string);
const repo: string = core.getInput('GITHUB_REPOSITORY') || (process.env.GITHUB_REPOSITORY as string);

// We'll need to parse the repo variable to remove the owner and the / from the string
const repoName = repo.split('/')[1];

async function main() {
const PR = await getSinglePR(org, repo, prNumber);
const assertion = await getAssertion(PR?.body ?? '');
Expand Down

0 comments on commit f91826e

Please sign in to comment.