Skip to content

fix: align Jira token pre-check with actual token resolution#981

Open
anotherGoogleFan wants to merge 1 commit intoankitpokhrel:mainfrom
anotherGoogleFan:fix_check_jira_token
Open

fix: align Jira token pre-check with actual token resolution#981
anotherGoogleFan wants to merge 1 commit intoankitpokhrel:mainfrom
anotherGoogleFan:fix_check_jira_token

Conversation

@anotherGoogleFan
Copy link
Copy Markdown

Summary

  • centralize token lookup in api.GetAPIToken
  • reuse that helper in the root pre-check so config file api_token is treated as a valid credential source
  • remove duplicated token source checks from root.go

Testing

  • go test ./internal/cmd/root ./api

Notes

  • Full go test ./... still has an existing unrelated failure in pkg/tui (TestGetPager) in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant