mirror of
https://github.com/esphome/esphome.git
synced 2025-07-27 05:36:38 +00:00
[CI] Paginate codeowner comments to make sure we find it (#9817)
This commit is contained in:
parent
7bfb08e602
commit
ac7f125eb5
@ -182,11 +182,14 @@ jobs:
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Check for previous comments from this workflow to avoid duplicate pings
|
// Check for previous comments from this workflow to avoid duplicate pings
|
||||||
const { data: comments } = await github.rest.issues.listComments({
|
const comments = await github.paginate(
|
||||||
|
github.rest.issues.listComments,
|
||||||
|
{
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
issue_number: pr_number
|
issue_number: pr_number
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const previouslyPingedUsers = new Set();
|
const previouslyPingedUsers = new Set();
|
||||||
const previouslyPingedTeams = new Set();
|
const previouslyPingedTeams = new Set();
|
||||||
@ -194,7 +197,6 @@ jobs:
|
|||||||
// Look for comments from github-actions bot that contain our bot marker
|
// Look for comments from github-actions bot that contain our bot marker
|
||||||
const workflowComments = comments.filter(comment =>
|
const workflowComments = comments.filter(comment =>
|
||||||
comment.user.type === 'Bot' &&
|
comment.user.type === 'Bot' &&
|
||||||
comment.user.login === 'github-actions[bot]' &&
|
|
||||||
comment.body.includes(BOT_COMMENT_MARKER)
|
comment.body.includes(BOT_COMMENT_MARKER)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user