WIP: Update .gitlab-ci.yml
export class API {
name: string
): Promise<ReadonlyArray> {
const path = repos/${owner}/${name}/branches?protected=true
try {
const response = await this.request('GET', path)
return await parsedResponse<IAPIBranch[]>(response)
} catch (err) {
log.info(
[fetchProtectedBranches] unable to list protected branches
,
err
)
return new Array()
}
const response = await this.request('GET', path)
return await parsedResponse<IAPIBranch[]>(response)
}
/**
Edited by Simon Pc