From 2ae2eca73c8ef2dd34a4dbc4759e7eaac5068e8e Mon Sep 17 00:00:00 2001 From: Shashi Prakash Date: Wed, 15 Feb 2023 12:26:46 +0530 Subject: [PATCH 1/2] Changing the commit message to 2000 characters --- lib/actionparameters.js | 2 +- src/actionparameters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actionparameters.js b/lib/actionparameters.js index c0ccd857e..ec2902f30 100644 --- a/lib/actionparameters.js +++ b/lib/actionparameters.js @@ -37,7 +37,7 @@ class ActionParameters { /** * Trimming the commit message because it is used as a param in uri of deployment api. And sometimes, it exceeds the max length of http URI. */ - this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 7000) : ""; + this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 2000) : ""; this._endpoint = endpoint; } static getActionParams(endpoint) { diff --git a/src/actionparameters.ts b/src/actionparameters.ts index 4d3ff6c5c..97e4cd22a 100644 --- a/src/actionparameters.ts +++ b/src/actionparameters.ts @@ -48,7 +48,7 @@ export class ActionParameters { /** * Trimming the commit message because it is used as a param in uri of deployment api. And sometimes, it exceeds the max length of http URI. */ - this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 7000) : ""; + this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 2000) : ""; this._endpoint = endpoint; } From 797ebbe533bc70abd233181feec79c3019eb78e6 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Date: Thu, 9 Mar 2023 16:14:12 +0530 Subject: [PATCH 2/2] changing commit length to 1000 --- lib/actionparameters.js | 2 +- src/actionparameters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actionparameters.js b/lib/actionparameters.js index ec2902f30..da9f84164 100644 --- a/lib/actionparameters.js +++ b/lib/actionparameters.js @@ -37,7 +37,7 @@ class ActionParameters { /** * Trimming the commit message because it is used as a param in uri of deployment api. And sometimes, it exceeds the max length of http URI. */ - this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 2000) : ""; + this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 1000) : ""; this._endpoint = endpoint; } static getActionParams(endpoint) { diff --git a/src/actionparameters.ts b/src/actionparameters.ts index 97e4cd22a..a21e3bbd4 100644 --- a/src/actionparameters.ts +++ b/src/actionparameters.ts @@ -48,7 +48,7 @@ export class ActionParameters { /** * Trimming the commit message because it is used as a param in uri of deployment api. And sometimes, it exceeds the max length of http URI. */ - this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 2000) : ""; + this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 1000) : ""; this._endpoint = endpoint; }