Skip to content

lint-monster: skip-if recent open issues (24h), single agent session#32746

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/skip-if-recent-open-issues
Closed

lint-monster: skip-if recent open issues (24h), single agent session#32746
Copilot wants to merge 3 commits into
mainfrom
copilot/skip-if-recent-open-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

lint-monster runs daily and was launching up to 3 Copilot agent sessions per run with no guard against duplicate work when agents from a previous run are still active.

Changes

  • Skip-if recent issues (24h): Added a gh search issues check at the start of the pre-check step. If any open [lint-monster] issues exist with created:>=<yesterday>, sets lint-clean.flag → agent calls noop.
CUTOFF=$(date -u -d '24 hours ago' '+%Y-%m-%d')
RECENT=$(gh search issues \
  --repo "$GH_AW_GITHUB_REPOSITORY" \
  --state open \
  --json number \
  -- "in:title \"[lint-monster]\" created:>=${CUTOFF}" \
  | jq 'length')
if [ "${RECENT:-0}" -gt 0 ]; then
  touch /tmp/gh-aw/agent/lint-clean.flag
  exit 0
fi
  • Single agent session: assign-to-agent: max and create-issue: max reduced from 31. Agent instructions updated to select only the group with the most findings per run rather than dispatching up to three parallel groups.

Lock file recompiled; ${{ github.repository }} automatically extracted to $GH_AW_GITHUB_REPOSITORY by the compiler for injection safety.

Copilot AI and others added 2 commits May 17, 2026 04:35
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…rule

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add skip-if recent open issues check for lint-monster lint-monster: skip-if recent open issues (24h), single agent session May 17, 2026
@pelikhan pelikhan closed this May 17, 2026
Copilot stopped work on behalf of pelikhan due to an error May 17, 2026 04:37
Copilot AI requested a review from pelikhan May 17, 2026 04:37
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.

[q] lint-monster: skip-if recent open issues (24h), single agent session

2 participants