-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query github app installations by since date
- Loading branch information
1 parent
40992f7
commit 08f997f
Showing
6 changed files
with
209 additions
and
4 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
41 changes: 41 additions & 0 deletions
41
.../github/GHAppTest/wiremock/listInstallationsSince/__files/body-mapping-githubapp-app.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,41 @@ | ||
{ | ||
"id": 11111, | ||
"node_id": "MDM6QXBwMzI2MTY=", | ||
"owner": { | ||
"login": "bogus", | ||
"id": 111111111, | ||
"node_id": "asdfasdfasdf", | ||
"avatar_url": "https://avatars2.githubusercontent.com/u/111111111?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/bogus", | ||
"html_url": "https://github.com/bogus", | ||
"followers_url": "https://api.github.com/users/bogus/followers", | ||
"following_url": "https://api.github.com/users/bogus/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/bogus/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/bogus/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/bogus/subscriptions", | ||
"organizations_url": "https://api.github.com/users/bogus/orgs", | ||
"repos_url": "https://api.github.com/users/bogus/repos", | ||
"events_url": "https://api.github.com/users/bogus/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/bogus/received_events", | ||
"type": "Organization", | ||
"site_admin": false | ||
}, | ||
"name": "Bogus-Development", | ||
"description": "", | ||
"external_url": "https://bogus.domain.com", | ||
"html_url": "https://github.com/apps/bogus-development", | ||
"created_at": "2019-06-10T04:21:41Z", | ||
"updated_at": "2019-06-10T04:21:41Z", | ||
"permissions": { | ||
"checks": "write", | ||
"contents": "read", | ||
"metadata": "read", | ||
"pull_requests": "write" | ||
}, | ||
"events": [ | ||
"pull_request", | ||
"push" | ||
], | ||
"installations_count": 1 | ||
} |
45 changes: 45 additions & 0 deletions
45
...AppTest/wiremock/listInstallationsSince/__files/body-mapping-githubapp-installations.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,45 @@ | ||
[ | ||
{ | ||
"id": 11111111, | ||
"account": { | ||
"login": "bogus", | ||
"id": 111111111, | ||
"node_id": "asdfasdfasdf", | ||
"avatar_url": "https://avatars2.githubusercontent.com/u/111111111?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/bogus", | ||
"html_url": "https://github.com/bogus", | ||
"followers_url": "https://api.github.com/users/bogus/followers", | ||
"following_url": "https://api.github.com/users/bogus/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/bogus/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/bogus/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/bogus/subscriptions", | ||
"organizations_url": "https://api.github.com/users/bogus/orgs", | ||
"repos_url": "https://api.github.com/users/bogus/repos", | ||
"events_url": "https://api.github.com/users/bogus/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/bogus/received_events", | ||
"type": "Organization", | ||
"site_admin": false | ||
}, | ||
"repository_selection": "selected", | ||
"access_tokens_url": "https://api.github.com/app/installations/11111111/access_tokens", | ||
"repositories_url": "https://api.github.com/installation/repositories", | ||
"html_url": "https://github.com/organizations/bogus/settings/installations/11111111", | ||
"app_id": 11111, | ||
"target_id": 111111111, | ||
"target_type": "Organization", | ||
"permissions": { | ||
"checks": "write", | ||
"pull_requests": "write", | ||
"contents": "read", | ||
"metadata": "read" | ||
}, | ||
"events": [ | ||
"pull_request", | ||
"push" | ||
], | ||
"created_at": "2019-07-04T01:19:36.000Z", | ||
"updated_at": "2019-07-30T22:48:09.000Z", | ||
"single_file_name": null | ||
} | ||
] |
37 changes: 37 additions & 0 deletions
37
...suke/github/GHAppTest/wiremock/listInstallationsSince/mappings/mapping-githubapp-app.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,37 @@ | ||
{ | ||
"request": { | ||
"url": "/app", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "application/vnd.github.machine-man-preview+json" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "body-mapping-githubapp-app.json", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Fri, 09 Aug 2019 05:36:38 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Status": "200 OK", | ||
"Cache-Control": "public, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept", | ||
"Accept-Encoding" | ||
], | ||
"ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", | ||
"X-GitHub-Media-Type": "github.machine-man-preview; format=json", | ||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", | ||
"Access-Control-Allow-Origin": "*", | ||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", | ||
"Content-Security-Policy": "default-src 'none'", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", | ||
"X-Content-Type-Options": "nosniff", | ||
"X-Frame-Options": "deny", | ||
"X-XSS-Protection": "1; mode=block", | ||
"X-GitHub-Request-Id": "E0C4:3088:300C54:3ACB77:5D4D0666" | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...b/GHAppTest/wiremock/listInstallationsSince/mappings/mapping-githubapp-installations.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,42 @@ | ||
{ | ||
"request": { | ||
"urlPathPattern": "/app/installations", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "application/vnd.github.machine-man-preview+json" | ||
} | ||
}, | ||
"queryParameters": { | ||
"since": { | ||
"equalTo": "2023-11-01T00:00:00Z" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "body-mapping-githubapp-installations.json", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Fri, 09 Aug 2019 05:36:38 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Status": "200 OK", | ||
"Cache-Control": "public, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept", | ||
"Accept-Encoding" | ||
], | ||
"ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", | ||
"X-GitHub-Media-Type": "github.machine-man-preview; format=json", | ||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", | ||
"Access-Control-Allow-Origin": "*", | ||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", | ||
"Content-Security-Policy": "default-src 'none'", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", | ||
"X-Content-Type-Options": "nosniff", | ||
"X-Frame-Options": "deny", | ||
"X-XSS-Protection": "1; mode=block", | ||
"X-GitHub-Request-Id": "E0C4:3088:300C54:3ACB77:5D4D0666" | ||
} | ||
} | ||
} |