Skip to content

Commit 28e8fe2

Browse files
committed
fix(ci): address conditional type on_merge
1 parent b582992 commit 28e8fe2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/scripts/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ module.exports = Object.freeze({
1515
/** @type {number} */
1616
"PR_NUMBER": process.env.PR_NUMBER || 0,
1717

18-
/** @type {boolean} */
19-
"PR_IS_MERGED": process.env.PR_IS_MERGED || false,
18+
/** @type {string} */
19+
"PR_IS_MERGED": process.env.PR_IS_MERGED || "false",
2020

2121
/** @type {string} */
2222
"LABEL_BLOCK": "do-not-merge",

.github/scripts/label_related_issue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = async ({github, context, core}) => {
1313
return core.notice("Author in IGNORE_AUTHORS list; skipping...")
1414
}
1515

16-
if (!PR_IS_MERGED) {
16+
if (PR_IS_MERGED == "false") {
1717
return core.notice("Only merged PRs to avoid spam; skipping")
1818
}
1919

0 commit comments

Comments
 (0)