Expose cycles in issue query, mine, and view - #252
Merged
Conversation
Issue tables gain a compact CYC column (only when a listed team has cycles enabled): 'now' for the active cycle, +1/-1 from the API's next/previous flags, +N/-N anchored on team.activeCycle, and #N when no anchor exists (cooldown or pre-first-cycle). issue view annotates its Cycle meta part with the same token, and issue JSON output now carries the cycle flags and team anchor in raw GraphQL shape. The shared cycle resolver understands now/next/previous and signed offsets, so --cycle on query/mine/create/update and cycle view all speak the relative vocabulary. issue update gains --clear-cycle (explicit cycleId: null, mirroring --unassign). Also fixes issue query --search silently dropping the --cycle filter.
schpetbot
force-pushed
the
cycles-in-issue-output
branch
from
July 21, 2026 20:09
3ca2482 to
c09482e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds cycle visibility across issue output and makes cycle updates easy.
Tables (
issue query,issue mine)New compact
CYCcolumn, shown only when a listed team has cycles enabled:now(green) — the team's active cycle+1/-1— from the API'sisNext/isPreviousflags (these take precedence so display always agrees with--cycle next/previousselection)+N/-N— offset fromteam.activeCycle.number#N— absolute fallback when there is no anchor (cooldown or before the first cycle starts)-— no cycleissue viewThe Cycle meta part now reads
**Cycle:** #7 Sprint 7 (now)/#8 (+1)using the same vocabulary.JSON
issue query --json/issue view --jsonnow carrycycle { id number name isActive isNext isPrevious isFuture isPast }andteam { cyclesEnabled activeCycle { number } }in raw GraphQL shape.Updating cycles
issue update <id> --cycle next— alsonow,previous, and signed offsets (+2,--cycle=-1); relative offsets require an active cycle and error with guidance otherwiseissue update <id> --clear-cycle— sends an explicitcycleId: null(mirrors--unassign); conflicts with--cycle--cyclefilters onissue query/issue mine/issue createandcycle viewFixes and hardening
issue query --search --cyclesilently dropped the cycle filter; it now filters--cycleagainst a team with cycles disabled now errors with "Cycles are not enabled for team X" instead of a generic not-found