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.
Resolves #2716
Introduces a new method that allows using the API endpoint to get a team by slug name. In certain integration scenarios, other systems might know a team name that's common between systems, but not know the GitHub ID. This allows retrieving a team instance from the API without needing to work out the ID first.
Behaviour
Before the change?
NA - new feature
After the change?
New method on Teams Client that supports getting a team by slug name
Other information
It's the callers responsibility to provide the appropriately formed team slug name to the method, this PR provides no functionality to achieve that.
Whilst there are rules for forming the slug (all lower case, spaces replaced by hyphens, special chars removed etc) this is non-deterministic depending on the state of the organisation ( for example if there are multiple teams with the same name in an org), and therefore cannot be reliably implemented in a client SDK.
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: Feature