Skip to content

Commit

Permalink
Fixes inline commenting in GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkraig committed Apr 9, 2019
1 parent a22c68b commit 76b7bb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions source/dsl/GitLabDSL.ts
Expand Up @@ -185,9 +185,9 @@ export interface GitLabDiscussionTextPosition {
start_sha: string
head_sha: string
new_path: string
new_line: string
new_line: number
old_path: string
old_line: string | null
old_line: number | null
}

export interface GitLabInlineNote extends GitLabNote {
Expand Down
2 changes: 1 addition & 1 deletion source/platforms/GitLab.ts
Expand Up @@ -158,7 +158,7 @@ class GitLab implements Platform {
old_path: path,
old_line: null,
new_path: path,
new_line: `${line}`,
new_line: line,
})
}

Expand Down
10 changes: 5 additions & 5 deletions source/platforms/gitlab/GitLabAPI.ts
@@ -1,14 +1,14 @@
import { RepoMetaData } from "../../dsl/BitBucketServerDSL"
import { api as fetch } from "../../api/fetch"
import {
GitLabDiscussionTextPosition,
GitLabInlineNote,
GitLabMR,
GitLabMRChanges,
GitLabMRChange,
GitLabMRChanges,
GitLabMRCommit,
GitLabUserProfile,
GitLabInlineNote,
GitLabNote,
GitLabDiscussionTextPosition,
GitLabUserProfile,
} from "../../dsl/GitLabDSL"

import { Gitlab } from "gitlab"
Expand Down Expand Up @@ -126,7 +126,7 @@ class GitLabAPI {

try {
const res = await api.create(this.repoMetadata.repoSlug, this.repoMetadata.pullRequestID, content, {
position,
position: position,
})

return res
Expand Down

0 comments on commit 76b7bb1

Please sign in to comment.