Skip to content

Commit

Permalink
Merge pull request #111 from FFXIV-CombatReborn/better-changelog
Browse files Browse the repository at this point in the history
Added a much prettier and way more functional changelog window
  • Loading branch information
NostraThomas99 authored Apr 18, 2024
2 parents 11138d5 + 55b0c49 commit 881e2a3
Show file tree
Hide file tree
Showing 2 changed files with 319 additions and 39 deletions.
185 changes: 185 additions & 0 deletions RotationSolver/Data/GithubCommitCompare.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RotationSolver.Data
{
public class GitHubCommitComparison
{
[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("html_url")]
public string HtmlUrl { get; set; }

[JsonProperty("permalink_url")]
public string PermalinkUrl { get; set; }

[JsonProperty("diff_url")]
public string DiffUrl { get; set; }

[JsonProperty("patch_url")]
public string PatchUrl { get; set; }

[JsonProperty("base_commit")]
public Commit BaseCommit { get; set; }

[JsonProperty("merge_base_commit")]
public Commit MergeBaseCommit { get; set; }

[JsonProperty("status")]
public string Status { get; set; }

[JsonProperty("ahead_by")]
public int AheadBy { get; set; }

[JsonProperty("behind_by")]
public int BehindBy { get; set; }

[JsonProperty("total_commits")]
public int TotalCommits { get; set; }

[JsonProperty("commits")]
public List<Commit> Commits { get; set; }

[JsonProperty("files")]
public List<CommitFile> Files { get; set; }
}

public class Commit
{
[JsonProperty("sha")]
public string Sha { get; set; }

[JsonProperty("node_id")]
public string NodeId { get; set; }

[JsonProperty("commit")]
public CommitData CommitData { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("html_url")]
public string HtmlUrl { get; set; }

[JsonProperty("comments_url")]
public string CommentsUrl { get; set; }

[JsonProperty("author")]
public GithubRelease.Author Author { get; set; }

[JsonProperty("committer")]
public GithubRelease.Author Committer { get; set; }

[JsonProperty("parents")]
public List<Parent> Parents { get; set; }
}

public class CommitData
{
[JsonProperty("author")]
public Author CommitAuthor { get; set; }

[JsonProperty("committer")]
public Author CommitCommitter { get; set; }

[JsonProperty("message")]
public string Message { get; set; }

[JsonProperty("tree")]
public Tree Tree { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("comment_count")]
public int CommentCount { get; set; }

[JsonProperty("verification")]
public Verification Verification { get; set; }
}

public class Author
{
[JsonProperty("name")]
public string Name { get; set; }

[JsonProperty("email")]
public string Email { get; set; }

[JsonProperty("date")]
public DateTime Date { get; set; }
}

public class Tree
{
[JsonProperty("sha")]
public string Sha { get; set; }

[JsonProperty("url")]
public string Url { get; set; }
}

public class Verification
{
[JsonProperty("verified")]
public bool Verified { get; set; }

[JsonProperty("reason")]
public string Reason { get; set; }

[JsonProperty("signature")]
public string Signature { get; set; }

[JsonProperty("payload")]
public string Payload { get; set; }
}

public class Parent
{
[JsonProperty("sha")]
public string Sha { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("html_url")]
public string HtmlUrl { get; set; }
}

public class CommitFile
{
[JsonProperty("sha")]
public string Sha { get; set; }

[JsonProperty("filename")]
public string Filename { get; set; }

[JsonProperty("status")]
public string Status { get; set; }

[JsonProperty("additions")]
public int Additions { get; set; }

[JsonProperty("deletions")]
public int Deletions { get; set; }

[JsonProperty("changes")]
public int Changes { get; set; }

[JsonProperty("blob_url")]
public string BlobUrl { get; set; }

[JsonProperty("raw_url")]
public string RawUrl { get; set; }

[JsonProperty("contents_url")]
public string ContentsUrl { get; set; }

[JsonProperty("patch")]
public string Patch { get; set; }
}
}
Loading

0 comments on commit 881e2a3

Please sign in to comment.