Skip to content

Commit d3f3397

Browse files
clydinjosephperrott
authored andcommitted
fix(github-actions): use proper property from Github search response
1 parent 3ca19f2 commit d3f3397

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github-actions/lock-closed/lib/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22018,7 +22018,7 @@ async function run() {
2201822018
q: query,
2201922019
per_page: 100,
2202022020
});
22021-
for (const issue of issueResponse.data) {
22021+
for (const issue of issueResponse.data.items) {
2202222022
++lockCount;
2202322023
try {
2202422024
core_8(`Locking issue #${issue.number}`);

github-actions/lock-closed/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function run(): Promise<void> {
5454
per_page: 100,
5555
});
5656

57-
for (const issue of issueResponse.data) {
57+
for (const issue of issueResponse.data.items) {
5858
++lockCount;
5959
try {
6060
core.debug(`Locking issue #${issue.number}`);

0 commit comments

Comments
 (0)