You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add immutable release support for repositories and org settings (#663)
Manage GitHub immutable release settings at both repository and
organization level, including selected repository enforcement.
Coerce repo settings against org policy during diff/apply and add
schema, docs and test updates for the new configuration fields.
Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/reference/organization/repository/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ Definition of a Repository for a GitHub organization, the following properties a
46
46
|_template_repository_| string or null | The template repository to use when creating the repo | read-only, only considered during creation |
47
47
|_forked_repository_| string or null | The repository to fork when creating the repo | only considered during creation |
48
48
|_fork_default_branch_only_| boolean | When creating a fork, whether only the default branch will be included in the fork | only considered during creation |
49
+
|_immutable_releases_enabled_| boolean | If immutable releases are enabled for this repository | Can be overridden by organization-level immutable release settings |
49
50
|_web_commit_signoff_required_| boolean | If the repo requires web commit signoff ||
50
51
|_workflows_|[Workflow Settings](#workflow-settings)| Workflow settings on organizational level ||
51
52
|_webhooks_| list\[[Webhook](webhook.md)\]| webhooks defined for this repo, see section above for details ||
Copy file name to clipboardExpand all lines: docs/reference/organization/settings.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ The following table captures all supported settings on organization level:
14
14
|_default_branch_name_| string | The default branch name for newly created repositories ||
15
15
|_default_repository_permission_| string | The base permission for all members of the organization for its repositories |`none`, `read`, `write` or `admin`|
16
16
|_default_code_security_configurations_disabled_| boolean | If default code security configuration should be disabled, no processing if the setting is set to `true`||
17
+
|_immutable_releases_enforced_repositories_| string | Defines which repositories must use immutable releases |`all`, `none` or `selected`|
18
+
|_immutable_releases_selected_repositories_| list[string]| The list of repositories for which immutable releases are enforced | Only taken into account when `immutable_releases_enforced_repositories` is set to `selected`|
17
19
|_discussion_source_repository_| string or null | The source repository to host organization discussions ||
18
20
|_has_discussions_| boolean | If discussions are enabled for the organization. If `true`, property `discussion_source_repository` must be set as well ||
19
21
|_has_organization_projects_| boolean | If the organization can have organization projects ||
@@ -58,6 +60,7 @@ The following table captures all supported settings on organization level:
58
60
- enabling either `dependabot_alerts_enabled_for_new_repositories` or `dependabot_security_updates_enabled_for_new_repositories` also requires enabling `dependency_graph_enabled_for_new_repositories`
59
61
- enabling `dependabot_security_updates_enabled_for_new_repositories` also requires enabling `dependabot_alerts_enabled_for_new_repositories`
60
62
- enabling `has_discussions` also requires setting `discussion_source_repository` to a valid repository to host the discussions
63
+
- specifying a non-empty list of `immutable_releases_selected_repositories` while `immutable_releases_enforced_repositories` is not set to `selected`, triggers a warning
61
64
- specifying a non-empty list of `selected_repositories` while `enabled_repositories` is not set to `selected`, triggers a warning
62
65
- specifying a non-empty list of `allow_action_patterns` while `allowed_actions` is not set to `selected`, triggers a warning
Copy file name to clipboardExpand all lines: docs/userguide/unsupported.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ Not all features or settings of a GitHub organization and its associated resourc
2
2
by the means of `otterdog`. The following non-exhaustive list outlines settings that are currently not supported:
3
3
4
4
- setting the profile picture of an organization or a social media preview for a repository [#119](https://github.com/eclipse-csi/otterdog/issues/119)
5
-
- manage items that should be visible on the main page, i.e. releases, packages, deployments
5
+
- manage release entries, packages, or deployments that should be visible on the main page
6
6
- manage default repository labels on organization level
7
7
- secrets and variables for codespaces and dependabot
0 commit comments