Skip to content

Commit

Permalink
helps to create a build 🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez committed Jan 8, 2024
1 parent f91826e commit bbbc261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ dotenv_1.default.config();
const prNumber = parseInt(core.getInput('PR_NUMBER') || process.env.PR_NUMBER);
const org = core.getInput('GITHUB_ORG') || process.env.GITHUB_ORG;
const repo = core.getInput('GITHUB_REPOSITORY') || process.env.GITHUB_REPOSITORY;
// 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 (0, github_1.getSinglePR)(org, repo, prNumber);
const PR = await (0, github_1.getSinglePR)(org, repoName, prNumber);
const assertion = await (0, github_1.getAssertion)(PR?.body ?? '');
if (assertion?.length === 0 || assertion === null) {
console.log('No assertion found');
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const repo: string = core.getInput('GITHUB_REPOSITORY') || (process.env.GITHUB_R
const repoName = repo.split('/')[1];

async function main() {
const PR = await getSinglePR(org, repo, prNumber);
const PR = await getSinglePR(org, repoName, prNumber);
const assertion = await getAssertion(PR?.body ?? '');
if (assertion?.length === 0 || assertion === null) {
console.log('No assertion found');
Expand Down

0 comments on commit bbbc261

Please sign in to comment.