Skip to content

Commit 332dbd0

Browse files
heitorlessarubenfonseca
authored andcommitted
fix(ci): pass core fns to large pr workflow script
1 parent d2a528b commit 332dbd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/scripts/comment_on_large_pr.js

+10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ const {
66
} = require("./constants")
77

88

9+
/**
10+
* Notify PR author to split XXL PR in smaller chunks
11+
*
12+
* @param {object} core - core functions instance from @actions/core
13+
* @param {object} gh_client - Pre-authenticated REST client (Octokit)
14+
* @param {string} owner - GitHub Organization
15+
* @param {string} repository - GitHub repository
16+
*/
917
const notifyAuthor = async ({
18+
core,
1019
gh_client,
1120
owner,
1221
repository,
@@ -54,6 +63,7 @@ module.exports = async ({github, context, core}) => {
5463
core.info(`Label: ${label}`)
5564
if (label.name == "size/XXL") {
5665
await notifyAuthor({
66+
core: core,
5767
gh_client: github,
5868
owner: context.repo.owner,
5969
repository: context.repo.repo,

0 commit comments

Comments
 (0)