├── .githooks ├── config.csx ├── config.json ├── util.csx ├── logger.csx ├── dotnet-commands.csx ├── pre-push ├── pre-commit ├── git-commands.csx ├── commit-msg ├── command-line.csx └── prepare-commit-msg ├── src └── SomeLib │ ├── Class1.cs │ └── SomeLib.csproj ├── .config └── dotnet-tools.json ├── tests └── SomeLibTests │ ├── UnitTest1.cs │ └── SomeLibTests.csproj ├── README.md ├── git-hooks-example.sln ├── .gitignore └── logo.svg /.githooks/config.csx: -------------------------------------------------------------------------------- 1 | public class Config 2 | { 3 | public List ProtectedBranches { get; set; } 4 | } -------------------------------------------------------------------------------- /.githooks/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ProtectedBranches": [ 3 | "master", 4 | "release" 5 | ] 6 | } -------------------------------------------------------------------------------- /src/SomeLib/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SomeLib 4 | { 5 | public class Class1 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/SomeLib/SomeLib.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.1 5 | 8 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.githooks/util.csx: -------------------------------------------------------------------------------- 1 | public class Util 2 | { 3 | public static string CommandLineArgument(IList Args, int position) 4 | { 5 | if (Args.Count() >= position + 1) 6 | { 7 | return Args[position]; 8 | } 9 | return string.Empty; 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-script": { 6 | "version": "0.30.0", 7 | "commands": [ 8 | "dotnet-script" 9 | ] 10 | }, 11 | "dotnet-format": { 12 | "version": "3.1.37601", 13 | "commands": [ 14 | "dotnet-format" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /.githooks/logger.csx: -------------------------------------------------------------------------------- 1 | public class Logger 2 | { 3 | public static void LogInfo(string message) 4 | { 5 | Console.ForegroundColor = ConsoleColor.White; 6 | Console.Error.WriteLine(message); 7 | } 8 | public static void LogError(string message) 9 | { 10 | Console.ForegroundColor = ConsoleColor.Red; 11 | Console.Error.WriteLine(message); 12 | } 13 | } -------------------------------------------------------------------------------- /tests/SomeLibTests/UnitTest1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xunit; 3 | 4 | namespace SomeLibTests 5 | { 6 | public class UnitTest1 7 | { 8 | [Fact] 9 | public void Test1() 10 | { 11 | // comment in test 12 | int expteced = 1; 13 | int actual = 1; 14 | Assert.Equal(expteced, actual); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.githooks/dotnet-commands.csx: -------------------------------------------------------------------------------- 1 | #load "logger.csx" 2 | #load "command-line.csx" 3 | public class DotnetCommands 4 | { 5 | public static int FormatCode() => ExecuteCommand("dotnet format"); 6 | public static int BuildCode() => ExecuteCommand("dotnet build"); 7 | 8 | public static int TestCode() => ExecuteCommand("dotnet test"); 9 | 10 | private static int ExecuteCommand(string command) 11 | { 12 | string response = CommandLine.Execute(command); 13 | Int32.TryParse(response, out int exitCode); 14 | return exitCode; 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /.githooks/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env dotnet dotnet-script 2 | #r "nuget: Newtonsoft.Json, 12.0.2" 3 | #load "logger.csx" 4 | #load "config.csx" 5 | #load "git-commands.csx" 6 | using Newtonsoft.Json; 7 | 8 | string currentBranch = GitCommands.CurrentBranch().Trim(); 9 | Config currentConfig = GetConfig(); 10 | bool lockedBranch = currentConfig.ProtectedBranches.Contains(currentBranch); 11 | 12 | if (lockedBranch) { 13 | Logger.LogError($"Trying to commit on protected branch '{currentBranch}'"); 14 | Environment.Exit(1); 15 | } 16 | 17 | public static Config GetConfig() 18 | { 19 | return JsonConvert.DeserializeObject(File.ReadAllText(".githooks/config.json")); 20 | } 21 | -------------------------------------------------------------------------------- /tests/SomeLibTests/SomeLibTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env dotnet dotnet-script 2 | #load "logger.csx" 3 | #load "git-commands.csx" 4 | #load "dotnet-commands.csx" 5 | 6 | Logger.LogInfo("pre-commit hook"); 7 | 8 | // We'll only runchecks on changes that are a part of this commit so let's stash others 9 | GitCommands.StashChanges(); 10 | 11 | int formatCode = DotnetCommands.FormatCode(); 12 | int buildCode = DotnetCommands.BuildCode(); 13 | int testCode = DotnetCommands.TestCode(); 14 | 15 | // We're done with checks, we can unstash changes 16 | GitCommands.UnstashChanges(); 17 | int exitCode = formatCode + buildCode + testCode; 18 | if (exitCode != 0) { 19 | Logger.LogError("Failed to pass the checks"); 20 | Environment.Exit(-1); 21 | } 22 | // All checks have passed -------------------------------------------------------------------------------- /.githooks/git-commands.csx: -------------------------------------------------------------------------------- 1 | #load "logger.csx" 2 | #load "command-line.csx" 3 | public class GitCommands 4 | { 5 | public static void StashChanges() 6 | { 7 | CommandLine.Execute("git stash -q --keep-index"); 8 | } 9 | public static void UnstashChanges() 10 | { 11 | CommandLine.Execute("git stash pop -q"); 12 | } 13 | 14 | public static string CurrentBranch() 15 | { 16 | return CommandLine.Execute("git symbolic-ref --short HEAD"); 17 | } 18 | 19 | public static string[] ChangedFiles() 20 | { 21 | string result = CommandLine.Execute("git diff --cached --name-only --diff-filter=ACM"); 22 | string[] files = result.Split(new[] { Environment.NewLine }, StringSplitOptions.None); 23 | return files; 24 | } 25 | } -------------------------------------------------------------------------------- /.githooks/commit-msg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env dotnet dotnet-script 2 | #load "logger.csx" 3 | #load "util.csx" 4 | #load "git-commands.csx" 5 | using System.Text.RegularExpressions; 6 | 7 | Logger.LogInfo("commit-msg hook"); 8 | 9 | string commitMessageFilePath = Util.CommandLineArgument(Args, 0); 10 | string branch = GitCommands.CurrentBranch(); 11 | Logger.LogInfo(commitMessageFilePath); 12 | Logger.LogInfo(branch); 13 | string message = GetCommitedMessage(commitMessageFilePath); 14 | Logger.LogInfo(message); 15 | 16 | const string regex = @"\b(feat|bug)\b(\({1}\b(core)\b\){1})?(:){1}(\s){1}(ISS-[0-9]{0,3}){1}"; 17 | var match = Regex.Match(message, regex); 18 | 19 | if (!match.Success) { 20 | Logger.LogError("Message does not match commit format"); 21 | Environment.Exit(1); 22 | } 23 | 24 | public static string GetCommitedMessage(string filePath) { 25 | return File.ReadAllLines(filePath)[0]; 26 | } 27 | 28 | -------------------------------------------------------------------------------- /.githooks/command-line.csx: -------------------------------------------------------------------------------- 1 | #load "logger.csx" 2 | public class CommandLine 3 | { 4 | public static string Execute(string command) 5 | { 6 | // according to: https://stackoverflow.com/a/15262019/637142 7 | // thans to this we will pass everything as one command 8 | command = command.Replace("\"", "\"\""); 9 | var proc = new Process 10 | { 11 | StartInfo = new ProcessStartInfo 12 | { 13 | FileName = "/bin/bash", 14 | Arguments = "-c \"" + command + "\"", 15 | UseShellExecute = false, 16 | RedirectStandardOutput = true, 17 | CreateNoWindow = true 18 | } 19 | }; 20 | proc.Start(); 21 | proc.WaitForExit(); 22 | if (proc.ExitCode != 0) 23 | { 24 | Logger.LogError(proc.StandardOutput.ReadToEnd()); 25 | return proc.ExitCode.ToString(); 26 | } 27 | return proc.StandardOutput.ReadToEnd(); 28 | } 29 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # git-hooks-example 3 | 4 |

5 | Kaylumah Logo 6 |

7 | 8 | --- 9 | 10 | ## Description 11 | 12 | This repository contains the source code for my article "Using C# code in your git hooks" which you can find [here](https://kaylumah.nl/2019/09/07/using-csharp-code-your-git-hooks.html). 13 | If you have any questions or comments about the repo or the blog, feel free to reach out over on twitter [@kaylumah](https://twitter.com/kaylumah). 14 | 15 | ```sh 16 | mkdir git-hooks-example 17 | cd git-hooks-example 18 | git init 19 | dotnet new gitignore 20 | dotnet new tool-manifest 21 | dotnet tool install dotnet-script 22 | dotnet tool install dotnet-format 23 | mkdir .githooks 24 | ``` 25 | 26 | ```sh 27 | find .git/hooks -type f -exec rm {} \; 28 | find .githooks -type f -exec chmod +x {} \; 29 | find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; 30 | ``` 31 | 32 | 33 | ## License 34 | 35 | This repo is licensed under the [MIT License](LICENSE) -------------------------------------------------------------------------------- /.githooks/prepare-commit-msg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env dotnet dotnet-script 2 | #load "logger.csx" 3 | #load "util.csx" 4 | #load "git-commands.csx" 5 | 6 | Logger.LogInfo("prepare-commit-msg hook"); 7 | 8 | string commitMessageFilePath = Util.CommandLineArgument(Args, 0); 9 | string commitType = Util.CommandLineArgument(Args, 1); 10 | string commitHash = Util.CommandLineArgument(Args, 2); 11 | 12 | if (commitType.Equals("message")) { 13 | // user supplied a commit message, no need to prefill. 14 | Logger.LogInfo("commitType message"); 15 | Environment.Exit(0); 16 | } 17 | 18 | string[] files = GitCommands.ChangedFiles(); 19 | for(int i = 0; i < files.Length; i++) { 20 | // perhaps determine scope based on what was changed. 21 | Logger.LogInfo(files[i]); 22 | } 23 | 24 | string branch = GitCommands.CurrentBranch(); 25 | if (branch.StartsWith("feature")) { 26 | string messageToBe = "feat: ISS-XXX"; 27 | PrepareCommitMessage(commitMessageFilePath, messageToBe); 28 | } 29 | 30 | public static void PrepareCommitMessage(string messageFile, string message) 31 | { 32 | string tempfile = Path.GetTempFileName(); 33 | using (var writer = new StreamWriter(tempfile)) 34 | using (var reader = new StreamReader(messageFile)) 35 | { 36 | writer.WriteLine(message); 37 | while (!reader.EndOfStream) 38 | writer.WriteLine(reader.ReadLine()); 39 | } 40 | File.Copy(tempfile, messageFile, true); 41 | } -------------------------------------------------------------------------------- /git-hooks-example.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26124.0 5 | MinimumVisualStudioVersion = 15.0.26124.0 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F162496E-3045-4FCF-A3B4-EF896BB30B3B}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SomeLib", "src\SomeLib\SomeLib.csproj", "{39E509B4-8061-4640-A007-3B89EE8D1EC7}" 9 | EndProject 10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{B46ED5B7-9E8D-489F-8C7D-3F74655B65D7}" 11 | EndProject 12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SomeLibTests", "tests\SomeLibTests\SomeLibTests.csproj", "{3476AAB3-BA9B-4BE3-8B10-35101786A2E5}" 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 16 | Debug|Any CPU = Debug|Any CPU 17 | Debug|x64 = Debug|x64 18 | Debug|x86 = Debug|x86 19 | Release|Any CPU = Release|Any CPU 20 | Release|x64 = Release|x64 21 | Release|x86 = Release|x86 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 27 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 28 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|Any CPU.Build.0 = Debug|Any CPU 29 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|x64.ActiveCfg = Debug|Any CPU 30 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|x64.Build.0 = Debug|Any CPU 31 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|x86.ActiveCfg = Debug|Any CPU 32 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Debug|x86.Build.0 = Debug|Any CPU 33 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|Any CPU.ActiveCfg = Release|Any CPU 34 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|Any CPU.Build.0 = Release|Any CPU 35 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|x64.ActiveCfg = Release|Any CPU 36 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|x64.Build.0 = Release|Any CPU 37 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|x86.ActiveCfg = Release|Any CPU 38 | {39E509B4-8061-4640-A007-3B89EE8D1EC7}.Release|x86.Build.0 = Release|Any CPU 39 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 40 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|Any CPU.Build.0 = Debug|Any CPU 41 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|x64.ActiveCfg = Debug|Any CPU 42 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|x64.Build.0 = Debug|Any CPU 43 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|x86.ActiveCfg = Debug|Any CPU 44 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Debug|x86.Build.0 = Debug|Any CPU 45 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|Any CPU.ActiveCfg = Release|Any CPU 46 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|Any CPU.Build.0 = Release|Any CPU 47 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|x64.ActiveCfg = Release|Any CPU 48 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|x64.Build.0 = Release|Any CPU 49 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|x86.ActiveCfg = Release|Any CPU 50 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5}.Release|x86.Build.0 = Release|Any CPU 51 | EndGlobalSection 52 | GlobalSection(NestedProjects) = preSolution 53 | {39E509B4-8061-4640-A007-3B89EE8D1EC7} = {F162496E-3045-4FCF-A3B4-EF896BB30B3B} 54 | {3476AAB3-BA9B-4BE3-8B10-35101786A2E5} = {B46ED5B7-9E8D-489F-8C7D-3F74655B65D7} 55 | EndGlobalSection 56 | EndGlobal 57 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | 33 | # Visual Studio 2015/2017 cache/options directory 34 | .vs/ 35 | # Uncomment if you have tasks that create the project's static files in wwwroot 36 | #wwwroot/ 37 | 38 | # Visual Studio 2017 auto generated files 39 | Generated\ Files/ 40 | 41 | # MSTest test Results 42 | [Tt]est[Rr]esult*/ 43 | [Bb]uild[Ll]og.* 44 | 45 | # NUNIT 46 | *.VisualState.xml 47 | TestResult.xml 48 | 49 | # Build Results of an ATL Project 50 | [Dd]ebugPS/ 51 | [Rr]eleasePS/ 52 | dlldata.c 53 | 54 | # Benchmark Results 55 | BenchmarkDotNet.Artifacts/ 56 | 57 | # .NET Core 58 | project.lock.json 59 | project.fragment.lock.json 60 | artifacts/ 61 | 62 | # StyleCop 63 | StyleCopReport.xml 64 | 65 | # Files built by Visual Studio 66 | *_i.c 67 | *_p.c 68 | *_h.h 69 | *.ilk 70 | *.meta 71 | *.obj 72 | *.iobj 73 | *.pch 74 | *.pdb 75 | *.ipdb 76 | *.pgc 77 | *.pgd 78 | *.rsp 79 | *.sbr 80 | *.tlb 81 | *.tli 82 | *.tlh 83 | *.tmp 84 | *.tmp_proj 85 | *_wpftmp.csproj 86 | *.log 87 | *.vspscc 88 | *.vssscc 89 | .builds 90 | *.pidb 91 | *.svclog 92 | *.scc 93 | 94 | # Chutzpah Test files 95 | _Chutzpah* 96 | 97 | # Visual C++ cache files 98 | ipch/ 99 | *.aps 100 | *.ncb 101 | *.opendb 102 | *.opensdf 103 | *.sdf 104 | *.cachefile 105 | *.VC.db 106 | *.VC.VC.opendb 107 | 108 | # Visual Studio profiler 109 | *.psess 110 | *.vsp 111 | *.vspx 112 | *.sap 113 | 114 | # Visual Studio Trace Files 115 | *.e2e 116 | 117 | # TFS 2012 Local Workspace 118 | $tf/ 119 | 120 | # Guidance Automation Toolkit 121 | *.gpState 122 | 123 | # ReSharper is a .NET coding add-in 124 | _ReSharper*/ 125 | *.[Rr]e[Ss]harper 126 | *.DotSettings.user 127 | 128 | # JustCode is a .NET coding add-in 129 | .JustCode 130 | 131 | # TeamCity is a build add-in 132 | _TeamCity* 133 | 134 | # DotCover is a Code Coverage Tool 135 | *.dotCover 136 | 137 | # AxoCover is a Code Coverage Tool 138 | .axoCover/* 139 | !.axoCover/settings.json 140 | 141 | # Visual Studio code coverage results 142 | *.coverage 143 | *.coveragexml 144 | 145 | # NCrunch 146 | _NCrunch_* 147 | .*crunch*.local.xml 148 | nCrunchTemp_* 149 | 150 | # MightyMoose 151 | *.mm.* 152 | AutoTest.Net/ 153 | 154 | # Web workbench (sass) 155 | .sass-cache/ 156 | 157 | # Installshield output folder 158 | [Ee]xpress/ 159 | 160 | # DocProject is a documentation generator add-in 161 | DocProject/buildhelp/ 162 | DocProject/Help/*.HxT 163 | DocProject/Help/*.HxC 164 | DocProject/Help/*.hhc 165 | DocProject/Help/*.hhk 166 | DocProject/Help/*.hhp 167 | DocProject/Help/Html2 168 | DocProject/Help/html 169 | 170 | # Click-Once directory 171 | publish/ 172 | 173 | # Publish Web Output 174 | *.[Pp]ublish.xml 175 | *.azurePubxml 176 | # Note: Comment the next line if you want to checkin your web deploy settings, 177 | # but database connection strings (with potential passwords) will be unencrypted 178 | *.pubxml 179 | *.publishproj 180 | 181 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 182 | # checkin your Azure Web App publish settings, but sensitive information contained 183 | # in these scripts will be unencrypted 184 | PublishScripts/ 185 | 186 | # NuGet Packages 187 | *.nupkg 188 | # The packages folder can be ignored because of Package Restore 189 | **/[Pp]ackages/* 190 | # except build/, which is used as an MSBuild target. 191 | !**/[Pp]ackages/build/ 192 | # Uncomment if necessary however generally it will be regenerated when needed 193 | #!**/[Pp]ackages/repositories.config 194 | # NuGet v3's project.json files produces more ignorable files 195 | *.nuget.props 196 | *.nuget.targets 197 | 198 | # Microsoft Azure Build Output 199 | csx/ 200 | *.build.csdef 201 | 202 | # Microsoft Azure Emulator 203 | ecf/ 204 | rcf/ 205 | 206 | # Windows Store app package directories and files 207 | AppPackages/ 208 | BundleArtifacts/ 209 | Package.StoreAssociation.xml 210 | _pkginfo.txt 211 | *.appx 212 | *.appxbundle 213 | *.appxupload 214 | 215 | # Visual Studio cache files 216 | # files ending in .cache can be ignored 217 | *.[Cc]ache 218 | # but keep track of directories ending in .cache 219 | !?*.[Cc]ache/ 220 | 221 | # Others 222 | ClientBin/ 223 | ~$* 224 | *~ 225 | *.dbmdl 226 | *.dbproj.schemaview 227 | *.jfm 228 | *.pfx 229 | *.publishsettings 230 | orleans.codegen.cs 231 | 232 | # Including strong name files can present a security risk 233 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 234 | #*.snk 235 | 236 | # Since there are multiple workflows, uncomment next line to ignore bower_components 237 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 238 | #bower_components/ 239 | 240 | # RIA/Silverlight projects 241 | Generated_Code/ 242 | 243 | # Backup & report files from converting an old project file 244 | # to a newer Visual Studio version. Backup files are not needed, 245 | # because we have git ;-) 246 | _UpgradeReport_Files/ 247 | Backup*/ 248 | UpgradeLog*.XML 249 | UpgradeLog*.htm 250 | ServiceFabricBackup/ 251 | *.rptproj.bak 252 | 253 | # SQL Server files 254 | *.mdf 255 | *.ldf 256 | *.ndf 257 | 258 | # Business Intelligence projects 259 | *.rdl.data 260 | *.bim.layout 261 | *.bim_*.settings 262 | *.rptproj.rsuser 263 | *- Backup*.rdl 264 | 265 | # Microsoft Fakes 266 | FakesAssemblies/ 267 | 268 | # GhostDoc plugin setting file 269 | *.GhostDoc.xml 270 | 271 | # Node.js Tools for Visual Studio 272 | .ntvs_analysis.dat 273 | node_modules/ 274 | 275 | # Visual Studio 6 build log 276 | *.plg 277 | 278 | # Visual Studio 6 workspace options file 279 | *.opt 280 | 281 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 282 | *.vbw 283 | 284 | # Visual Studio LightSwitch build output 285 | **/*.HTMLClient/GeneratedArtifacts 286 | **/*.DesktopClient/GeneratedArtifacts 287 | **/*.DesktopClient/ModelManifest.xml 288 | **/*.Server/GeneratedArtifacts 289 | **/*.Server/ModelManifest.xml 290 | _Pvt_Extensions 291 | 292 | # Paket dependency manager 293 | .paket/paket.exe 294 | paket-files/ 295 | 296 | # FAKE - F# Make 297 | .fake/ 298 | 299 | # CodeRush personal settings 300 | .cr/personal 301 | 302 | # Python Tools for Visual Studio (PTVS) 303 | __pycache__/ 304 | *.pyc 305 | 306 | # Cake - Uncomment if you are using it 307 | # tools/** 308 | # !tools/packages.config 309 | 310 | # Tabs Studio 311 | *.tss 312 | 313 | # Telerik's JustMock configuration file 314 | *.jmconfig 315 | 316 | # BizTalk build output 317 | *.btp.cs 318 | *.btm.cs 319 | *.odx.cs 320 | *.xsd.cs 321 | 322 | # OpenCover UI analysis results 323 | OpenCover/ 324 | 325 | # Azure Stream Analytics local run output 326 | ASALocalRun/ 327 | 328 | # MSBuild Binary and Structured Log 329 | *.binlog 330 | 331 | # NVidia Nsight GPU debugger configuration file 332 | *.nvuser 333 | 334 | # MFractors (Xamarin productivity tool) working folder 335 | .mfractor/ 336 | 337 | # Local History for Visual Studio 338 | .localhistory/ 339 | 340 | # BeatPulse healthcheck temp database 341 | healthchecksdb 342 | 343 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 344 | MigrationBackup/ 345 | 346 | ## 347 | ## Visual studio for Mac 348 | ## 349 | 350 | 351 | # globs 352 | Makefile.in 353 | *.userprefs 354 | *.usertasks 355 | config.make 356 | config.status 357 | aclocal.m4 358 | install-sh 359 | autom4te.cache/ 360 | *.tar.gz 361 | tarballs/ 362 | test-results/ 363 | 364 | # Mac bundle stuff 365 | *.dmg 366 | *.app 367 | 368 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 369 | # General 370 | .DS_Store 371 | .AppleDouble 372 | .LSOverride 373 | 374 | # Icon must end with two \r 375 | Icon 376 | 377 | 378 | # Thumbnails 379 | ._* 380 | 381 | # Files that might appear in the root of a volume 382 | .DocumentRevisions-V100 383 | .fseventsd 384 | .Spotlight-V100 385 | .TemporaryItems 386 | .Trashes 387 | .VolumeIcon.icns 388 | .com.apple.timemachine.donotpresent 389 | 390 | # Directories potentially created on remote AFP share 391 | .AppleDB 392 | .AppleDesktop 393 | Network Trash Folder 394 | Temporary Items 395 | .apdisk 396 | 397 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 398 | # Windows thumbnail cache files 399 | Thumbs.db 400 | ehthumbs.db 401 | ehthumbs_vista.db 402 | 403 | # Dump file 404 | *.stackdump 405 | 406 | # Folder config file 407 | [Dd]esktop.ini 408 | 409 | # Recycle Bin used on file shares 410 | $RECYCLE.BIN/ 411 | 412 | # Windows Installer files 413 | *.cab 414 | *.msi 415 | *.msix 416 | *.msm 417 | *.msp 418 | 419 | # Windows shortcuts 420 | *.lnk 421 | 422 | # JetBrains Rider 423 | .idea/ 424 | *.sln.iml 425 | 426 | ## 427 | ## Visual Studio Code 428 | ## 429 | .vscode/* 430 | !.vscode/settings.json 431 | !.vscode/tasks.json 432 | !.vscode/launch.json 433 | !.vscode/extensions.json 434 | -------------------------------------------------------------------------------- /logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | --------------------------------------------------------------------------------