@@ -12,7 +12,6 @@ import {
1212import { MergeConflictsFatalError } from '../../../../ng-dev/pr/merge/failures.js' ;
1313import { createPullRequestValidationConfig } from '../../../../ng-dev/pr/common/validation/validation-config.js' ;
1414import { InvalidTargetLabelError } from '../../../../ng-dev/pr/common/targeting/target-label.js' ;
15- import { resolve } from 'path' ;
1615
1716interface CommmitStatus {
1817 state : 'pending' | 'error' | 'failure' | 'success' ;
@@ -28,6 +27,11 @@ const repo = core.getInput('repo', {required: true, trimWhitespace: true});
2827const owner = core . getInput ( 'owner' , { required : true , trimWhitespace : true } ) ;
2928/** The pull request number. */
3029const pr = Number ( core . getInput ( 'pr' , { required : true , trimWhitespace : true } ) ) ;
30+
31+ // Create a tmp directory to perform checks in and change working to directory to it.
32+ await cloneRepoIntoTmpLocation ( { owner, repo} ) ;
33+
34+
3135// If the provided pr is not a number, we cannot evaluate the mergeability.
3236if ( isNaN ( pr ) ) {
3337 core . setFailed ( 'The provided pr value was not a number' ) ;
@@ -86,9 +90,6 @@ async function main() {
8690 false ,
8791 ) ;
8892
89- // Create a tmp directory to perform checks in and change working to directory to it.
90- await cloneRepoIntoTmpLocation ( { owner, repo} ) ;
91-
9293 /** The pull request after being retrieved and validated. */
9394 const pullRequest = await loadAndValidatePullRequest (
9495 { git, config} ,
0 commit comments