docs: drop planning IDs from code comments

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:33:45 +02:00
1 parent 2c17f374cb
commit 1fa954b74b
5 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -203,14 +203,14 @@ func NewRoot(deps Dependencies) *cobra.Command {
return root return root
} }
// rootGroups places the core and Actions commands in their root help groups (D26); every other // rootGroups places the core and Actions commands in their root help groups; every other
// command is additional. // command is additional.
var rootGroups = map[string]string{ var rootGroups = map[string]string{
"auth": "core", "issue": "core", "org": "core", "pr": "core", "release": "core", "repo": "core", "auth": "core", "issue": "core", "org": "core", "pr": "core", "release": "core", "repo": "core",
"run": "actions", "secret": "actions", "variable": "actions", "workflow": "actions", "run": "actions", "secret": "actions", "variable": "actions", "workflow": "actions",
} }
// verbAliases are the gh-style short names that every command with a common verb accepts (D6). // verbAliases are the gh-style short names that every command with a common verb accepts.
// Commands add other gh verbs, such as new, co, add and get, to their own Aliases. // Commands add other gh verbs, such as new, co, add and get, to their own Aliases.
var verbAliases = map[string]string{"list": "ls", "delete": "rm"} var verbAliases = map[string]string{"list": "ls", "delete": "rm"}
@@ -227,7 +227,7 @@ func addVerbAliases(cmd *cobra.Command) {
} }
// acceptPlurals lets the flags of cmd be named in the plural, such as --add-labels for the gh name // acceptPlurals lets the flags of cmd be named in the plural, such as --add-labels for the gh name
// --add-label (D8), without showing the plural in help. // --add-label, without showing the plural in help.
func acceptPlurals(cmd *cobra.Command) { func acceptPlurals(cmd *cobra.Command) {
names := map[string]bool{} names := map[string]bool{}
cmd.Flags().VisitAll(func(flag *pflag.Flag) { names[flag.Name] = true }) cmd.Flags().VisitAll(func(flag *pflag.Flag) { names[flag.Name] = true })
+1 -1
View File
@@ -161,7 +161,7 @@ $ tea pr checkout 13 --update`
return cmd return cmd
} }
// checkoutBranchName names the local branch for a pull request (D13): its head branch name when // checkoutBranchName names the local branch for a pull request: its head branch name when
// that is free or already at the head, else OWNER/BRANCH for a fork, else pr/NUMBER. A branch that // that is free or already at the head, else OWNER/BRANCH for a fork, else pr/NUMBER. A branch that
// an earlier checkout of the same pull request created is reused, so that --update can advance it. // an earlier checkout of the same pull request created is reused, so that --update can advance it.
func (a *application) checkoutBranchName(ctx context.Context, t target, pull services.Pull) string { func (a *application) checkoutBranchName(ctx context.Context, t target, pull services.Pull) string {
+1 -1
View File
@@ -528,7 +528,7 @@ type metadataFlags struct {
} }
// register adds the flags under their gh names, --add-label and so on, and keeps the plural // register adds the flags under their gh names, --add-label and so on, and keeps the plural
// names working (D8). // names working.
func (f *metadataFlags) register(cmd *cobra.Command) { func (f *metadataFlags) register(cmd *cobra.Command) {
flags := cmd.Flags() flags := cmd.Flags()
flags.StringSliceVar(&f.addLabels, "add-label", nil, "Add labels by `name`; prefix repo: or org: to disambiguate") flags.StringSliceVar(&f.addLabels, "add-label", nil, "Add labels by `name`; prefix repo: or org: to disambiguate")
+2 -2
View File
@@ -19,13 +19,13 @@ func (s Labels) Scope() string {
return s.Repository return s.Repository
} }
// finder addresses the labels of the scope by ID or name (D10); byName matches numeric values as // finder addresses the labels of the scope by ID or name; byName matches numeric values as
// names only. // names only.
func (s Labels) finder(byName bool) NameOrID[Label] { func (s Labels) finder(byName bool) NameOrID[Label] {
return NameOrID[Label]{Kind: "label", Scope: s.Scope(), ID: func(l Label) int64 { return l.ID }, Name: func(l Label) string { return l.Name }, ByName: byName} return NameOrID[Label]{Kind: "label", Scope: s.Scope(), ID: func(l Label) int64 { return l.ID }, Name: func(l Label) string { return l.Name }, ByName: byName}
} }
// Find returns the labels of the scope that raws address, each by ID or name (D10); byName matches // Find returns the labels of the scope that raws address, each by ID or name; byName matches
// numeric values as names only. // numeric values as names only.
func (s Labels) Find(ctx context.Context, raws []string, byName bool) ([]Label, error) { func (s Labels) Find(ctx context.Context, raws []string, byName bool) ([]Label, error) {
items, err := s.All(ctx) items, err := s.All(ctx)
+1 -1
View File
@@ -14,7 +14,7 @@ func (s Milestones) All(ctx context.Context) ([]Milestone, error) {
} }
// Find returns the milestones that raws address among the open and closed milestones, each by ID // Find returns the milestones that raws address among the open and closed milestones, each by ID
// or title (D10); byName matches numeric values as titles only. // or title; byName matches numeric values as titles only.
func (s Milestones) Find(ctx context.Context, raws []string, byName bool) ([]Milestone, error) { func (s Milestones) Find(ctx context.Context, raws []string, byName bool) ([]Milestone, error) {
items, err := s.All(ctx) items, err := s.All(ctx)
if err != nil { if err != nil {