Skip to content

Commit a471c4c

Browse files
committed
fix(ci): address gh-actions additional quotes; remove debug
1 parent cfc15b8 commit a471c4c

5 files changed

+1
-15
lines changed

.github/scripts/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = Object.freeze({
44
"PR_ACTION": process.env.PR_ACTION || "",
55

66
/** @type {string} */
7-
"PR_AUTHOR": process.env.PR_AUTHOR || "",
7+
"PR_AUTHOR": process.env.PR_AUTHOR?.replace(/"/g, '') || "",
88

99
/** @type {string} */
1010
"PR_BODY": process.env.PR_BODY || "",

.github/scripts/label_missing_related_issue.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ const {
99
} = require("./constants")
1010

1111
module.exports = async ({github, context, core}) => {
12-
core.debug(`Number: ${PR_BODY}`);
13-
core.debug(`Action: ${PR_ACTION}`);
14-
core.debug(`Author: ${PR_AUTHOR}`);
15-
core.debug(`Body: ${PR_BODY}`);
16-
1712
if (IGNORE_AUTHORS.includes(PR_AUTHOR)) {
1813
return core.notice("Author in IGNORE_AUTHORS list; skipping...")
1914
}

.github/scripts/label_pr_based_on_title.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const { PR_NUMBER, PR_TITLE } = require("./constants")
22

33
module.exports = async ({github, context, core}) => {
4-
core.debug(PR_NUMBER);
5-
core.debug(PR_TITLE);
6-
74
const FEAT_REGEX = /feat(\((.+)\))?(\:.+)/
85
const BUG_REGEX = /(fix|bug)(\((.+)\))?(\:.+)/
96
const DOCS_REGEX = /(docs|doc)(\((.+)\))?(\:.+)/

.github/scripts/label_related_issue.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ const {
99
} = require("./constants")
1010

1111
module.exports = async ({github, context, core}) => {
12-
core.debug(PR_BODY);
13-
core.debug(PR_IS_MERGED);
14-
core.debug(PR_AUTHOR);
15-
1612
if (IGNORE_AUTHORS.includes(PR_AUTHOR)) {
1713
return core.notice("Author in IGNORE_AUTHORS list; skipping...")
1814
}

.github/scripts/save_pr_details.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module.exports = async ({github, context, core}) => {
33
const filename = "pr.txt";
44

55
try {
6-
core.debug("Payload as it comes..");
7-
core.debug(context.payload);
86
fs.writeFileSync(`./${filename}`, JSON.stringify(context.payload));
97

108
return `PR successfully saved ${filename}`

0 commit comments

Comments
 (0)