File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,10 @@ dotenv_1.default.config();
200
200
const prNumber = parseInt(core.getInput('PR_NUMBER') || process.env.PR_NUMBER);
201
201
const org = core.getInput('GITHUB_ORG') || process.env.GITHUB_ORG;
202
202
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];
203
205
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);
205
207
const assertion = await (0, github_1.getAssertion)(PR?.body ?? '');
206
208
if (assertion?.length === 0 || assertion === null) {
207
209
console.log('No assertion found');
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const repo: string = core.getInput('GITHUB_REPOSITORY') || (process.env.GITHUB_R
14
14
const repoName = repo . split ( '/' ) [ 1 ] ;
15
15
16
16
async function main ( ) {
17
- const PR = await getSinglePR ( org , repo , prNumber ) ;
17
+ const PR = await getSinglePR ( org , repoName , prNumber ) ;
18
18
const assertion = await getAssertion ( PR ?. body ?? '' ) ;
19
19
if ( assertion ?. length === 0 || assertion === null ) {
20
20
console . log ( 'No assertion found' ) ;
You can’t perform that action at this time.
0 commit comments