Skip to content

Add missing setter methods to GHTeam#2219

Open
mvanhorn wants to merge 1 commit intohub4j:mainfrom
mvanhorn:feat/ghteam-update-methods
Open

Add missing setter methods to GHTeam#2219
mvanhorn wants to merge 1 commit intohub4j:mainfrom
mvanhorn:feat/ghteam-update-methods

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 8, 2026

GHTeam currently only has setDescription and setPrivacy. The GitHub API supports updating several more properties.

This adds 4 missing setters, all following the same PATCH pattern as the existing ones:

  • setName(String name)
  • setNotificationSetting(String notificationSetting)
  • setPermission(String permission)
  • setParentTeamId(Long parentTeamId) (nullable, to support removing parent)

Each is a single PATCH call to the team endpoint. An atomic multi-property update builder could follow as a separate enhancement if maintainers want one.

Fixes #2218

This contribution was developed with AI assistance (Codex).

Add setName, setNotificationSetting, setPermission, and
setParentTeamId methods following the existing setDescription
and setPrivacy pattern. Each uses PATCH to the team API endpoint.

Fixes hub4j#2218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GHTeam object missing ways to update some attributes, both singularly and together atomically

1 participant