From 839c04a40dccc76e36e001381fda86a1450da874 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 8 Dec 2015 15:52:26 +1030 Subject: [PATCH] cleaning up this old, unloved project --- Octokit.sln | 13 +--- clean-up-after-tests/App.config | 26 ------- clean-up-after-tests/Program.cs | 53 -------------- .../Properties/AssemblyInfo.cs | 36 ---------- .../clean-up-after-tests.csproj | 70 ------------------- 5 files changed, 2 insertions(+), 196 deletions(-) delete mode 100644 clean-up-after-tests/App.config delete mode 100644 clean-up-after-tests/Program.cs delete mode 100644 clean-up-after-tests/Properties/AssemblyInfo.cs delete mode 100644 clean-up-after-tests/clean-up-after-tests.csproj diff --git a/Octokit.sln b/Octokit.sln index 2418fedb..ee029cba 100644 --- a/Octokit.sln +++ b/Octokit.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.31101.0 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit", "Octokit\Octokit.csproj", "{08DD4305-7787-4823-A53F-4D0F725A07F3}" EndProject @@ -38,8 +38,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Reactive", "Octokit EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests-NetCore45", "Octokit.Tests\Octokit.Tests-NetCore45.csproj", "{3F4686DA-8774-4940-823E-9138F4B42060}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "clean-up-after-tests", "clean-up-after-tests\clean-up-after-tests.csproj", "{B84274D7-BE51-4613-8DB1-58E7C0EC45A8}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit-Mono", "Octokit\Octokit-Mono.csproj", "{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests.Conventions", "Octokit.Tests.Conventions\Octokit.Tests.Conventions.csproj", "{5345E2E6-4E7C-40F8-831B-E491F6051D3C}" @@ -80,10 +78,6 @@ Global {3F4686DA-8774-4940-823E-9138F4B42060}.Debug|Any CPU.Build.0 = Debug|Any CPU {3F4686DA-8774-4940-823E-9138F4B42060}.Release|Any CPU.ActiveCfg = Release|Any CPU {3F4686DA-8774-4940-823E-9138F4B42060}.Release|Any CPU.Build.0 = Release|Any CPU - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8}.Release|Any CPU.Build.0 = Release|Any CPU {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Debug|Any CPU.Build.0 = Debug|Any CPU {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -104,7 +98,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8} = {397C742D-291E-46BD-99A5-57BB6902FA7B} - EndGlobalSection EndGlobal diff --git a/clean-up-after-tests/App.config b/clean-up-after-tests/App.config deleted file mode 100644 index 901bed29..00000000 --- a/clean-up-after-tests/App.config +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/clean-up-after-tests/Program.cs b/clean-up-after-tests/Program.cs deleted file mode 100644 index d2d5edb1..00000000 --- a/clean-up-after-tests/Program.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using Octokit; -using Octokit.Tests.Integration; - -namespace clean_up_after_tests -{ - class Program - { - static readonly Regex _repoNameRegex = new Regex(@"\-[0-9]{17}$"); - - static void Main() - { - if (Helper.Credentials == null) - { - Console.WriteLine("The environment variable OCTOKIT_GITHUBUSERNAME and OCTOKIT_GITHUBPASSWORD must be set. Exiting."); - Console.WriteLine(); - } - else - { - DeleteRepos().Wait(); - } - -#if DEBUG - Console.WriteLine("Press ENTER to quit."); - Console.ReadLine(); - Console.WriteLine(); -#endif - } - - static async Task DeleteRepos() - { - var api = new GitHubClient(new ProductHeaderValue("Octokit.net", "clean-up-after-test.exe")) - { - Credentials = Helper.Credentials - }; - - Console.WriteLine("Getting all repositories for the test account."); - var repos = await api.Repository.GetAllForCurrent(); - foreach (var repo in repos) - { - if (_repoNameRegex.IsMatch(repo.Name)) - { - await api.Repository.Delete(repo.Owner.Login, repo.Name); - Console.WriteLine("Deleted {0}.", repo.FullName); - } - else - Console.WriteLine("Skipped {0}.", repo.FullName); - } - } - } -} diff --git a/clean-up-after-tests/Properties/AssemblyInfo.cs b/clean-up-after-tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 170ba60e..00000000 --- a/clean-up-after-tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("clean-up-after-tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("clean-up-after-tests")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("caad43c5-01cd-4aab-b009-75c7d1a135b4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/clean-up-after-tests/clean-up-after-tests.csproj b/clean-up-after-tests/clean-up-after-tests.csproj deleted file mode 100644 index e3879fd9..00000000 --- a/clean-up-after-tests/clean-up-after-tests.csproj +++ /dev/null @@ -1,70 +0,0 @@ - - - - - Debug - AnyCPU - {B84274D7-BE51-4613-8DB1-58E7C0EC45A8} - Exe - Properties - clean_up_after_tests - clean-up-after-tests - v4.5 - 512 - 5 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - {01687d54-1d87-4562-a721-c57f1c94052c} - Octokit.Tests.Integration - - - {08dd4305-7787-4823-a53f-4d0f725a07f3} - Octokit - - - - -