Loading
feat(release): explain why CI_JOB_TOKEN can't close milestones
What does this MR do?
When glab release create --milestone is authenticated with a CI_JOB_TOKEN, closing the milestone fails with a bare 401 Unauthorized. A job token can't access the Milestones API, so this can't work.
On a 401 or 403 while closing a milestone, glab now explains the cause and suggests a project or group access token, or --no-close-milestone. The command's help text says the same.
Exit behavior is unchanged: the release still succeeds and the error is logged.
Closes #8644 (closed)