Skip to content

add category and subcategory properties#159

Open
AlexanderLanin wants to merge 2 commits intoeclipse-score:mainfrom
etas-contrib:subcategory
Open

add category and subcategory properties#159
AlexanderLanin wants to merge 2 commits intoeclipse-score:mainfrom
etas-contrib:subcategory

Conversation

@AlexanderLanin
Copy link
Member

@AlexanderLanin AlexanderLanin commented Mar 11, 2026

Introduce category and subcategory properties for better organization of repositories in the auto-generated README file. This enhancement allows for improved grouping and classification of repositories without manual categorization somewhere else.

The split into two custom properties is done, as the repo search does not allow wildcards. And while we add such categories, it sounds reasonable to support the search:
e.g. https://github.com/orgs/eclipse-score/repositories?q=props.category%3Ainfrastructure

@AlexanderLanin AlexanderLanin requested a review from a team as a code owner March 11, 2026 09:40
Copilot AI review requested due to automatic review settings March 11, 2026 09:40
@eclipse-otterdog
Copy link
Contributor

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
Contributor

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

Additionally, AlexanderLanin is a member of the following teams:

@eclipse-otterdog

This comment has been minimized.

@eclipse-otterdog
Copy link
Contributor

Note

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

Diff to live settings
Project automotive.score[github_id=eclipse-score]
  there have been 34 validation infos, enable verbose output to display them.

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

  
!   repository[name="baselibs"] {
!     code_scanning_default_setup_enabled = true -> false
!   }

+  add repo_webhook[url="https://app.readthedocs.org/api/v2/webhook/score-communication/319863/", 
repository=communication] {
+    active       = true
+    content_type = "json"
+    events       = [
+      "push"
+      "pull_request"
+      "create"
+      "delete"
+    ],
+    insecure_ssl = "0"
+    secret       = "pass:bots/automotive.score/readthedocs.org/webhook_secret"
+  }

  
!   repository[name="testing_tools"] {
!     code_scanning_default_languages = [
-      "actions"
!     ]
!   }

  
!   branch_protection_rule[pattern="main", repository=kyron] {
!     requires_linear_history = false -> true
!   }
  
  Plan: 1 to add, 3 to change, 1 to delete.

@eclipse-otterdog
Copy link
Contributor

Please find below the validation of the requested configuration changes:

Diff for 19e63c1
Project automotive.score[github_id=eclipse-score]
  there have been 34 validation infos, enable verbose output to display them.

+  add custom_property[name="subcategory"] {
+    description = "Subcategory used to further group repositories within a category in the auto-generated organization README 
file"
+    name        = "subcategory"
+    required    = false
+    value_type  = "string"
+  }

  
!   repository[name="apt-install"] {
!     custom_properties = {
!       category          = "infrastructure.automation" -> "infrastructure"
+      subcategory       = "automation"
!     }
!   }

  
!   repository[name="bazel_registry"] {
!     custom_properties = {
!       category          = "infrastructure.tooling" -> "infrastructure"
+      subcategory       = "tooling"
!     }
!   }

  
!   repository[name="cicd-actions"] {
!     custom_properties = {
!       category          = "infrastructure.automation" -> "infrastructure"
+      subcategory       = "automation"
!     }
!   }

  
!   repository[name="cicd-workflows"] {
!     custom_properties = {
!       category          = "infrastructure.automation" -> "infrastructure"
+      subcategory       = "automation"
!     }
!   }

  
!   repository[name="eclipse-score-website"] {
!     custom_properties = {
+      category          = "website"
!     }
!   }

  
!   repository[name="eclipse-score-website-preview"] {
!     custom_properties = {
+      category          = "website"
!     }
!   }

  
!   repository[name="eclipse-score-website-published"] {
!     custom_properties = {
+      category          = "website"
!     }
!   }

  
!   repository[name="eclipse-score.github.io"] {
!     custom_properties = {
+      category          = "website"
!     }
!   }

  
!   repository[name="more-disk-space"] {
!     custom_properties = {
!       category          = "infrastructure.automation" -> "infrastructure"
+      subcategory       = "automation"
!     }
!   }

  
!   repository[name="os_images"] {
!     custom_properties = {
!       category          = "infrastructure.integration" -> "infrastructure"
+      subcategory       = "integration"
!     }
!   }

  
!   repository[name="reference_integration"] {
!     custom_properties = {
!       category          = "infrastructure.integration" -> "infrastructure"
+      subcategory       = "integration"
!     }
!   }
  
  Plan: 1 to add, 11 to change, 0 to delete.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces repository category and subcategory metadata via GitHub custom properties to support improved grouping of repositories in the auto-generated organization README.

Changes:

  • Extends newScoreRepo with optional category / subcategory parameters and applies them via custom_properties.
  • Updates newInfrastructureTeamRepo to set category="infrastructure" and optionally a subcategory.
  • Assigns category="website" to the website-related repositories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@dcalavrezo-qorix dcalavrezo-qorix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexanderLanin
Copy link
Member Author

@kairoaraujo would you be so kind to merge this

@AlexanderLanin
Copy link
Member Author

/otterdog merge

@AlexanderLanin
Copy link
Member Author

This is really annoying :/

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.

5 participants