@@ -138,13 +138,7 @@ export class GitLabProvider implements PrProvider {
138138 }
139139
140140 async listPrs ( options : ListPrsOptions ) : Promise < PrMatch [ ] > {
141- const {
142- author,
143- ghsaId,
144- owner,
145- repo,
146- states : statesValue = 'all' ,
147- } = options
141+ const { author, ghsaId, owner, repo, states : statesValue = 'all' } = options
148142 const checkAuthor = isNonEmptyString ( author )
149143 const matches : PrMatch [ ] = [ ]
150144 const projectId = `${ owner } /${ repo } `
@@ -214,9 +208,7 @@ export class GitLabProvider implements PrProvider {
214208 // GitLab requires project ID to delete a branch.
215209 // Since we don't have it in this method, we can't delete.
216210 // This is a limitation of the current interface design.
217- debug (
218- `mr: cannot delete branch ${ branch } - need project ID in interface` ,
219- )
211+ debug ( `mr: cannot delete branch ${ branch } - need project ID in interface` )
220212 return false
221213 } catch ( e ) {
222214 debug ( formatErrorWithDetail ( `mr: failed to delete branch ${ branch } ` , e ) )
@@ -251,9 +243,7 @@ export class GitLabProvider implements PrProvider {
251243/**
252244 * Maps GitLab merge request state to common state.
253245 */
254- function mapGitLabState (
255- state : string ,
256- ) : 'open' | 'closed' | 'merged' {
246+ function mapGitLabState ( state : string ) : 'open' | 'closed' | 'merged' {
257247 if ( state === 'opened' ) {
258248 return 'open'
259249 }
@@ -266,9 +256,7 @@ function mapGitLabState(
266256/**
267257 * Maps GitLab merge request state to uppercase common state.
268258 */
269- function mapGitLabStateToUpper (
270- state : string ,
271- ) : 'OPEN' | 'CLOSED' | 'MERGED' {
259+ function mapGitLabStateToUpper ( state : string ) : 'OPEN' | 'CLOSED' | 'MERGED' {
272260 if ( state === 'opened' ) {
273261 return 'OPEN'
274262 }
@@ -281,9 +269,7 @@ function mapGitLabStateToUpper(
281269/**
282270 * Maps common state to GitLab state.
283271 */
284- function mapStateToGitLab (
285- state : string ,
286- ) : 'opened' | 'closed' | 'merged' {
272+ function mapStateToGitLab ( state : string ) : 'opened' | 'closed' | 'merged' {
287273 const lower = state . toLowerCase ( )
288274 if ( lower === 'open' ) {
289275 return 'opened'
@@ -297,9 +283,7 @@ function mapStateToGitLab(
297283/**
298284 * Maps GitLab merge_status to common merge state status.
299285 */
300- function mapGitLabMergeStatus (
301- status : string ,
302- ) : MergeStateStatus {
286+ function mapGitLabMergeStatus ( status : string ) : MergeStateStatus {
303287 // GitLab merge_status values:
304288 // - can_be_merged: clean, no conflicts
305289 // - cannot_be_merged: has conflicts
0 commit comments