Repository navigation
feat(gh-issues): make issue and PR numbers clickable links - #139
Merged
Merged
Conversation
Refs: #104 Co-authored-by: Cursor <[email protected]>
Use Rich [link=URL]text[/link] markup for OSC 8 hyperlinks in the # column of both issue and PR tables. Links point to GitHub web URLs. Refs: #104 Co-authored-by: Cursor <[email protected]>
Refs: #104 Co-authored-by: Cursor <[email protected]>
…issue-numbers # Conflicts: # tests/test_gh_issues.py
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.
Description
Enhance the
#column in thejust gh-issuesoverview table so that issue and PR numbers are clickable hyperlinks. Uses Rich's[link=URL]text[/link]markup for OSC 8 hyperlinks, which work in iTerm2, Windows Terminal, Cursor's integrated terminal, and other modern terminals.Closes #104
Type of Change
feat-- New featureModifiers
!) -- This change breaks backward compatibilityChanges Made
_gh_link(owner_repo, num, kind)helper inscripts/gh_issues.pyto generate Rich hyperlink markupowner_repofrommain()to_build_tableand_build_pr_table#column: links tohttps://github.com/{owner}/{repo}/issues/{num}#column: links tohttps://github.com/{owner}/{repo}/pull/{num}tests/test_gh_issues.pyfor link formattingChangelog Entry
Testing
uv run pytest tests/test_gh_issues.py tests/test_utils.py -v)just gh-issuesdisplays tables with clickable numbersManual Testing Details
Ran
uv run python scripts/gh_issues.py— tables render correctly; issue and PR numbers are hyperlinked in terminals that support OSC 8.Checklist
CHANGELOG.mdin the[Unreleased]sectionRefs: #104