-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.cjs
More file actions
12 lines (10 loc) · 762 Bytes
/
Copy pathutils.cjs
File metadata and controls
12 lines (10 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
const REPO = process.env.GITHUB_REPOSITORY || 'rowkav09/CCO-scripts-archive';
const BROKEN_ISSUE_TEMPLATE = 'script-not-working.yml';
function buildBrokenIssueUrl({ scriptName, scriptUrl, category }) {
const title = encodeURIComponent(`[Broken] ${scriptName}`);
const body = encodeURIComponent(
`Submit this only if the script is not working.\n\nPlease test it properly before opening the issue.\n\nTag @rowka and I will confirm whether it works or not by reacting with works or doesnt.\n\n**Script:** [${scriptName}](${scriptUrl})\n**Category:** ${category}\n\n**What is broken?**\n`
);
return `https://github.com/${REPO}/issues/new?template=${BROKEN_ISSUE_TEMPLATE}&title=${title}&body=${body}`;
}
module.exports = { REPO, buildBrokenIssueUrl };