1. add IssueID field for UploadIssueCommentInfo struct

2. add PullRequestID field for UploadPullRequestCommentInfo struct
This commit is contained in:
sulenn 2021-05-13 21:33:31 +08:00
parent c17bf815ce
commit 2d1a5e1402
3 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ type UploadIssueCommentOption struct {
IssueCommentID string `json:"issue_comment_id"`
IssueCommentNumber uint64 `json:"issue_comment_number"`
IssueNumber uint64 `json:"issue_number"`
IssueID string `json:"issue_id"`
RepoID string `json:"repo_id"`
ParentID string `json:"parent_id"`
Reponame string `json:"reponame"`

View File

@ -5,6 +5,7 @@ type UploadPullReuqestCommentOption struct {
PullRequestCommentNumber uint64 `json:"pull_request_comment_number"`
ParentID string `json:"parent_id"`
PullRequestNumber uint64 `json:"pull_request_number"`
PullRequestID string `json:"pull_request_id"`
RepoID string `json:"repo_id"`
Reponame string `json:"reponame"`
Ownername string `json:"ownername"`

View File

@ -98,6 +98,7 @@ func HandleAllRoutes(ctx *macaron.Context, opt api.FiscoBcos, logger *log.Logger
CreatedAt: opt.CreatedAt,
UpdatedAt: opt.UpdatedAt,
Content: opt.Content,
PullRequestID: opt.PullRequestID,
},
logger)
case "query pull request comment latest info":
@ -139,6 +140,7 @@ func HandleAllRoutes(ctx *macaron.Context, opt api.FiscoBcos, logger *log.Logger
CreatedAt: opt.CreatedAt,
UpdatedAt: opt.UpdatedAt,
Content: opt.Content,
IssueID: opt.IssueID,
},
logger)
case "query issue comment latest info":