Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Last active June 28, 2020 16:25
Show Gist options
  • Save smaglio81/f65ec2618e515dfc884bd2503af1373f to your computer and use it in GitHub Desktop.
Save smaglio81/f65ec2618e515dfc884bd2503af1373f to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Atlassian.Jira;
namespace YourProject
{
public class JiraDevInfoBulkRequest
{
public List<JiraRepository> Repositories { get; set; }
public bool PreventTransitions { get; set; }
public Dictionary<string,string> Properties { get; set; }
public JiraProviderMetadata ProviderMetadata { get; set; }
}
public class JiraRepository
{
public string Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Url { get; set; }
public string Avatar { get; set; }
public string AvatarDescription { get; set; }
public string ForkOf { get; set; }
public List<JiraCommit> Commits { get; set; } = new List<JiraCommit>();
public List<JiraPullRequest> PullRequests { get; set; } = new List<JiraPullRequest>();
public List<JiraBranch> Branches { get; set; } = new List<JiraBranch>();
public long UpdateSequenceId { get; set; }
}
public class JiraCommit
{
public string Id { get; set; }
public string Hash { get; set; }
public string Message { get; set; }
public List<string> IssueKeys { get; set; }
public string Url { get; set; }
public string DisplayId { get; set; }
public DateTime AuthorTimestamp { get; set; }
public JiraAuthor Author { get; set; }
public int FileCount { get; set; }
public List<string> Flags { get; set; }
public List<JiraCommitFile> Files { get; set; }
public long UpdateSequenceId { get; set; }
}
public class JiraAuthor
{
public string Name { get; set; }
public string Email { get; set; }
public string Username { get; set; }
public string Url { get; set; }
public string Avatar { get; set; }
}
public class JiraCommitFile
{
public string Path { get; set; }
public string Url { get; set; }
public string ChangeType { get; set; }
public string LinesAdded { get; set; }
public string LinesRemoved { get; set; }
}
public class JiraProviderMetadata
{
public string Product { get; set; }
}
public class JiraPullRequest
{
public string Id { get; set; }
public List<string> IssueKeys { get; set; }
public string Status { get; set; }
public string Title { get; set; }
public string DisplayId { get; set; }
public string Url { get; set; }
public JiraAuthor Author { get; set; }
public int CommentCount { get; set; }
public string SourceBranch { get; set; }
public string SourceBranchUrl { get; set; }
public DateTime LastUpdate { get; set; }
public string DestinationBranch { get; set; }
public List<JiraReviewer> Reviewers { get; set; }
public string Avatar { get; set; }
public string AvatarDescription { get; set; }
public long UpdateSequenceId { get; set; }
}
public class JiraReviewer
{
public string Name { get; set; }
public string ApprovalStatus { get; set; }
public string Url { get; set; }
public string Avatar { get; set; }
}
public class JiraBranch
{
public string Id { get; set; }
public List<string> IssueKeys { get; set; }
public string Name { get; set; }
public JiraCommit LastCommit { get; set; }
public string CreatePullRequestUrl { get; set; }
public string Url { get; set; }
public long UpdateSequenceId { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment