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
20 stars 2 forks source link

Add operation to create a pull request from local config changes #230

Closed netomi closed 2 months ago

netomi commented 3 months ago

It would be handy to have an operation that can automatically create a PR in the respective organization for local changes. @fredg02

netomi commented 3 months ago

Here is an example of such a PR: https://github.com/eclipse-csi/.eclipsefdn/pull/16

It has been created like that:

tn@proteus:~/workspace/eclipse/EclipseFdn/otterdog-configs$ otterdog open-pr eclipse-csi -b test -t "Test PR" -a netomi

Open PR for local configuration changes:

Organization technology.csi[id=eclipse-csi]
  created pull request #16 at https://github.com/eclipse-csi/.eclipsefdn/pull/16
netomi commented 3 months ago

I dont use the git config to determine the author for which the PR was created as this looks weird in the ticket. Its better to specify your github handle when running the operation.