Skip to content

Commit 5489032

Browse files
committed
fix: add github draft to support
1 parent ca8b887 commit 5489032

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/plugins/github/tasks/pr_extractor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type GithubApiPullRequest struct {
6262
GithubCreatedAt common.Iso8601Time `json:"created_at"`
6363
GithubUpdatedAt common.Iso8601Time `json:"updated_at"`
6464
MergeCommitSha string `json:"merge_commit_sha"`
65+
Draft bool `json:"draft"`
6566
Head struct {
6667
Ref string `json:"ref"`
6768
Sha string `json:"sha"`
@@ -182,6 +183,7 @@ func convertGithubPullRequest(pull *GithubApiPullRequest, connId uint64, repoId
182183
BaseCommitSha: pull.Base.Sha,
183184
HeadRef: pull.Head.Ref,
184185
HeadCommitSha: pull.Head.Sha,
186+
IsDraft: pull.Draft,
185187
}
186188
if pull.Head.Repo != nil {
187189
githubPull.HeadRepoId = pull.Head.Repo.GithubId

0 commit comments

Comments
 (0)