From eff9d48f6e57c10e0569149b036e87f96f3774e5 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 6 May 2026 17:33:29 -0600 Subject: [PATCH] Replace em-dashes with hyphens in code comments Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- internal/featuredetection/feature_detection.go | 4 ++-- pkg/cmd/issue/edit/edit.go | 2 +- pkg/cmd/issue/view/view.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/featuredetection/feature_detection.go b/internal/featuredetection/feature_detection.go index e60c89e70..98be5a464 100644 --- a/internal/featuredetection/feature_detection.go +++ b/internal/featuredetection/feature_detection.go @@ -49,7 +49,7 @@ type IssueFeatures struct { // - The requestReviewsByLogin mutation ApiActorsSupported bool - // TODO IssueRelationshipsCleanup — remove when GHES 3.18 support ends (~October 2026) + // TODO IssueRelationshipsCleanup - remove when GHES 3.18 support ends (~October 2026) // IssueRelationshipsSupported indicates the host supports issue // relationships (blocked-by/blocking). Available on github.com and // GHES 3.19+. Issue types and sub-issues are GA on all supported GHES @@ -168,7 +168,7 @@ func (d *detector) IssueFeatures() (IssueFeatures, error) { } features := IssueFeatures{ - ApiActorsSupported: false, // TODO ApiActorsSupported — actor-based mutations unavailable on GHES + ApiActorsSupported: false, // TODO ApiActorsSupported - actor-based mutations unavailable on GHES } // Detect issue relationship support (GHES 3.19+) via schema introspection. diff --git a/pkg/cmd/issue/edit/edit.go b/pkg/cmd/issue/edit/edit.go index 2236d2a83..78e8f1e83 100644 --- a/pkg/cmd/issue/edit/edit.go +++ b/pkg/cmd/issue/edit/edit.go @@ -467,7 +467,7 @@ func applyEditParent(client *api.Client, baseRepo ghrepo.Interface, issue *api.I hostname := baseRepo.RepoHost() if parentRef == "" { - // Remove parent — use the parent's ID from the fetched issue data + // Remove parent - use the parent's ID from the fetched issue data if issue.Parent == nil { return nil // no parent to remove } diff --git a/pkg/cmd/issue/view/view.go b/pkg/cmd/issue/view/view.go index c62e43aaf..3fe8ff4a7 100644 --- a/pkg/cmd/issue/view/view.go +++ b/pkg/cmd/issue/view/view.go @@ -226,7 +226,7 @@ func printHumanIssuePreview(opts *ViewOptions, baseRepo ghrepo.Interface, issue // Header (Title and State) fmt.Fprintf(out, "%s %s#%d\n", cs.Bold(issue.Title), ghrepo.FullName(baseRepo), issue.Number) - // State line — include issue type prefix when present + // State line - include issue type prefix when present stateLine := issueStateTitleWithColor(cs, issue) if issue.IssueType != nil { stateLine = cs.Muted(issue.IssueType.Name) + " · " + stateLine