Skip to content

Consolidate LintMonster function-length issues into one tracking workflow#36347

Merged
pelikhan merged 3 commits into
mainfrom
copilot/deep-reportconsolidate-lint-monster-issues
Jun 1, 2026
Merged

Consolidate LintMonster function-length issues into one tracking workflow#36347
pelikhan merged 3 commits into
mainfrom
copilot/deep-reportconsolidate-lint-monster-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

LintMonster was treating closely related long-function findings in pkg/workflow and pkg/cli as separate issues, which led to duplicate trackers and conflicting counts for the same backlog. This change makes the workflow maintain one authoritative function-length tracking issue and explicitly fold duplicates into it.

  • Workflow behavior

    • Treats all largefunc / long-function findings across pkg/workflow and pkg/cli as a single function-length refactoring backlog.
    • Instructs the agent to use the current lint run as the source of truth for the active count.
    • Replaces split tracking (pkg/workflow, pkg/cli, part-based follow-ups) with one consolidated tracking issue.
  • Issue lifecycle

    • Reuses an existing open tracking issue when one already covers the same backlog.
    • Updates the authoritative issue with the current count, affected paths, and next refactoring slices.
    • Closes older duplicate lint-monster issues with a pointer comment to the authoritative tracker.
  • Safe-output support

    • Adds update-issue so the workflow can refresh an existing tracker instead of opening a new one.
    • Adds close-issue with a [lint-monster] title guard and duplicate close reason to safely retire overlapping issues.
  • Generated workflow

    • Regenerates lint-monster.lock.yml so the compiled workflow matches the new source behavior and safe-output contract.

Example of the new workflow contract:

safe-outputs:
  close-issue:
    max: 10
    required-title-prefix: "[lint-monster] "
    state-reason: duplicate
  update-issue:
    max: 10
    title-prefix: "[lint-monster] "

Copilot AI and others added 2 commits June 1, 2026 22:30
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Consolidate overlapping lint-monster function-length issues Consolidate LintMonster function-length issues into one tracking workflow Jun 1, 2026
Copilot AI requested a review from gh-aw-bot June 1, 2026 22:34
@pelikhan pelikhan marked this pull request as ready for review June 1, 2026 22:40
Copilot AI review requested due to automatic review settings June 1, 2026 22:40
@pelikhan pelikhan merged commit cdce31e into main Jun 1, 2026
@pelikhan pelikhan deleted the copilot/deep-reportconsolidate-lint-monster-issues branch June 1, 2026 22:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

[deep-report] [quick-win] Consolidate the overlapping lint-monster function-length issues into one tracking epic

4 participants