Skip to content

Commit

Permalink
Merge pull request #264 from drone/abhinav/CODE-727
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-harness authored Aug 31, 2023
2 parents 8764ac0 + 13e99fa commit e2d6b14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"Body": "",
"Sha": "f74f3d2a88d1b7cb19ff3bf069aa423763d341ef",
"Ref": "",
"Source": "13",
"Target": "13",
"Source": "b",
"Target": "main",
"Fork": "fork",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/myOrg/myProject/aba.git",
"Closed": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"Body": "",
"Sha": "d74b1ebfe520ac01b209dd9085f005884cc9f4cd",
"Ref": "",
"Source": "13",
"Target": "13",
"Source": "b",
"Target": "main",
"Fork": "fork",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/myOrg/myProject/aba.git",
"Closed": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"Body": "",
"Sha": "f74f3d2a88d1b7cb19ff3bf069aa423763d341ef",
"Ref": "",
"Source": "13",
"Target": "13",
"Source": "b",
"Target": "main",
"Fork": "fork",
"Link": "http://localhost:3000/git/kmpySmUISimoRrJL6NL73w/myOrg/myProject/aba.git",
"Closed": false,
Expand Down
5 changes: 2 additions & 3 deletions scm/driver/harness/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package harness
import (
"crypto/sha256"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -192,8 +191,8 @@ func convertPullRequestHook(dst *pullRequestHook) *scm.PullRequestHook {
Number: dst.PullReq.Number,
Title: dst.PullReq.Title,
Closed: dst.PullReq.State != "open",
Source: fmt.Sprintf("%d", dst.PullReq.SourceRepoID),
Target: fmt.Sprintf("%d", dst.PullReq.TargetRepoID),
Source: dst.PullReq.SourceBranch,
Target: dst.PullReq.TargetBranch,
Fork: "fork",
Link: dst.Ref.Repo.GitURL,
Sha: dst.Commit.Sha,
Expand Down

0 comments on commit e2d6b14

Please sign in to comment.