-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
update models with updated permission enum #2633
Merged
kfcampbell
merged 47 commits into
octokit:main
from
notauserx:update-team-permissions-enums
Jan 20, 2023
+2,052
−37
Merged
Changes from 3 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
409c586
update models with updated permission enum
notauserx ce9df33
add suppress message attribute
notauserx 0eed292
update integration tests
notauserx 9b6164a
refactor: new and legacy update teams endpint
notauserx 1ad585e
refactor: add new delete team endpoint
notauserx 9c45e17
Merge branch 'main' into update-team-permissions-enums
kfcampbell 3a3dbdd
use TeamPermission on NewTeam
notauserx 754bece
use updated delete on team context dispose
notauserx 82593bd
Merge branch 'update-team-permissions-enums' of https://github.com/no…
notauserx b354217
add permission enum for team response object
notauserx a976530
refactor: remove legacy suffix from method names
notauserx c22a76d
introduce permissions object on Team
notauserx c5f0cf4
refactor: rename enum to TeamRepositoryPermission
notauserx 3b16170
fix formatting
notauserx 76cfbff
change Permission to string to match api specs
notauserx d05c0cd
add TeamRepository
notauserx baee285
add CheckTeamPermission endpoint support
notauserx 1c6313d
fix convention tests
notauserx a6be98d
update comments on TeamRepository props
notauserx d6f345b
add two new endpoints in TeamsClient
notauserx c01bb60
refactor: rename ApiUrl for TeamPermission
notauserx d0f4f0c
fix test
notauserx cba9141
implement methods for new endpoints
notauserx 426abdf
add the integration tests
notauserx 19dd149
fix spelling
notauserx 38b0881
update comments
notauserx de786e0
refactor: rename method name
notauserx a76d81a
Merge branch 'main' into update-team-permissions-enums
notauserx e38ec35
Merge branch 'update-team-permissions-enums' of https://github.com/no…
notauserx d194b68
fix: add end tag for remarks
notauserx 28a36d6
refactor: remove unused method param
notauserx 662b40a
fix docstring comment
notauserx 2a6497f
the unit tests are in finally
notauserx d40e981
add docs for teams api
notauserx f98829f
Merge branch 'main' into update-team-permissions-enums
kfcampbell a4deb95
split CheckTeamPermissions into two methods
notauserx f3d6980
Update ObservableTeamsClientTests.cs based on review
notauserx 960382c
add cref to legacy update and delete endpoints
notauserx 62de913
remove editorconfig file
notauserx 7f1bd0e
Merge branch 'main' into update-team-permissions-enums
kfcampbell b13a43c
Merge branch 'main' into update-team-permissions-enums
kfcampbell 4e2c833
Update Octokit.Tests/Clients/TeamsClientTests.cs
notauserx aa6788f
remove unused line
notauserx ca7de3b
rename variable based on review
notauserx c73545b
rename prop to match constructor param
notauserx 2ec885d
add comment to explain TeamPermission enum values on update
notauserx 31a2e9c
Merge branch 'main' into update-team-permissions-enums
notauserx 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 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,3 @@ | ||
root=true | ||
[*.cs] | ||
end_of_line = lf |
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that admin is not being accepted as a permission value, even though the docs say it can be.
I can get this test passing with Pull and Push values, but passing admin just fails with
setting TeamPermission.Admin fails with Octokit.ApiValidationException : Setting team permission to admin is no longer supported
curl also gets me the same error