/// <summary>
 /// Convert the <see cref="RevisionInformation"/> to it's API form
 /// </summary>
 /// <returns>A new <see cref="Api.Models.RevisionInformation"/></returns>
 public Api.Models.RevisionInformation ToApi() => new Api.Models.RevisionInformation
 {
     CommitSha        = CommitSha,
     OriginCommitSha  = OriginCommitSha,
     PrimaryTestMerge = PrimaryTestMerge?.ToApi(),
     ActiveTestMerges = ActiveTestMerges.Select(x => x.TestMerge.ToApi()).ToList(),
     CompileJobs      = CompileJobs.Select(x => new Api.Models.CompileJob
     {
         Id = x.Id                       //anti recursion measure
     }).ToList()
 };
		/// <inheritdoc />
		public Api.Models.RevisionInformation ToApi() => new Api.Models.RevisionInformation
		{
			CommitSha = CommitSha,
			Timestamp = Timestamp,
			OriginCommitSha = OriginCommitSha,
			PrimaryTestMerge = PrimaryTestMerge?.ToApi(),
			ActiveTestMerges = ActiveTestMerges.Select(x => x.TestMerge.ToApi()).ToList(),
			CompileJobs = CompileJobs.Select(x => new Api.Models.EntityId
			{
				Id = x.Id
			}).ToList()
		};