-
Couldn't load subscription status.
- Fork 259
feat: [PIPE-28869]: Added support for pull_request_review #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6ba5ff5
feat: [PIPE-28869]: Added support for pull_request_review
shivamnegi94 cbfe7cb
feat: [PIPE-28869]: Added support for pull_request_review
shivamnegi94 af032bb
fix: [PIPE-28862]: Fix for Expression resolve and detail URL
shivamnegi94 94cbf99
feat: [PIPE-28869]: Added support for pull_request_review
shivamnegi94 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
541 changes: 541 additions & 0 deletions
541
scm/driver/github/testdata/webhooks/pr_review_edited.json
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
scm/driver/github/testdata/webhooks/pr_review_edited.json.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "Action": "edited", | ||
| "Repo": { | ||
| "ID": "335170389", | ||
| "Namespace": "shivamnegi94", | ||
| "Name": "testrepo", | ||
| "Branch": "main", | ||
| "Private": false, | ||
| "Link": "https://github.com/shivamnegi94/testrepo", | ||
| "Created": "2021-02-02T04:41:22Z", | ||
| "Updated": "2025-07-29T06:43:46Z", | ||
| "Visibility": 1, | ||
| "Perm": {}, | ||
| "CloneSSH": "git@github.com:shivamnegi94/testrepo.git", | ||
| "Clone": "https://github.com/shivamnegi94/testrepo.git" | ||
| }, | ||
| "PullRequest": { | ||
| "Number": 206, | ||
| "Title": "Update sacsac.yaml", | ||
| "Body": null, | ||
| "Sha": "9dc1b02c9b25bac779bdb2f31034f3f2421aa71d", | ||
| "Ref": "refs/pull/206/head", | ||
| "Source": "ut", | ||
| "Target": "main", | ||
| "Fork": "shivamnegi94/testrepo", | ||
| "Link": "https://github.com/shivamnegi94/testrepo/pull/206", | ||
| "Diff": "https://github.com/shivamnegi94/testrepo/pull/206.diff", | ||
| "Closed": false, | ||
| "Merged": false, | ||
| "Base": { | ||
| "Sha": "8115fbff29ce287c1c080ab132ccbb48dee76dcd", | ||
| "Path": "refs/heads/main", | ||
| "Name": "main" | ||
| }, | ||
| "Head": { | ||
| "Sha": "9dc1b02c9b25bac779bdb2f31034f3f2421aa71d", | ||
| "Path": "refs/heads/ut", | ||
| "Name": "ut" | ||
| }, | ||
| "Author": { | ||
| "Login": "utkarshchoubey-harness", | ||
| "Name": "", | ||
| "Email": "", | ||
| "Avatar": "https://avatars.githubusercontent.com/u/101091340?v=4" | ||
| }, | ||
| "Created": "2025-07-29T06:44:39Z", | ||
| "Updated": "2025-07-29T06:50:15Z" | ||
| }, | ||
| "Sender": { | ||
| "Login": "shivamnegi94", | ||
| "Name": "", | ||
| "Email": "", | ||
| "Avatar": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| } | ||
| } |
127 changes: 127 additions & 0 deletions
127
scm/driver/github/testdata/webhooks/pr_review_submitted.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| { | ||
| "action": "submitted", | ||
| "review": { | ||
| "id": 3060633379, | ||
| "node_id": "PRR_kwDOE_pLVc62bY8j", | ||
| "user": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4", | ||
| "gravatar_id": "", | ||
| "url": "https://api.github.com/users/shivamnegi94", | ||
| "html_url": "https://github.com/shivamnegi94", | ||
| "type": "User", | ||
| "site_admin": false | ||
| }, | ||
| "body": "go", | ||
| "commit_id": "adccd6c5030261b47e35d0d3798d4ed31a051f6d", | ||
| "submitted_at": "2025-07-28T06:35:59Z", | ||
| "state": "commented", | ||
| "html_url": "https://github.com/shivamnegi94/testrepo/pull/205#pullrequestreview-3060633379", | ||
| "pull_request_url": "https://api.github.com/repos/shivamnegi94/testrepo/pulls/205", | ||
| "author_association": "OWNER" | ||
| }, | ||
| "pull_request": { | ||
| "url": "https://api.github.com/repos/shivamnegi94/testrepo/pulls/205", | ||
| "id": 2699141628, | ||
| "node_id": "PR_kwDOE_pLVc6g4aH8", | ||
| "html_url": "https://github.com/shivamnegi94/testrepo/pull/205", | ||
| "diff_url": "https://github.com/shivamnegi94/testrepo/pull/205.diff", | ||
| "patch_url": "https://github.com/shivamnegi94/testrepo/pull/205.patch", | ||
| "issue_url": "https://api.github.com/repos/shivamnegi94/testrepo/issues/205", | ||
| "number": 205, | ||
| "state": "open", | ||
| "locked": false, | ||
| "title": "Update NewSre_v1.yaml", | ||
| "user": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "body": null, | ||
| "created_at": "2025-07-28T04:57:11Z", | ||
| "updated_at": "2025-07-28T06:35:59Z", | ||
| "closed_at": null, | ||
| "merged_at": null, | ||
| "merge_commit_sha": "728c82839639b8693c56c4237675deeca6b82163", | ||
| "draft": false, | ||
| "head": { | ||
| "label": "shivamnegi94:shivamnegi94-patch-66", | ||
| "ref": "shivamnegi94-patch-66", | ||
| "sha": "adccd6c5030261b47e35d0d3798d4ed31a051f6d", | ||
| "user": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "repo": { | ||
| "id": 335170389, | ||
| "node_id": "MDEwOlJlcG9zaXRvcnkzMzUxNzAzODk=", | ||
| "name": "testrepo", | ||
| "full_name": "shivamnegi94/testrepo", | ||
| "private": false, | ||
| "owner": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "html_url": "https://github.com/shivamnegi94/testrepo", | ||
| "default_branch": "main", | ||
| "visibility": "public" | ||
| } | ||
| }, | ||
| "base": { | ||
| "label": "shivamnegi94:main", | ||
| "ref": "main", | ||
| "sha": "28e98f8dc20d4b20eb73b659e16f9fddeb860db5", | ||
| "user": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "repo": { | ||
| "id": 335170389, | ||
| "node_id": "MDEwOlJlcG9zaXRvcnkzMzUxNzAzODk=", | ||
| "name": "testrepo", | ||
| "full_name": "shivamnegi94/testrepo", | ||
| "private": false, | ||
| "owner": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "html_url": "https://github.com/shivamnegi94/testrepo", | ||
| "default_branch": "main", | ||
| "visibility": "public" | ||
| } | ||
| } | ||
| }, | ||
| "repository": { | ||
| "id": 335170389, | ||
| "node_id": "MDEwOlJlcG9zaXRvcnkzMzUxNzAzODk=", | ||
| "name": "testrepo", | ||
| "full_name": "shivamnegi94/testrepo", | ||
| "private": false, | ||
| "owner": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "html_url": "https://github.com/shivamnegi94/testrepo", | ||
| "default_branch": "main", | ||
| "visibility": "public" | ||
| }, | ||
| "sender": { | ||
| "login": "shivamnegi94", | ||
| "id": 58415634, | ||
| "node_id": "MDQ6VXNlcjU4NDE1NjM0", | ||
| "avatar_url": "https://avatars.githubusercontent.com/u/58415634?v=4", | ||
| "type": "User", | ||
| "site_admin": false | ||
| } | ||
| } |
53 changes: 53 additions & 0 deletions
53
scm/driver/github/testdata/webhooks/pr_review_submitted.json.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "Action": "submitted", | ||
| "Repo": { | ||
| "ID": "335170389", | ||
| "Namespace": "shivamnegi94", | ||
| "Name": "testrepo", | ||
| "Branch": "main", | ||
| "Private": false, | ||
| "Link": "https://github.com/shivamnegi94/testrepo", | ||
| "Created": "0001-01-01T00:00:00Z", | ||
| "Updated": "0001-01-01T00:00:00Z", | ||
| "Visibility": 1, | ||
| "Perm": {} | ||
| }, | ||
| "PullRequest": { | ||
| "Number": 205, | ||
| "Title": "Update NewSre_v1.yaml", | ||
| "Body": null, | ||
| "Sha": "adccd6c5030261b47e35d0d3798d4ed31a051f6d", | ||
| "Ref": "refs/pull/205/head", | ||
| "Source": "shivamnegi94-patch-66", | ||
| "Target": "main", | ||
| "Fork": "shivamnegi94/testrepo", | ||
| "Link": "https://github.com/shivamnegi94/testrepo/pull/205", | ||
| "Diff": "https://github.com/shivamnegi94/testrepo/pull/205.diff", | ||
| "Closed": false, | ||
| "Merged": false, | ||
| "Base": { | ||
| "Sha": "28e98f8dc20d4b20eb73b659e16f9fddeb860db5", | ||
| "Path": "refs/heads/main", | ||
| "Name": "main" | ||
| }, | ||
| "Head": { | ||
| "Sha": "adccd6c5030261b47e35d0d3798d4ed31a051f6d", | ||
| "Path": "refs/heads/shivamnegi94-patch-66", | ||
| "Name": "shivamnegi94-patch-66" | ||
| }, | ||
| "Author": { | ||
| "Login": "shivamnegi94", | ||
| "Name": "", | ||
| "Email": "", | ||
| "Avatar": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| }, | ||
| "Created": "2025-07-28T04:57:11Z", | ||
| "Updated": "2025-07-28T06:35:59Z" | ||
| }, | ||
| "Sender": { | ||
| "Login": "shivamnegi94", | ||
| "Name": "", | ||
| "Email": "", | ||
| "Avatar": "https://avatars.githubusercontent.com/u/58415634?v=4" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.