Skip to content

Commit 516e627

Browse files
authored
Break out last commit id to make it easier to consume (#195)
1 parent 53aaabf commit 516e627

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

PipelineCommon/Models/BusMessages/WACSMessage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class WACSMessage
77
public string User { get; set; }
88
public string Repo { get; set; }
99
public SimplifiedCommit LatestCommit { get; set; }
10+
public string LastCommitId { get; set; }
1011
public int RepoId { get; set; }
1112
public string Action { get; set; }
1213
public string DefaultBranch { get; set; }

ScriptureRenderingPipeline/Webhook.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public async Task<HttpResponseData> RunAsync(
105105
Username = webhookEvent.commits[0].Committer.Username,
106106
Url = webhookEvent.commits[0].Url
107107
};
108+
message.LastCommitId = webhookEvent.commits[0].Id;
108109
}
109110

110111
await using var sender = _serviceBusClient.CreateSender("WACSEvent");

0 commit comments

Comments
 (0)