Skip to content

Commit

Permalink
fix: safe destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
tool3 committed May 22, 2024
1 parent eae5573 commit dd209cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69324,7 +69324,7 @@ Toolkit.run(async (tools) => {
try {
// get context
const { payload } = github.context;
const args = {};
const args = { message: '', email: '', username: '' };

if (payload.head_commit) {
args.email = payload.head_commit.committer.email;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Toolkit.run(async (tools) => {
try {
// get context
const { payload } = github.context;
const args = {};
const args = { message: '', email: '', username: '' };

if (payload.head_commit) {
args.email = payload.head_commit.committer.email;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bump",
"version": "1.1.9",
"version": "2.0.0",
"description": "Bump Action",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit dd209cf

Please sign in to comment.