-
-
Save ShawInnes/9595471 to your computer and use it in GitHub Desktop.
C# Version of Paul Stovell's Release Notes Builder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Fork of https://gist.github.com/PaulStovell/9593947 | |
// Uses: https://github.com/octokit/octokit.net | |
// NuGet: Install-Package Octokit | |
// | |
var connection = new Connection(new ProductHeaderValue("ReleaseNotesGenerator")); | |
connection.Credentials = new Credentials(Util.GetPassword("github.username"), Util.GetPassword("github.password")); | |
var apiConnection = new ApiConnection(connection); | |
var issueHub = new IssuesClient(apiConnection); | |
var issues = await issueHub.GetForRepository("in-beta", "issues", new RepositoryIssueRequest() { State = ItemState.Closed, Milestone = "1" }); | |
issues.OrderBy(p => p.ClosedAt).Select(p => new { | |
IssueId = p.Number, | |
Milestone = p.Milestone.Title, | |
Title = p.Title, | |
Url = p.Url.ToString(), | |
Labels = string.Join(", ", p.Labels.Select(q => q.Name)) | |
}).Dump(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment