Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xanzy/go-gitlab
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.92.2
Choose a base ref
...
head repository: xanzy/go-gitlab
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.92.3
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 29, 2023

  1. Support shared_runners_setting in Group response

    Add `shared_runners_setting` in Group response and removed
    `shared_runners_enabled` because it was not included in the
    response.
    
    Ref: https://docs.gitlab.com/ee/api/groups.html
    takp committed Sep 29, 2023
    Copy the full SHA
    79f8c53 View commit details
  2. Merge pull request #1805 from takp/fix-shared_runners_setting-for-gro…

    …up-resource
    
    Support `shared_runners_setting` in Group response
    svanharmelen authored Sep 29, 2023
    Copy the full SHA
    2692fa8 View commit details
Showing with 5 additions and 2 deletions.
  1. +1 −1 groups.go
  2. +4 −1 types.go
2 changes: 1 addition & 1 deletion groups.go
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ type Group struct {
MentionsDisabled bool `json:"mentions_disabled"`
RunnersToken string `json:"runners_token"`
SharedProjects []*Project `json:"shared_projects"`
SharedRunnersEnabled bool `json:"shared_runners_enabled"`
SharedRunnersSetting SharedRunnersSettingValue `json:"shared_runners_setting"`
SharedWithGroups []struct {
GroupID int `json:"group_id"`
GroupName string `json:"group_name"`
5 changes: 4 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
@@ -607,8 +607,11 @@ type SharedRunnersSettingValue string
// https://docs.gitlab.com/ee/api/groups.html#options-for-shared_runners_setting
const (
EnabledSharedRunnersSettingValue SharedRunnersSettingValue = "enabled"
DisabledWithOverrideSharedRunnersSettingValue SharedRunnersSettingValue = "disabled_with_override"
DisabledAndOverridableSharedRunnersSettingValue SharedRunnersSettingValue = "disabled_and_overridable"
DisabledAndUnoverridableSharedRunnersSettingValue SharedRunnersSettingValue = "disabled_and_unoverridable"

// Deprecated: DisabledWithOverrideSharedRunnersSettingValue is deprecated in favor of DisabledAndOverridableSharedRunnersSettingValue
DisabledWithOverrideSharedRunnersSettingValue SharedRunnersSettingValue = "disabled_with_override"
)

// SharedRunnersSetting is a helper routine that allocates a new SharedRunnersSettingValue