Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .dockerignore

This file was deleted.

28 changes: 0 additions & 28 deletions Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ static async Task Main(string[] args)
var config = new ConfigurationBuilder()
.SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
.AddEnvironmentVariables()
.AddUserSecrets<Program>()
.Build();

_token = config.GetSection("GITHUB_TOKEN").Value;
Expand Down Expand Up @@ -282,30 +281,6 @@ private static async Task ProcessReleases(List<dotnetthanks.Release> releases, D
}
#nullable disable

private static async Task<PullRequest> CreatePullRequestFromFork(string forkname, string branch)
{
var basic = new Credentials(_token);
var client = new GitHubClient(new ProductHeaderValue("dotnet-thanks"))
{
Credentials = basic
};

NewPullRequest newPr = new("Update thanks data file", $"spboyer:{branch}", "master");

try
{
var pullRequest = await client.PullRequest.Create("dotnet", "website-resources", newPr);

return pullRequest;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}

return null;
}

/// <summary>
/// Find the previous release for the current release in the sorted collection of all releases.
/// Take the immediate previous release it it has the same major.minor version (e.g. 5.0.0-RC1 for 5.0.0-RC2),
Expand Down
12 changes: 12 additions & 0 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profiles": {
"dotnetthanks-loader": {
"commandName": "Project",
"environmentVariables": {
"GITHUB_CLIENTSECRET": "",
"GITHUB_TOKEN": "",
"GITHUB_CLIENTID": ""
}
}
}
}
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ Each child repo, other repositories in the release, are processed in the same ma
1. Create a GitHub ClientID and Secret in your settings under the [OAuth Apps section](https://github.com/settings/developers).
1. Create a [GitHub Personal Access Token](https://github.com/settings/tokens)
1. Fork the dotnetthanks-loader repo and cd into it.
1. Create [user-secrets](https://docs.microsoft.com/aspnet/core/security/app-secrets?WT.mc_id=dotnet-00000-shboyer) using the following commands
1. `dotnet user-secrets init`
1. `dotnet user-secrets set GITHUB_CLIENTID <your-value>`
1. `dotnet user-secrets set GITHUB_CLIENTSECRET <your-value>`
1. `dotnet user-secrets set GITHUB_TOKEN <your Personal Access Token>`
1. Set environment variables under launchSettings.json for GITHUB_CLIENTID, GITHUB_CLIENTSECRET, and GITHUB_TOKEN
26 changes: 0 additions & 26 deletions startup.sh

This file was deleted.