Skip to content

Commit

Permalink
Merge pull request #383 from unfoldingWord/root-v1.20-and-main
Browse files Browse the repository at this point in the history
Adds Status for PR
  • Loading branch information
richmahn authored Nov 14, 2023
2 parents f397867 + 562f42f commit b845c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/structs/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type PullRequest struct {

PinOrder int `json:"pin_order"`

HasConflicts bool `json:"has_conflicts"` // DCS Customizations
Status string `json:"status"` // DCS Customizations
ConflictedFiles []string `json:"conflicted_files"` // DCS Customizations
}

Expand Down
4 changes: 2 additions & 2 deletions services/convert/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func ToAPIPullRequest(ctx context.Context, pr *issues_model.PullRequest, doer *u
Updated: pr.Issue.UpdatedUnix.AsTimePtr(),
PinOrder: apiIssue.PinOrder,

HasConflicts: pr.IsFilesConflicted(), // DCS Customizations
ConflictedFiles: pr.ConflictedFiles, // DCS Customizations
Status: pr.Status.String(), // DCS Customizations
ConflictedFiles: pr.ConflictedFiles, // DCS Customizations

AllowMaintainerEdit: pr.AllowMaintainerEdit,

Expand Down

0 comments on commit b845c49

Please sign in to comment.