Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Main

<!-- Your comment below this -->
- Feature: Expose updateMergeRequestInfo for gitlab api #1391 - [@glensc]
<!-- Your comment above this -->

## 11.2.7
Expand Down
1 change: 1 addition & 0 deletions source/dsl/GitLabDSL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface GitLabDSL extends GitLabJSONDSL {
fileContents(path: string, repoSlug?: string, ref?: string): Promise<string>
addLabels(...labels: string[]): Promise<boolean>
removeLabels(...labels: string[]): Promise<boolean>
updateMergeRequestInfo(changes: object): Promise<object>
}
api: InstanceType<typeof Gitlab>
}
Expand Down
1 change: 1 addition & 0 deletions source/platforms/GitLab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export const gitlabJSONToGitLabDSL = (gl: GitLabDSL, api: GitLabAPI): GitLabDSL
fileContents: api.getFileContents,
addLabels: api.addLabels,
removeLabels: api.removeLabels,
updateMergeRequestInfo: api.updateMergeRequestInfo,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the method be added to utils or top level (aside api: xxx)?

},
api: api.apiInstance,
})