Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add score repository #2

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

ltekieli
Copy link
Member

Adds score repository that will serve as the "main" repository for the project. Make it also the backend for the organization discussions.

@ltekieli ltekieli requested a review from a team as a code owner November 15, 2024 13:42
Copy link

This is your friendly self-service bot.

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 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)

Copy link

This is your friendly self-service bot.

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

Additionally, ltekieli is a member of the following teams:

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Adds score repository that will serve as the "main" repository for the
project. Make it also the backend for the organization discussions.
Copy link

This is your friendly self-service bot.
Please find below the validation of the requested configuration changes:

Diff for dc6d4b9
Organization automotive.score[id=eclipse-score]
╷
│ Warning: repository[name="eclipse-score.github.io"] has 'web_commit_signoff_required' disabled while the organization requires it, setting will be ignored.
╵
╷
│ Warning: repository[name="score"] has 'web_commit_signoff_required' disabled while the organization requires it, setting will be ignored.
╵
  there have been 2 validation infos, enable verbose output with '-v' to to display them.

  
!   settings {
!     discussion_source_repository = null -> "eclipse-score/score"
!     has_discussions              = false -> true
!   }

+  add repository[name="score"] {
+    allow_auto_merge                  = false
+    allow_forking                     = true
+    allow_merge_commit                = true
+    allow_rebase_merge                = true
+    allow_squash_merge                = true
+    allow_update_branch               = false
+    archived                          = false
+    auto_init                         = true
+    code_scanning_default_languages   = []
+    code_scanning_default_query_suite = "default"
+    code_scanning_default_setup_enabled = true
+    custom_properties                 = {}
+    default_branch                    = "main"
+    delete_branch_on_merge            = false
+    dependabot_alerts_enabled         = true
+    dependabot_security_updates_enabled = false
+    description                       = "Score project main repository"
+    gh_pages_build_type               = "workflow"
+    has_discussions                   = true
+    has_issues                        = true
+    has_projects                      = true
+    has_wiki                          = true
+    homepage                          = "https://eclipse-score.github.io/score"
+    is_template                       = false
+    merge_commit_message              = "PR_TITLE"
+    merge_commit_title                = "MERGE_MESSAGE"
+    name                              = "score"
+    private                           = false
+    private_vulnerability_reporting_enabled = false
+    secret_scanning                   = "enabled"
+    secret_scanning_push_protection   = "enabled"
+    squash_merge_commit_message       = "COMMIT_MESSAGES"
+    squash_merge_commit_title         = "COMMIT_OR_PR_TITLE"
+    topics                            = [
+      "score"
+    ],
+  }

+  add repo_workflow_settings[repository="score"] {
+    enabled                           = true
+  }

+  add environment[name="github-pages", repository="score"] {
+    branch_policies                   = [
+      "main"
+    ],
+    deployment_branch_policy          = "selected"
+    name                              = "github-pages"
+    reviewers                         = []
+    wait_timer                        = 0
+  }
  
  Plan: 3 to add, 2 to change, 0 to delete.

Warnings

  • some of requested changes require accessing the Web UI, need to apply these changes manually

cc @eclipse-score/eclipsefdn-security

cc @eclipse-score/eclipsefdn-releng

Copy link

This is your friendly self-service bot. The current configuration is in-sync with the live settings. 🚀

@ltekieli ltekieli requested a review from netomi November 15, 2024 13:46
@antonkri antonkri self-requested a review November 15, 2024 13:51
@netomi netomi merged commit def9d1d into eclipse-score:main Nov 15, 2024
3 checks passed
Copy link

This is your friendly self-service bot.

The changes could not be applied successfully, please check the output:

Organization automotive.score[id=eclipse-score]
╷
│ Warning: repository[name="eclipse-score.github.io"] has 'web_commit_signoff_required' disabled while the organization requires it, setting will be ignored.
╵
╷
│ Warning: repository[name="score"] has 'web_commit_signoff_required' disabled while the organization requires it, setting will be ignored.
╵
  there have been 2 validation infos, enable verbose output with '-v' to to display them.

  
!   settings {
!     discussion_source_repository = null -> "eclipse-score/score"
!     has_discussions              = false -> true
!   }

+  add repository[name="score"] {
+    allow_auto_merge                  = false
+    allow_forking                     = true
+    allow_merge_commit                = true
+    allow_rebase_merge                = true
+    allow_squash_merge                = true
+    allow_update_branch               = false
+    archived                          = false
+    auto_init                         = true
+    code_scanning_default_languages   = []
+    code_scanning_default_query_suite = "default"
+    code_scanning_default_setup_enabled = true
+    custom_properties                 = {}
+    default_branch                    = "main"
+    delete_branch_on_merge            = false
+    dependabot_alerts_enabled         = true
+    dependabot_security_updates_enabled = false
+    description                       = "Score project main repository"
+    gh_pages_build_type               = "workflow"
+    has_discussions                   = true
+    has_issues                        = true
+    has_projects                      = true
+    has_wiki                          = true
+    homepage                          = "https://eclipse-score.github.io/score"
+    is_template                       = false
+    merge_commit_message              = "PR_TITLE"
+    merge_commit_title                = "MERGE_MESSAGE"
+    name                              = "score"
+    private                           = false
+    private_vulnerability_reporting_enabled = false
+    secret_scanning                   = "enabled"
+    secret_scanning_push_protection   = "enabled"
+    squash_merge_commit_message       = "COMMIT_MESSAGES"
+    squash_merge_commit_title         = "COMMIT_OR_PR_TITLE"
+    topics                            = [
+      "score"
+    ],
+  }

+  add repo_workflow_settings[repository="score"] {
+    enabled                           = true
+  }

+  add environment[name="github-pages", repository="score"] {
+    branch_policies                   = [
+      "main"
+    ],
+    deployment_branch_policy          = "selected"
+    name                              = "github-pages"
+    reviewers                         = []
+    wait_timer                        = 0
+  }

  
  Applying changes:



╷
│ Error: failed to apply patch: CHANGE- settings
│
│    unable to launch browser, make sure you have installed required dependencies using: 'otterdog install-deps'
╵
  Done.
  
  Executed plan: 3 added, 2 changed, 0 deleted.

cc @eclipse-score/eclipsefdn-security

cc @eclipse-score/eclipsefdn-releng

@netomi
Copy link
Contributor

netomi commented Nov 15, 2024

/otterdog done

Copy link

This is your friendly self-service bot. The PR has been marked as being completed.

@ltekieli ltekieli deleted the lt_add_score_repository branch November 15, 2024 14:33
@netomi
Copy link
Contributor

netomi commented Nov 15, 2024

fixed the error by running apply locally and created eclipse-csi/otterdog#330 to fix the problem when trying to change the discussion repo

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.

3 participants