Skip to content

Commit bbbc261

Browse files
helps to create a build 🤦‍♂️
1 parent f91826e commit bbbc261

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,10 @@ dotenv_1.default.config();
200200
const prNumber = parseInt(core.getInput('PR_NUMBER') || process.env.PR_NUMBER);
201201
const org = core.getInput('GITHUB_ORG') || process.env.GITHUB_ORG;
202202
const repo = core.getInput('GITHUB_REPOSITORY') || process.env.GITHUB_REPOSITORY;
203+
// We'll need to parse the repo variable to remove the owner and the / from the string
204+
const repoName = repo.split('/')[1];
203205
async function main() {
204-
const PR = await (0, github_1.getSinglePR)(org, repo, prNumber);
206+
const PR = await (0, github_1.getSinglePR)(org, repoName, prNumber);
205207
const assertion = await (0, github_1.getAssertion)(PR?.body ?? '');
206208
if (assertion?.length === 0 || assertion === null) {
207209
console.log('No assertion found');

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const repo: string = core.getInput('GITHUB_REPOSITORY') || (process.env.GITHUB_R
1414
const repoName = repo.split('/')[1];
1515

1616
async function main() {
17-
const PR = await getSinglePR(org, repo, prNumber);
17+
const PR = await getSinglePR(org, repoName, prNumber);
1818
const assertion = await getAssertion(PR?.body ?? '');
1919
if (assertion?.length === 0 || assertion === null) {
2020
console.log('No assertion found');

0 commit comments

Comments
 (0)