Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 3.5 KB

README.md

File metadata and controls

56 lines (42 loc) · 3.5 KB

Repo Automation

CI/ CD Coverage Status Code Smells Latest NuGet package Current Release

.NET code to create and configure a repo with C#. I'm in GitHub everyday. There are certain activities I found myself manually doing on a regular basis. Not super long activities, but boring, repetitive activities - the types of activities that are perfect for automation. Hence this project:

Usage

RepoAutomation [-o|--owner <GITHUB-OWNER/ACCOUNT>] 
               [-r|--repo <REPOSITORY-NAME>] 
               [-d|--directory <WORKING-DIRECTORY>] 
               [-v|--visibility <REPO-VISIBILITY>]
               [-p|--projectTypes <.NET-COMMA-DELIMITED-PROJECTS]

Requires a PAT token to be setup, with repo, workflow, and delete_repo (DANGER! DANGER, WILL ROBINSON!!) permissions

Example

Using default settings to create a new repository "RepoAutomationTest", with a .NET 6 class library and unit tests project:

RepoAutomation --owner samsmithnz --repo RepoAutomationTest --directory c:\users\sam\source\repos --visibility public --projectTypes classlib,mstest

image

Here is the result: image

Website

For governance, we are building a website to monitor repos and take corrective action:

image