Soenneker.GitHub.FileStore 3.0.158

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.FileStore --version 3.0.158
                    
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.158
                    
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.158" />
                    
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.158" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.FileStore" />
                    
Project file
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.158
                    
#r "nuget: Soenneker.GitHub.FileStore, 3.0.158"
                    
#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.
#:package Soenneker.GitHub.FileStore@3.0.158
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.GitHub.FileStore&version=3.0.158
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.158
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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");
    }
}
Product 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.

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
4.0.172 0 11/4/2025
4.0.171 25 11/4/2025
4.0.170 37 11/4/2025
4.0.169 46 11/1/2025
4.0.168 47 11/1/2025
4.0.167 153 10/30/2025
4.0.166 146 10/30/2025
4.0.165 154 10/30/2025
4.0.164 154 10/30/2025
4.0.163 159 10/30/2025
4.0.162 155 10/30/2025
4.0.161 169 10/29/2025
3.0.160 171 10/29/2025
3.0.159 171 10/29/2025
3.0.158 125 10/25/2025
3.0.157 158 10/22/2025
3.0.156 157 10/16/2025
3.0.155 156 10/16/2025
3.0.154 162 10/15/2025
3.0.153 161 10/15/2025
3.0.152 162 10/15/2025
3.0.151 162 10/14/2025
3.0.150 168 10/6/2025
3.0.149 171 10/1/2025
3.0.148 167 10/1/2025
3.0.147 172 9/30/2025
3.0.146 165 9/29/2025
3.0.145 170 9/24/2025
3.0.144 148 9/24/2025
3.0.143 170 9/23/2025
3.0.142 150 9/23/2025
3.0.141 181 9/22/2025
3.0.140 288 9/18/2025
3.0.139 299 9/17/2025
3.0.138 292 9/17/2025
3.0.137 297 9/16/2025
3.0.136 294 9/16/2025
3.0.135 147 9/14/2025
3.0.134 168 9/10/2025
3.0.133 154 9/10/2025
3.0.132 162 9/9/2025
3.0.131 154 9/9/2025
3.0.130 169 9/9/2025
3.0.129 162 9/9/2025
3.0.128 153 9/8/2025
3.0.127 128 9/5/2025
3.0.126 177 9/4/2025
3.0.125 180 9/4/2025
3.0.124 178 9/3/2025
3.0.123 173 9/3/2025
3.0.122 174 9/3/2025
3.0.121 174 9/3/2025
3.0.120 189 8/31/2025
3.0.119 197 8/29/2025
3.0.118 178 8/25/2025
3.0.117 183 8/25/2025
3.0.116 108 8/22/2025
3.0.115 175 8/21/2025
3.0.114 164 8/19/2025
3.0.113 138 8/17/2025
3.0.112 140 8/16/2025
3.0.111 83 8/16/2025
3.0.110 111 8/15/2025
3.0.109 159 8/15/2025
3.0.108 158 8/12/2025
3.0.107 167 8/12/2025
3.0.106 166 8/12/2025
3.0.105 169 8/12/2025
3.0.104 166 8/11/2025
3.0.103 168 8/11/2025
3.0.102 156 8/11/2025
3.0.101 160 8/11/2025
3.0.100 159 8/11/2025
3.0.99 158 8/11/2025
3.0.98 124 8/10/2025
3.0.97 234 8/7/2025
3.0.96 251 8/5/2025
3.0.95 245 8/5/2025
3.0.94 247 8/5/2025
3.0.93 76 8/1/2025
3.0.92 131 8/1/2025
3.0.91 122 7/30/2025
3.0.90 119 7/30/2025
3.0.89 120 7/29/2025
3.0.88 138 7/28/2025
3.0.87 181 7/26/2025
3.0.86 325 7/25/2025
3.0.85 563 7/23/2025
3.0.84 560 7/22/2025
3.0.83 126 7/18/2025
3.0.82 177 7/14/2025
3.0.81 130 7/12/2025
3.0.80 182 7/9/2025
3.0.79 165 7/9/2025
3.0.78 165 7/9/2025
3.0.77 162 7/9/2025
3.0.76 171 7/8/2025
3.0.75 156 7/5/2025
3.0.74 90 7/5/2025
3.0.73 108 7/4/2025
3.0.72 159 7/4/2025
3.0.71 195 7/3/2025
3.0.70 187 7/2/2025
3.0.69 160 7/2/2025
3.0.68 179 7/2/2025
3.0.67 182 7/1/2025
3.0.66 191 6/28/2025
3.0.65 120 6/28/2025
3.0.64 117 6/28/2025
3.0.63 94 6/28/2025
3.0.62 97 6/28/2025
3.0.61 94 6/28/2025
3.0.60 98 6/27/2025
3.0.59 97 6/27/2025
3.0.58 158 6/26/2025
3.0.57 183 6/25/2025
3.0.56 169 6/25/2025
3.0.55 153 6/21/2025
3.0.54 265 6/18/2025
3.0.53 167 6/18/2025
3.0.52 166 6/18/2025
3.0.51 170 6/17/2025
3.0.49 165 6/17/2025
3.0.48 168 6/17/2025
3.0.47 325 6/13/2025
3.0.46 322 6/12/2025
3.0.45 313 6/11/2025
3.0.44 320 6/11/2025
3.0.43 291 6/11/2025
3.0.42 316 6/11/2025
3.0.41 318 6/11/2025
3.0.40 309 6/10/2025
3.0.39 321 6/10/2025
3.0.38 317 6/10/2025
3.0.37 308 6/10/2025
3.0.36 308 6/10/2025
3.0.35 297 6/9/2025
3.0.34 201 6/3/2025
3.0.33 196 6/3/2025
3.0.32 176 6/3/2025
3.0.31 178 6/2/2025
3.0.30 169 6/2/2025
3.0.29 177 6/2/2025
3.0.28 97 5/30/2025
3.0.27 175 5/28/2025
3.0.26 179 5/28/2025
3.0.25 171 5/28/2025
3.0.24 178 5/27/2025
3.0.23 178 5/27/2025
3.0.22 174 5/27/2025
3.0.21 174 5/27/2025
3.0.20 171 5/27/2025
3.0.19 170 5/27/2025
3.0.18 126 5/25/2025
3.0.17 128 5/25/2025
3.0.16 99 5/24/2025
3.0.15 107 5/23/2025
3.0.14 121 5/23/2025
3.0.13 128 5/23/2025
3.0.12 126 5/23/2025
3.0.11 140 5/23/2025
3.0.10 153 5/23/2025
3.0.9 148 5/23/2025
3.0.8 155 5/23/2025
3.0.7 172 5/23/2025
3.0.6 177 5/22/2025
3.0.5 169 5/22/2025
3.0.4 176 5/21/2025
3.0.3 173 5/21/2025
3.0.2 165 5/21/2025
3.0.1 169 5/21/2025