-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test visibility] Read
pull_request
and pull_request_target
event…
… info from GHA (#4745)
- Loading branch information
1 parent
4d2f5b8
commit 70d5591
Showing
5 changed files
with
146 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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
70 changes: 70 additions & 0 deletions
70
packages/dd-trace/test/plugins/util/fixtures/github_event_payload.json
This file contains 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,70 @@ | ||
{ | ||
"action": "synchronize", | ||
"after": "df289512a51123083a8e6931dd6f57bb3883d4c4", | ||
"before": "f659d2fdd7bedffb40d9ab223dbde6afa5eadc32", | ||
"number": 1, | ||
"pull_request": { | ||
"_links": {}, | ||
"active_lock_reason": null, | ||
"additions": 2, | ||
"assignee": null, | ||
"assignees": [], | ||
"author_association": "OWNER", | ||
"auto_merge": null, | ||
"base": { | ||
"label": "datadog:main", | ||
"ref": "main", | ||
"repo": {}, | ||
"sha": "52e0974c74d41160a03d59ddc73bb9f5adab054b", | ||
"user": {} | ||
}, | ||
"body": "# What Does This Do\r\n\r\n# Motivation\r\n\r\n# Additional Notes\r\n", | ||
"changed_files": 3, | ||
"closed_at": null, | ||
"comments": 0, | ||
"comments_url": "", | ||
"commits": 2, | ||
"commits_url": "", | ||
"created_at": "2024-09-11T15:08:02Z", | ||
"deletions": 0, | ||
"diff_url": "", | ||
"draft": false, | ||
"head": { | ||
"label": "forked_org:test-branch", | ||
"ref": "test-branch", | ||
"repo": {}, | ||
"sha": "df289512a51123083a8e6931dd6f57bb3883d4c4", | ||
"user": {} | ||
}, | ||
"html_url": "", | ||
"id": 2066570986, | ||
"issue_url": "", | ||
"labels": [], | ||
"locked": false, | ||
"maintainer_can_modify": false, | ||
"merge_commit_sha": "d9a3212d0d5d1483426dbbdf0beea32ee50abcde", | ||
"mergeable": null, | ||
"mergeable_state": "unknown", | ||
"merged": false, | ||
"merged_at": null, | ||
"merged_by": null, | ||
"milestone": null, | ||
"node_id": "PR_kwDOIvpGAs57LV7q", | ||
"number": 1, | ||
"patch_url": "", | ||
"rebaseable": null, | ||
"requested_reviewers": [], | ||
"requested_teams": [], | ||
"review_comment_url": "", | ||
"review_comments": 0, | ||
"review_comments_url": "", | ||
"state": "open", | ||
"statuses_url": "", | ||
"title": "Test commit", | ||
"updated_at": "2024-09-11T15:12:26Z", | ||
"url": "", | ||
"user": {} | ||
}, | ||
"repository": {}, | ||
"sender": {} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/dd-trace/test/plugins/util/fixtures/github_event_payload_malformed.json
This file contains 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 @@ | ||
{} |
This file contains 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