Skip to content

Commit 85d09e0

Browse files
committed
update
1 parent ce2cd3a commit 85d09e0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/actions/list-pr/action.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
token: ${{ inputs.token }}
3535
result-encoding: string
3636
script: |
37-
const resp = await github.rest.pulls.list({
37+
const resp = await github.paginate(github.rest.pulls.list, {
3838
owner: "pytorch",
3939
repo: "pytorch",
4040
state: "open",
@@ -49,11 +49,6 @@ runs:
4949
? input_labels.split(/[,\n]/).map(label => label.trim())
5050
: [];
5151
52-
core.info(`timeRange: ${timeRange}`);
53-
core.info(`sinceTime: ${sinceTime}`);
54-
core.info(`labels: ${labels}`);
55-
core.info(`resp: ${resp.data}`);
56-
5752
const prs = resp.data.filter(pr => {
5853
const hasLabel = labels.length === 0
5954
|| labels.every(label => pr.labels.some(prLabel => prLabel.name === label));

0 commit comments

Comments
 (0)