Documentation
¶
Index ¶
- func Resolve(input string, resourceType string, client *api.Client, ...) (int, error)
- func ResolveAssignee(ctx context.Context, client *api.Client, input string) (int, error)
- func ResolveCategory(ctx context.Context, client *api.Client, input string, ...) (int, error)
- func ResolvePriority(ctx context.Context, client *api.Client, input string) (int, error)
- func ResolveProject(ctx context.Context, client *api.Client, input string) (int, string, error)
- func ResolveStatus(ctx context.Context, client *api.Client, input string) (int, error)
- func ResolveTracker(ctx context.Context, client *api.Client, input string) (int, error)
- func ResolveVersion(ctx context.Context, client *api.Client, input string, ...) (int, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(input string, resourceType string, client *api.Client, fetcher func() ([]Option, error)) (int, error)
Resolve attempts to resolve input to a numeric ID. If input is numeric, it returns the parsed int directly. Otherwise, it calls fetcher to get available options and performs case-insensitive exact matching on the name.
func ResolveAssignee ¶
ResolveAssignee resolves an assignee by "me", login/name, or numeric ID.
func ResolveCategory ¶
func ResolveCategory(ctx context.Context, client *api.Client, input string, projectIdentifier string) (int, error)
ResolveCategory resolves an issue category by name or numeric ID. projectIdentifier is required when resolving by name.
func ResolvePriority ¶
ResolvePriority resolves a priority by name or numeric ID.
func ResolveProject ¶
ResolveProject resolves a project by name/identifier or numeric ID. Returns both the numeric ID and the string identifier (needed for version resolution).
func ResolveStatus ¶
ResolveStatus resolves a status by name or numeric ID.
func ResolveTracker ¶
ResolveTracker resolves a tracker by name or numeric ID.