From 39ad46256badccae7b78f9f975c1658f02cac617 Mon Sep 17 00:00:00 2001 From: M15sy Date: Thu, 3 Nov 2022 14:58:05 +0000 Subject: [PATCH 1/3] missing package json info --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ec3b8ad..e1c354b 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "version": "0.2.0", "description": "A plugin to easily trigger GitHub Actions workflows from Strapi.", "strapi": { - "name": "GitHub Publishing", + "name": "github-publish", "icon": "plug", + "kind": "plugin", "description": "Publish changes via GitHub Actions." }, "dependencies": {}, From a72e988738aa77a9a183538f936da6a862e855b7 Mon Sep 17 00:00:00 2001 From: M15sy Date: Thu, 3 Nov 2022 14:58:05 +0000 Subject: [PATCH 2/3] missing package json info --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ec3b8ad..22cd398 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "version": "0.2.0", "description": "A plugin to easily trigger GitHub Actions workflows from Strapi.", "strapi": { - "name": "GitHub Publishing", + "name": "github-publish", "icon": "plug", + "kind": "plugin", "description": "Publish changes via GitHub Actions." }, "dependencies": {}, @@ -30,7 +31,7 @@ } ], "engines": { - "node": ">=10.16.0 <=14.x.x", + "node": ">=14.x.x <=18.x.x", "npm": ">=6.0.0" }, "license": "MIT", From 6e0bf5535fcb5f795bfe9ab9b7b1b1f71d191e33 Mon Sep 17 00:00:00 2001 From: M15sy Date: Thu, 3 Nov 2022 18:01:53 +0000 Subject: [PATCH 3/3] update error messages --- server/config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/config.js b/server/config.js index a1d078c..8928987 100644 --- a/server/config.js +++ b/server/config.js @@ -2,19 +2,19 @@ module.exports = { default: {}, validator: ({ owner, repo, workflow_id, token, branch }) => { if (!owner) { - throw new Error("owner is a required"); + throw new Error("owner is required"); } if (!repo) { - throw new Error("repo is a required"); + throw new Error("repo is required"); } if (!workflow_id) { - throw new Error("workflow_id is a required"); + throw new Error("workflow_id required"); } if (!token) { - throw new Error("token is a required"); + throw new Error("token is required"); } if (!branch) { - throw new Error("branch is a required"); + throw new Error("branch is required"); } }, };