{"id":18756924,"url":"https://github.com/aiursoftweb/gitrunner","last_synced_at":"2025-11-30T12:30:15.466Z","repository":{"id":209104839,"uuid":"722882683","full_name":"AiursoftWeb/GitRunner","owner":"AiursoftWeb","description":"Mirror of https://gitlab.aiursoft.cn/aiursoft/gitrunner","archived":false,"fork":false,"pushed_at":"2025-01-02T17:41:05.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-06T05:02:49.020Z","etag":null,"topics":["csharp","dotnet","git","nuget","runner","wrapper"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AiursoftWeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T07:15:11.000Z","updated_at":"2025-01-02T07:00:41.000Z","dependencies_parsed_at":"2023-12-02T05:34:37.488Z","dependency_job_id":"190ab680-7d49-4a65-ba4c-be13be209703","html_url":"https://github.com/AiursoftWeb/GitRunner","commit_stats":null,"previous_names":["aiursoftweb/gitrunner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FGitRunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FGitRunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FGitRunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FGitRunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AiursoftWeb","download_url":"https://codeload.github.com/AiursoftWeb/GitRunner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644238,"owners_count":19673608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","git","nuget","runner","wrapper"],"created_at":"2024-11-07T17:38:43.024Z","updated_at":"2025-11-30T12:30:15.420Z","avatar_url":"https://github.com/AiursoftWeb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitRunner\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.aiursoft.cn/aiursoft/gitrunner/-/blob/master/LICENSE)\n[![Pipeline stat](https://gitlab.aiursoft.cn/aiursoft/gitrunner/badges/master/pipeline.svg)](https://gitlab.aiursoft.cn/aiursoft/gitrunner/-/pipelines)\n[![Test Coverage](https://gitlab.aiursoft.cn/aiursoft/gitrunner/badges/master/coverage.svg)](https://gitlab.aiursoft.cn/aiursoft/gitrunner/-/pipelines)\n[![NuGet version (Aiursoft.GitRunner)](https://img.shields.io/nuget/v/Aiursoft.gitrunner.svg)](https://www.nuget.org/packages/Aiursoft.gitrunner/)\n[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/aiursoft/gitrunner.svg)](https://gitlab.aiursoft.cn/aiursoft/gitrunner/-/commits/master?ref_type=heads)\n\nGitRunner is a tool to help you run git commands in C#.\n\n## Installation\n\nTo install `Aiursoft.GitRunner` to your project from [nuget.org](https://www.nuget.org/packages/Aiursoft.GitRunner/):\n\n```bash\ndotnet add package Aiursoft.GitRunner\n```\n\n## How to use\n\nYou can use this tool to Clone\\Push\\Commit git repositories.\n\n```csharp\nvar serviceProvider = new ServiceCollection()\n    .AddLogging()\n    .AddGitRunner()\n    .BuildServiceProvider();\nvar repoPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());\nDirectory.CreateDirectory(repoPath);\n\nvar workspaceManager = serviceProvider.GetRequiredService\u003cWorkspaceManager\u003e();\nawait workspaceManager.Clone(\n    repoPath, \n    \"master\", \n    \"https://gitlab.aiursoft.cn/aiursoft/gitrunner.git\",\n    mode);\n\nvar branch = await workspaceManager.GetBranch(repoPath); // master\nvar remote = await workspaceManager.GetRemoteUrl(repoPath); // https://gitlab.aiursoft.cn/aiursoft/gitrunner.git\n```\n\n## How to contribute\n\nThere are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.\n\nEven if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.\n\nWe're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiursoftweb%2Fgitrunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiursoftweb%2Fgitrunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiursoftweb%2Fgitrunner/lists"}