Use Azure owner in URL for missing token error message #1854
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
news
entryToday I ran
conda smithy register-ci
on a new computer which didn't yet have~/.conda-smithy/azure.token
. It sent me to the URL https://dev.azure.com/conda-forge/_usersSettings/tokens, which I don't have access to. I need to use my Azure account name, ie https://dev.azure.com/jdblischak/_usersSettings/tokensThe
owner
is defined earlier incli.py
, so I inserted it into the error messageconda-smithy/conda_smithy/cli.py
Line 317 in e296d0d
Then I confirmed it works as expected
There is an earlier error message without the helpful URL in
azure_ci_utils.py
conda-smithy/conda_smithy/azure_ci_utils.py
Lines 50 to 53 in e296d0d
I was going to update that error message to also include the URL, but then I saw that the URL was purposefully omitted in the original commit (1f6dabe) that added both of these error messages, so I left it alone
Also I confirmed that
AZURE_ORG_OR_USER
has no effect on this error message. It only determines whether or not it can successfully query Azure DevopsAlso I looked at the other URLs to create tokens for the other CI services, but none of them include the user/org