Skip to content

Commit 05ac4e9

Browse files
kumaraksh1Akshay Kumar
andauthored
Trim commit message (#301)
Co-authored-by: Akshay Kumar <[email protected]>
1 parent 5e45f8e commit 05ac4e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/actionparameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ActionParameters {
3737
/**
3838
* 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.
3939
*/
40-
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 7000) : "";
40+
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 1000) : "";
4141
this._endpoint = endpoint;
4242
}
4343
static getActionParams(endpoint) {

src/actionparameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ActionParameters {
4848
/**
4949
* 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.
5050
*/
51-
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 7000) : "";
51+
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.slice(0, 1000) : "";
5252
this._endpoint = endpoint;
5353
}
5454

0 commit comments

Comments
 (0)