platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Add GitBot Command for creating pull-requests with upstream updates #631

Open raix opened 1 day ago

raix commented 1 day ago

Summary & Motivation

For any downstream project depending on PlatformPlatform getting updates is currently manual. What if there was a command for updating the project and creating a pull-request with updates?

This pull-request adds a new dev tool command "gitbot" - the command can be run manually and potentially in a GitHub action.

The command pp gitbot runs in "dry-run" mode per default allowing inspection of planned tasks, when ready use the "--write" flag and if running in GitHub Actions then skip confirmation using "-y"

Checklist

tjementum commented 19 hours ago

Looking awesome. I will look later today.

raix commented 19 hours ago

I'm thinking it would be cool with a github action cron job to run the gitbot

Only thing I needed to test is if the current check for existing branch names checks non local branches - if so the script would already exit and wait for the existing branch / pr to be merged.