-
Notifications
You must be signed in to change notification settings - Fork 116
fix: Show repo owner in builds repo selector #5417
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
+164
−153
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d9b107d
fix: Show repo owner in builds repo selector
steverydz f83c452
Apply suggestion from @Copilot
steverydz 4675399
Update webapp/api/github.py
steverydz 4b40726
Update static/js/publisher/pages/Builds/RepoSelector.tsx
steverydz 2d9863b
Fix test to accomodate nameWithOwner field
steverydz 50b5acf
Update webapp/api/github.py
steverydz 294f2c3
Fix linting error
steverydz 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
Some comments aren't visible on the classic Files Changed page.
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
296 changes: 147 additions & 149 deletions
296
tests/api/cassettes/GitHubTest.test_get_user_repositories.yaml
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 |
---|---|---|
@@ -1,151 +1,149 @@ | ||
interactions: | ||
- request: | ||
body: '{"query": "{\n viewer {\n repositories(\n first: | ||
100,\n privacy: PUBLIC,\n ownerAffiliations: | ||
[OWNER],\n \n ) {\n edges {\n node | ||
{\n name\n }\n }\n pageInfo | ||
{\n hasNextPage\n endCursor\n }\n }\n }\n }"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '473' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- storefront (516d523a5dba207e721d0f8e56d031af100ce611;devel) | ||
method: POST | ||
uri: https://api.github.com/graphql | ||
response: | ||
body: | ||
string: !!binary | | ||
H4sIAAAAAAAAA3WPPwvCMBDFv8vNWWx1sNBBdLAIxkko4nCYa41oEpL4J4Z+d5Pd3HLv3g8e7yII | ||
9AhNhJekN9msLBntpNdWkss3iTGLUwSlBWVH4SNt8OT8DKaJ/SVVkdRFMi+SRSJnBgZH6tSgc4sr | ||
uj19/CFZ0Ax4d8SAlFg/rdPpEejrY7hUy8BVH7jZ8s1t131XbZuS0vwAWZ+8kvoAAAA= | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
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 | ||
Cache-Control: | ||
- no-cache | ||
Content-Encoding: | ||
- gzip | ||
Content-Security-Policy: | ||
- default-src 'none' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Mon, 17 Feb 2020 13:33:31 GMT | ||
Referrer-Policy: | ||
- origin-when-cross-origin, strict-origin-when-cross-origin | ||
Server: | ||
- GitHub.com | ||
Status: | ||
- 200 OK | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubdomains; preload | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Accept-Encoding, Accept, X-Requested-With | ||
X-Accepted-OAuth-Scopes: | ||
- repo | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- deny | ||
X-GitHub-Media-Type: | ||
- github.v4 | ||
X-GitHub-Request-Id: | ||
- AA88:D864:762CC31:8C7B0A0:5E4A962A | ||
X-OAuth-Client-Id: | ||
- cdeb3a60fecee4208395 | ||
X-OAuth-Scopes: | ||
- read:org, repo | ||
X-RateLimit-Limit: | ||
- '5000' | ||
X-RateLimit-Remaining: | ||
- '4998' | ||
X-RateLimit-Reset: | ||
- '1581950009' | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"query": "{\n viewer {\n repositories(\n first: | ||
100,\n privacy: PUBLIC,\n ownerAffiliations: | ||
[OWNER],\n \n ) {\n edges {\n node | ||
{\n name\n }\n }\n pageInfo | ||
{\n hasNextPage\n endCursor\n }\n }\n }\n }"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '473' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- storefront (516d523a5dba207e721d0f8e56d031af100ce611;devel) | ||
method: POST | ||
uri: https://api.github.com/graphql | ||
response: | ||
body: | ||
string: '{"message":"Bad credentials","documentation_url":"https://developer.github.com/v4"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
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 | ||
Content-Length: | ||
- '83' | ||
Content-Security-Policy: | ||
- default-src 'none' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Mon, 17 Feb 2020 13:33:31 GMT | ||
Referrer-Policy: | ||
- origin-when-cross-origin, strict-origin-when-cross-origin | ||
Server: | ||
- GitHub.com | ||
Status: | ||
- 401 Unauthorized | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubdomains; preload | ||
Vary: | ||
- Accept-Encoding, Accept, X-Requested-With | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- deny | ||
X-GitHub-Media-Type: | ||
- github.v4 | ||
X-GitHub-Request-Id: | ||
- AA88:D864:762CD9B:8C7B1F5:5E4A962B | ||
X-RateLimit-Limit: | ||
- '0' | ||
X-RateLimit-Remaining: | ||
- '0' | ||
X-RateLimit-Reset: | ||
- '1581950011' | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 401 | ||
message: Unauthorized | ||
- request: | ||
body: | ||
'{"query": "{\n viewer {\n repositories(\n first: | ||
100,\n privacy: PUBLIC,\n \n ) | ||
{\n edges {\n node {\n name\n nameWithOwner\n }\n }\n pageInfo | ||
{\n hasNextPage\n endCursor\n }\n }\n }\n }"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- "457" | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- storefront (516d523a5dba207e721d0f8e56d031af100ce611;devel) | ||
method: POST | ||
uri: https://api.github.com/graphql | ||
response: | ||
body: | ||
string: '{"data":{"viewer":{"repositories":{"edges":[{"node":{"name":"test1","nameWithOwner":"testuser/test1"}},{"node":{"name":"test2","nameWithOwner":"testuser/test2"}},{"node":{"name":"test3","nameWithOwner":"testuser/test3"}},{"node":{"name":"test4","nameWithOwner":"testuser/test4"}},{"node":{"name":"test5","nameWithOwner":"testuser/test5"}}],"pageInfo":{"hasNextPage":false,"endCursor":"Y3Vyc29yOnYyOpHODjKIzA=="}}}}}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- "*" | ||
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 | ||
Cache-Control: | ||
- no-cache | ||
Content-Security-Policy: | ||
- default-src 'none' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Mon, 17 Feb 2020 13:33:31 GMT | ||
Referrer-Policy: | ||
- origin-when-cross-origin, strict-origin-when-cross-origin | ||
Server: | ||
- GitHub.com | ||
Status: | ||
- 200 OK | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubdomains; preload | ||
Vary: | ||
- Accept-Encoding, Accept, X-Requested-With | ||
X-Accepted-OAuth-Scopes: | ||
- repo | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- deny | ||
X-GitHub-Media-Type: | ||
- github.v4 | ||
X-GitHub-Request-Id: | ||
- AA88:D864:762CC31:8C7B0A0:5E4A962A | ||
X-OAuth-Client-Id: | ||
- cdeb3a60fecee4208395 | ||
X-OAuth-Scopes: | ||
- read:org, repo | ||
X-RateLimit-Limit: | ||
- "5000" | ||
X-RateLimit-Remaining: | ||
- "4998" | ||
X-RateLimit-Reset: | ||
- "1581950009" | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: | ||
'{"query": "{\n viewer {\n repositories(\n first: | ||
100,\n privacy: PUBLIC,\n \n ) | ||
{\n edges {\n node {\n name\n nameWithOwner\n }\n }\n pageInfo | ||
{\n hasNextPage\n endCursor\n }\n }\n }\n }"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate, br, zstd | ||
Connection: | ||
- close | ||
Content-Length: | ||
- "457" | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- storefront (commit_id;devel) | ||
method: POST | ||
uri: https://api.github.com/graphql | ||
response: | ||
body: | ||
string: '{"message":"Bad credentials","documentation_url":"https://docs.github.com/graphql","status":"401"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- "*" | ||
Access-Control-Expose-Headers: | ||
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, | ||
X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, | ||
X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, | ||
X-GitHub-Request-Id, Deprecation, Sunset | ||
Content-Length: | ||
- "98" | ||
Content-Security-Policy: | ||
- default-src 'none' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Tue, 14 Oct 2025 14:04:16 GMT | ||
Referrer-Policy: | ||
- origin-when-cross-origin, strict-origin-when-cross-origin | ||
Server: | ||
- github.com | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubdomains; preload | ||
Vary: | ||
- Accept-Encoding, Accept, X-Requested-With | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- deny | ||
X-GitHub-Media-Type: | ||
- github.v4 | ||
X-GitHub-Request-Id: | ||
- EA4D:41CE:7AFD5A:95CF9A:68EE5860 | ||
X-RateLimit-Limit: | ||
- "0" | ||
X-RateLimit-Remaining: | ||
- "0" | ||
X-RateLimit-Reset: | ||
- "1760454256" | ||
X-RateLimit-Resource: | ||
- graphql | ||
X-RateLimit-Used: | ||
- "0" | ||
X-XSS-Protection: | ||
- "0" | ||
connection: | ||
- close | ||
status: | ||
code: 401 | ||
message: Unauthorized | ||
version: 1 |
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.