Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions actions/setup/js/close_expired_discussions.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function delay(ms) {
* @param {any} github - GitHub GraphQL instance
* @param {string} owner - Repository owner
* @param {string} repo - Repository name
* @returns {Promise<Array<{id: string, number: number, title: string, url: string, body: string, createdAt: string}>>} Matching discussions
* @returns {Promise<{discussions: Array<{id: string, number: number, title: string, url: string, body: string, createdAt: string}>, stats: {pageCount: number, totalScanned: number}}>}
*/
async function searchDiscussionsWithExpiration(github, owner, repo) {
const discussions = [];
Expand All @@ -36,8 +36,6 @@ async function searchDiscussionsWithExpiration(github, owner, repo) {
let pageCount = 0;
let totalScanned = 0;

const { getErrorMessage } = require("./error_helpers.cjs");

core.info(`Starting GraphQL search for open discussions in ${owner}/${repo}`);

while (hasNextPage) {
Expand Down
4 changes: 1 addition & 3 deletions actions/setup/js/close_expired_issues.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function delay(ms) {
* @param {any} github - GitHub GraphQL instance
* @param {string} owner - Repository owner
* @param {string} repo - Repository name
* @returns {Promise<Array<{id: string, number: number, title: string, url: string, body: string, createdAt: string}>>} Matching issues
* @returns {Promise<{issues: Array<{id: string, number: number, title: string, url: string, body: string, createdAt: string}>, stats: {pageCount: number, totalScanned: number}}>}
*/
async function searchIssuesWithExpiration(github, owner, repo) {
const issues = [];
Expand All @@ -36,8 +36,6 @@ async function searchIssuesWithExpiration(github, owner, repo) {
let pageCount = 0;
let totalScanned = 0;

const { getErrorMessage } = require("./error_helpers.cjs");

core.info(`Starting GraphQL search for open issues in ${owner}/${repo}`);

while (hasNextPage) {
Expand Down