Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Overbeck committed Aug 6, 2024
1 parent 6564b39 commit d24e880
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions upsertGitHubTag/deployment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function deleteEndpoint(
}

function handleReleaseEvent(githubEventType, body, deliveryId, path, callback) {
console.log("Valid release event");
console.log("Valid release event ", deliveryId);
const fullPath = path + "workflows/github/taggedrelease";
logPayloadToS3(githubEventType, body, deliveryId);
postEndpoint(fullPath, body, deliveryId, (response) => {
Expand Down Expand Up @@ -178,7 +178,7 @@ function processEvent(event, callback) {
// Handle installation events
if (githubEventType === "installation_repositories") {
// The installation_repositories event contains information about both additions and removals.
console.log("Valid installation event");
console.log("Valid installation event ", deliveryId);

logPayloadToS3(githubEventType, body, deliveryId); //upload event to S3

Expand Down Expand Up @@ -215,7 +215,7 @@ function processEvent(event, callback) {

// A push has been made for some repository (ignore pushes that are deletes)
if (!body.deleted) {
console.log("Valid push event");
console.log("Valid push event ", deliveryId);
logPayloadToS3(githubEventType, body, deliveryId); //upload event to S3

const repository = body.repository.full_name;
Expand All @@ -233,7 +233,7 @@ function processEvent(event, callback) {
handleCallback(response, successMessage, callback);
});
} else {
console.log("Valid push event (delete)");
console.log("Valid push event (delete) ", deliveryId);
logPayloadToS3(githubEventType, body, deliveryId); //upload event to S3
const repository = body.repository.full_name;
const gitReference = body.ref;
Expand Down Expand Up @@ -263,7 +263,7 @@ function processEvent(event, callback) {
} else if (githubEventType === "release") {
handleReleaseEvent(githubEventType, body, deliveryId, path, callback);
} else {
console.log("Event " + githubEventType + " is not supported");
console.log("Event " + githubEventType + " is not supported", deliveryId);
callback(null, {
statusCode: 200,
body:
Expand Down

0 comments on commit d24e880

Please sign in to comment.