Skip to content

Commit

Permalink
Trim commit message (#301)
Browse files Browse the repository at this point in the history
Co-authored-by: Akshay Kumar <[email protected]>
  • Loading branch information
2 people authored and Akshay Kumar committed Apr 6, 2023
1 parent 43cec19 commit e8324ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/actionparameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, 1000) : "";
this._endpoint = endpoint;
}
static getActionParams(endpoint) {
Expand Down
2 changes: 1 addition & 1 deletion src/actionparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, 1000) : "";
this._endpoint = endpoint;
}

Expand Down

0 comments on commit e8324ca

Please sign in to comment.