Skip to content

Comments

Merge maintenance jobs and add comprehensive logging#11060

Merged
pelikhan merged 3 commits intomainfrom
copilot/improve-agentic-maintenance
Jan 21, 2026
Merged

Merge maintenance jobs and add comprehensive logging#11060
pelikhan merged 3 commits intomainfrom
copilot/improve-agentic-maintenance

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Consolidates expired issue and discussion cleanup into a single job and adds detailed logging for better observability.

Changes

Job Consolidation

  • Merged close-expired-discussions and close-expired-issues into single close-expired-entities job
  • Combined permissions: discussions: write + issues: write
  • Eliminated redundant checkout and setup steps

Logging Enhancements in close_older_issues.cjs

Added core.info logging throughout:

  • Search phase: Parameters, query construction, filter statistics
  • Filtering phase: Per-issue exclusion reasons with counts
  • Execution phase: Progress indicators, comment lengths, API call results
  • Summary: Final statistics with visual separators

Example logging output:

core.info(`Starting search for older issues in ${owner}/${repo}`);
core.info(`  Title prefix: ${titlePrefix || "(none)"}`);
core.info(`  Labels: ${labels && labels.length > 0 ? labels.join(", ") : "(none)"}`);
// ...
core.info(`[${i + 1}/${issuesToClose.length}] Processing issue #${issue.number}`);

The logging provides clear visibility into search criteria, filtering decisions, and operation progress without overwhelming the output.

Original prompt

This section details on the original issue you should resolve

<issue_title>Agentic Maintenance improvements</issue_title>
<issue_description>- merge close issues and close discussions in same job

  • add extensive logging in close issues script using core.info</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 21, 2026 17:21
…ging

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Add maintenance improvements for closing issues and discussions Merge maintenance jobs and add comprehensive logging Jan 21, 2026
Copilot AI requested a review from mnkiefer January 21, 2026 17:35
@pelikhan pelikhan marked this pull request as ready for review January 21, 2026 17:42
@pelikhan pelikhan merged commit 737c32a into main Jan 21, 2026
115 of 116 checks passed
@pelikhan pelikhan deleted the copilot/improve-agentic-maintenance branch January 21, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agentic Maintenance improvements

3 participants