Soenneker.GitHub.FileStore
3.0.5
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.GitHub.FileStore --version 3.0.5
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.GitHub.FileStore" Version="3.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.FileStore" Version="3.0.5" />
<PackageReference Include="Soenneker.GitHub.FileStore" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.GitHub.FileStore --version 3.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 3.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Soenneker.GitHub.FileStore&version=3.0.5
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.GitHub.FileStore
A high-level file system utility for GitHub repositories, built on the GitHub OpenAPI client. Supports reading, writing, deleting, listing, and checking file existence via the GitHub Contents API.
Features
- đ Read file content from a GitHub repository
- đ Write new files with commit messages and optional branch targeting
- â Delete files with SHA validation
- đ List directory contents
- â Check for file existence
- âī¸ Built on top of a typed OpenAPI GitHub client
Installation
dotnet add package Soenneker.GitHub.FileStore
Setup
builder.Services.AddGitHubFileStoreAsSingleton();
This will register all necessary dependencies, including the underlying GitHub OpenAPI client.
âšī¸ Note: The GitHub access token must be provided via configuration under the key: GitHub:Token
.
Example Usage
public class MyService
{
private readonly IGitHubFileStore _store;
public MyService(IGitHubFileStore store)
{
_store = store;
}
public async Task Run()
{
string content = await _store.Read("owner", "repo", "README.md");
await _store.Create("owner", "repo", "newfile.txt", "Hello world!");
bool exists = await _store.Exists("owner", "repo", "README.md");
var files = await _store.List("owner", "repo", "docs");
await _store.Delete("owner", "repo", "oldfile.txt");
}
}
Related Packages
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Soenneker.GitHub.ClientUtil (>= 3.0.2)
- Soenneker.Utils.File (>= 3.0.1931)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.0.75 | 24 | 7/5/2025 |
3.0.74 | 24 | 7/5/2025 |
3.0.73 | 38 | 7/4/2025 |
3.0.72 | 98 | 7/4/2025 |
3.0.71 | 142 | 7/3/2025 |
3.0.70 | 145 | 7/2/2025 |
3.0.69 | 121 | 7/2/2025 |
3.0.68 | 130 | 7/2/2025 |
3.0.67 | 139 | 7/1/2025 |
3.0.66 | 151 | 6/28/2025 |
3.0.65 | 77 | 6/28/2025 |
3.0.64 | 79 | 6/28/2025 |
3.0.63 | 50 | 6/28/2025 |
3.0.62 | 53 | 6/28/2025 |
3.0.61 | 52 | 6/28/2025 |
3.0.60 | 58 | 6/27/2025 |
3.0.59 | 67 | 6/27/2025 |
3.0.58 | 121 | 6/26/2025 |
3.0.57 | 131 | 6/25/2025 |
3.0.56 | 132 | 6/25/2025 |
3.0.55 | 115 | 6/21/2025 |
3.0.54 | 227 | 6/18/2025 |
3.0.53 | 128 | 6/18/2025 |
3.0.52 | 128 | 6/18/2025 |
3.0.51 | 141 | 6/17/2025 |
3.0.49 | 138 | 6/17/2025 |
3.0.48 | 129 | 6/17/2025 |
3.0.47 | 290 | 6/13/2025 |
3.0.46 | 280 | 6/12/2025 |
3.0.45 | 277 | 6/11/2025 |
3.0.44 | 278 | 6/11/2025 |
3.0.43 | 274 | 6/11/2025 |
3.0.42 | 277 | 6/11/2025 |
3.0.41 | 282 | 6/11/2025 |
3.0.40 | 272 | 6/10/2025 |
3.0.39 | 282 | 6/10/2025 |
3.0.38 | 278 | 6/10/2025 |
3.0.37 | 271 | 6/10/2025 |
3.0.36 | 279 | 6/10/2025 |
3.0.35 | 257 | 6/9/2025 |
3.0.34 | 161 | 6/3/2025 |
3.0.33 | 142 | 6/3/2025 |
3.0.32 | 136 | 6/3/2025 |
3.0.31 | 140 | 6/2/2025 |
3.0.30 | 133 | 6/2/2025 |
3.0.29 | 137 | 6/2/2025 |
3.0.28 | 59 | 5/30/2025 |
3.0.27 | 140 | 5/28/2025 |
3.0.26 | 133 | 5/28/2025 |
3.0.25 | 135 | 5/28/2025 |
3.0.24 | 140 | 5/27/2025 |
3.0.23 | 140 | 5/27/2025 |
3.0.22 | 136 | 5/27/2025 |
3.0.21 | 137 | 5/27/2025 |
3.0.20 | 136 | 5/27/2025 |
3.0.19 | 137 | 5/27/2025 |
3.0.18 | 91 | 5/25/2025 |
3.0.17 | 92 | 5/25/2025 |
3.0.16 | 63 | 5/24/2025 |
3.0.15 | 76 | 5/23/2025 |
3.0.14 | 83 | 5/23/2025 |
3.0.13 | 87 | 5/23/2025 |
3.0.12 | 90 | 5/23/2025 |
3.0.11 | 103 | 5/23/2025 |
3.0.10 | 117 | 5/23/2025 |
3.0.9 | 112 | 5/23/2025 |
3.0.8 | 120 | 5/23/2025 |
3.0.7 | 136 | 5/23/2025 |
3.0.6 | 141 | 5/22/2025 |
3.0.5 | 134 | 5/22/2025 |
3.0.4 | 136 | 5/21/2025 |
3.0.3 | 134 | 5/21/2025 |
3.0.2 | 136 | 5/21/2025 |
3.0.1 | 133 | 5/21/2025 |