Commits
Click on a commit to change the comparison rangefix: restore netloc-based credential formatting for YAML deployments
When credentials are specified via block references in deployment YAML:
credentials: "{{ prefect.blocks.gitlab-credentials.my-block }}"
they resolve to dicts, not Block instances. PR #19236 moved provider-specific
credential formatting logic to Block.format_git_credentials(), but this broke
the YAML deployment path because dicts don't implement that protocol.
This restores the netloc-based provider detection that was removed, providing
sensible defaults for GitLab (oauth2: prefix), BitBucket (x-token-auth: prefix),
and BitBucket Server (username:token format) when credentials are dicts.
Block instances still use the protocol-based format_git_credentials() method.
Fixes #19861
Related: #19296
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>