Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand All @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
},
};