Skip to content

Commit

Permalink
add extra log
Browse files Browse the repository at this point in the history
  • Loading branch information
smjt-h committed May 6, 2024
1 parent 7d40648 commit 1c85de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scm/driver/gitlab/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ type pr struct {
BaseSha string `json:"base_sha"`
HeadSha string `json:"head_sha"`
StartSha string `json:"start_sha"`
}
} `json:"diff_refs"`
}

type changes struct {
Expand Down Expand Up @@ -166,6 +166,7 @@ func convertPullRequest(from *pr) *scm.PullRequest {
Name: from.Author.Name,
Login: from.Author.Username,
Avatar: from.Author.Avatar,
Email: "aaaa",
},
Created: from.Created,
Updated: from.Updated,
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/gitlab/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func convertPullRequestHook(src *pullRequestHook) *scm.PullRequestHook {
Author: scm.User{
Login: src.User.Username,
Name: src.User.Name,
Email: "", // TODO how do we get the pull request author email?
Email: "bbbb", // TODO how do we get the pull request author email?
Avatar: src.User.AvatarURL,
},
},
Expand Down

0 comments on commit 1c85de8

Please sign in to comment.