mirror of
https://github.com/harness/drone.git
synced 2025-05-02 21:55:27 +00:00
25 lines
1.1 KiB
Go
25 lines
1.1 KiB
Go
// Copyright 2022 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform Free Trial License
|
|
// that can be found in the LICENSE.md file for this repository.
|
|
|
|
package types
|
|
|
|
type CodeComment struct {
|
|
ID int64 `db:"pullreq_activity_id"`
|
|
Version int64 `db:"pullreq_activity_version"`
|
|
Updated int64 `db:"pullreq_activity_updated"`
|
|
|
|
CodeCommentFields
|
|
}
|
|
|
|
type CodeCommentFields struct {
|
|
Outdated bool `db:"pullreq_activity_outdated" json:"outdated"`
|
|
MergeBaseSHA string `db:"pullreq_activity_code_comment_merge_base_sha" json:"merge_base_sha"`
|
|
SourceSHA string `db:"pullreq_activity_code_comment_source_sha" json:"source_sha"`
|
|
Path string `db:"pullreq_activity_code_comment_path" json:"path"`
|
|
LineNew int `db:"pullreq_activity_code_comment_line_new" json:"line_new"`
|
|
SpanNew int `db:"pullreq_activity_code_comment_span_new" json:"span_new"`
|
|
LineOld int `db:"pullreq_activity_code_comment_line_old" json:"line_old"`
|
|
SpanOld int `db:"pullreq_activity_code_comment_span_old" json:"span_old"`
|
|
}
|