Skip to content

Commit bc85af7

Browse files
authored
propagate installationId to delete endpoint
https://ucsc-cgl.atlassian.net/browse/SEAB-5770
1 parent 1acafc2 commit bc85af7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: upsertGitHubTag/deployment/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function deleteEndpoint(
7474
repository,
7575
reference,
7676
username,
77+
installationId,
7778
deliveryId,
7879
callback
7980
) {
@@ -83,6 +84,7 @@ function deleteEndpoint(
8384
urlWithParams.searchParams.append("gitReference", reference);
8485
urlWithParams.searchParams.append("repository", repository);
8586
urlWithParams.searchParams.append("username", username);
87+
urlWithParams.searchParams.append("installationId", installationId);
8688

8789
const options = url.parse(urlWithParams.href);
8890
options.method = "DELETE";
@@ -219,6 +221,7 @@ function processEvent(event, callback) {
219221
const repository = body.repository.full_name;
220222
const gitReference = body.ref;
221223
const username = body.sender.login;
224+
const installationId = body.installation.id;
222225

223226
path += "workflows/github";
224227

@@ -227,6 +230,7 @@ function processEvent(event, callback) {
227230
repository,
228231
gitReference,
229232
username,
233+
installationId,
230234
deliveryId,
231235
(response) => {
232236
const successMessage =

0 commit comments

Comments
 (0)