eclipse-csi / otterdog

OtterDog is a tool to manage GitHub organizations at scale using a configuration as code approach. It is actively used by the Eclipse Foundation to manage its numerous projects hosted on GitHub.
https://otterdog.readthedocs.org
Eclipse Public License 2.0
23 stars 3 forks source link

feat: add new operation local-apply and use it for the ApplyChangesTask #258

Closed netomi closed 2 months ago

netomi commented 2 months ago

This fixes #257 .

Adds a new operation local-apply to apply all changes between two local configurations. That is used in the ApplyChangesTask of the GitHub App to apply approved changes from a PR. The task will fetch the latest config that has been modified by the PR and the previous one, run the local-apply operation with these 2 configs.

That should avoid getting the current live configuration from GitHub, reducing the number of API calls and speeding up the applying. It is safe to do so as the check-sync task will ensure that the configuration is in sync.