Add workflow to create/update issues on New script merge
This commit is contained in:
parent
a53d129e06
commit
e73c618c4f
22
.github/workflows/update_issue.yml
generated
vendored
22
.github/workflows/update_issue.yml
generated
vendored
@ -129,20 +129,14 @@ jobs:
|
|||||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
||||||
.join(' ');
|
.join(' ');
|
||||||
|
|
||||||
const issueBody = `# 🛠️ **New Script**
|
const issueBody = '# 🛠️ **New Script**\n' +
|
||||||
Create an Issue when you want to merge a new Script. The name of the Issue must be the same as your APP.sh file. (Example: SnipeIT, snipeit.sh; Alpine-Docker, alpine-docker.sh)
|
'Create an Issue when you want to merge a new Script. The name of the Issue must be the same as your APP.sh file. (Example: SnipeIT, snipeit.sh; Alpine-Docker, alpine-docker.sh)\n\n' +
|
||||||
|
'### Name of the Script\n\n' +
|
||||||
### Name of the Script
|
formattedName + '\n\n' +
|
||||||
|
'### Script Type\n\n' +
|
||||||
${formattedName}
|
scriptType + '\n\n' +
|
||||||
|
'### 📋 Script Details\n\n' +
|
||||||
### Script Type
|
'This script has been merged and is ready for testing. ' + message;
|
||||||
|
|
||||||
${scriptType}
|
|
||||||
|
|
||||||
### 📋 Script Details
|
|
||||||
|
|
||||||
This script has been merged and is ready for testing. ${message}`;
|
|
||||||
|
|
||||||
const { data: newIssue } = await github.rest.issues.create({
|
const { data: newIssue } = await github.rest.issues.create({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user