Skip to content

Commit c449e64

Browse files
committed
refactor: remove pr_state input from manual labeler workflow to default to scanning all PRs
1 parent a37ba62 commit c449e64

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/manual-pr-labeler.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ jobs:
9595
} else {
9696
console.log('🔍 Fetching all pull requests (open & closed/merged) in repository...');
9797
try {
98-
const { data } = await github.rest.pulls.list({
98+
prs = await github.paginate(github.rest.pulls.list, {
9999
owner,
100100
repo,
101101
state: 'all',
102102
per_page: 100
103103
});
104-
prs = data;
105-
console.log(` Found ${prs.length} PR(s) to analyze.`);
104+
console.log(` Found ${prs.length} total PR(s) to analyze.`);
106105
} catch (err) {
107106
core.setFailed(`Failed to fetch PRs: ${err.message}`);
108107
return;

0 commit comments

Comments
 (0)