Skip to content

Add default protected branch to .github repo#3

Open
mkuznyetsov wants to merge 1 commit intoeclipse-che:mainfrom
mkuznyetsov:patch-1
Open

Add default protected branch to .github repo#3
mkuznyetsov wants to merge 1 commit intoeclipse-che:mainfrom
mkuznyetsov:patch-1

Conversation

@mkuznyetsov
Copy link
Contributor

No description provided.

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
@mkuznyetsov mkuznyetsov requested a review from a team as a code owner March 26, 2026 15:03
@eclipse-otterdog
Copy link

Thank you for raising a pull request to update the configuration of your GitHub organization.
You can manually add reviewers to this PR to eventually enable auto-merging.

The following conditions need to be fulfilled for auto-merging to be available:

  • valid configuration
  • approved by a project lead
  • does not require any secrets
  • does not update settings only accessible via the GitHub Web UI
  • does not remove any resource
Otterdog commands and options

You can trigger otterdog actions by commenting on this PR:

  • /otterdog team-info checks the team / org membership for the PR author
  • /otterdog validate validates the configuration change
  • /otterdog validate info validates the configuration change, printing also validation infos
  • /otterdog check-sync checks if the base ref is in sync with live settings
  • /otterdog merge merges and applies the changes if the PR is eligible for auto-merging (only accessible for the author)
  • /otterdog done notifies the self-service bot that a required manual apply operation has been performed (only accessible for members of the admin team)
  • /otterdog apply re-apply a previously failed attempt (only accessible for members of the admin team)

@eclipse-otterdog
Copy link

The author (mkuznyetsov) of this PR is associated with this organization in the role of MEMBER.

Additionally, mkuznyetsov is a member of the following teams:

@eclipse-otterdog
Copy link

Please find below the validation of the requested configuration changes:

Diff for 670452c
Project ecd.che[github_id=eclipse-che]
  there have been 157 validation infos, enable verbose output to display them.

+  add branch_protection_rule[pattern="main", repository=.github] {
+    allows_deletions                 = false
+    allows_force_pushes              = false
+    blocks_creations                 = false
+    bypass_force_push_allowances     = []
+    bypass_pull_request_allowances   = []
+    dismisses_stale_reviews          = false
+    is_admin_enforced                = false
+    lock_allows_fetch_and_merge      = false
+    lock_branch                      = false
+    pattern                          = "main"
+    require_last_push_approval       = false
+    required_approving_review_count  = 1
+    required_status_checks           = [
+      "eclipse-eca-validation:eclipsefdn/eca"
+    ],
+    requires_code_owner_reviews      = false
+    requires_commit_signatures       = false
+    requires_conversation_resolution = false
+    requires_deployments             = false
+    requires_linear_history          = false
+    requires_pull_request            = true
+    requires_status_checks           = true
+    requires_strict_status_checks    = false
+    restricts_pushes                 = false
+    restricts_review_dismissals      = false
+  }
  
  Plan: 1 to add, 0 to change, 0 to delete.

@eclipse-otterdog
Copy link

Note

The current configuration is out-of-sync with the live settings:

Diff to live settings
Project ecd.che[github_id=eclipse-che]
  there have been 157 validation infos, enable verbose output to display them.

  
!   repository[name="che"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

  
!   repository[name="che-docs"] {
!     code_scanning_default_languages = [
-      "javascript"
+      "javascript-typescript"
-      "typescript"
!     ]
!   }

  
!   repository[name="che-workspace-client"] {
!     code_scanning_default_languages = [
!       "javascript"          -> "javascript-typescript"
-      "typescript"
!     ]
!   }

  
!   repository[name="che-plugin-registry"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

  
!   repository[name="che-machine-exec"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

  
!   repository[name="che-website"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

  
!   repository[name="che-dashboard"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

-  remove environment[name="copilot", repository=che-dashboard] {
-    deployment_branch_policy = "all"
-    name                     = "copilot"
-    reviewers                = []
-    wait_timer               = 0
-  }

  
!   repository[name="blog"] {
!     code_scanning_default_languages = [
-      "javascript"
+      "javascript-typescript"
-      "typescript"
!     ]
!   }

  
!   repository[name="che-server"] {
!     code_scanning_default_languages = [
-      "javascript"
-      "typescript"
+      "javascript-typescript"
!     ]
!   }

-  remove repo_secret[name="NPM_TOKEN", repository=che-server] {
-    name = "NPM_TOKEN"
-  }
  
  Plan: 0 to add, 9 to change, 2 to delete.

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.

1 participant