Create and manage Azure DevOps Pull Requests without leaving your IDE
If you are upgrading from Azure DevOps Integration 1.x to 2.x and you use the new sign-in location (Tools → Azure DevOps Accounts), you may see one or more accounts listed that appear to be non-functional. These are likely leftover accounts created by the old manual Personal Access Token (PAT) authentication and are missing refresh tokens required by the new OAuth 2.0 flow.
- Why this happens: old PAT-based accounts do not include a refresh token, so the new OAuth-based flow cannot refresh them and they will not work correctly.
- Recommended action: open Tools → Azure DevOps Accounts, remove any existing accounts that came from the previous 1.x authentication, then sign in again using the new OAuth 2.0 sign-in (Tools → Azure DevOps Accounts → Sign In). This ensures tokens are stored with refresh capability and will be maintained automatically.
- If you must keep PATs: re-add them intentionally and understand they do not support refresh tokens and may expire.
Please perform this cleanup before using the new authentication features to avoid broken accounts and unexpected authentication failures.
|
|
|
|
# 1. Clone from Azure DevOps with OAuth
File → New → Project from Version Control → Azure DevOps
→ Sign in with Browser → Clone repository
# 2. Or clone manually and open
git clone https://dev.azure.com/mycompany/MyProject/_git/my-repo
# 3. Start creating PRs! 🎉- Open IDE → Settings → Plugins
- Search for "Azure DevOps Integration"
- Click Install and restart IDE
# Clone the repository
git clone https://github.com/paol0b/azuredevops-plugin.git
cd azuredevops-plugin
# Build
./gradlew buildPlugin
# Run in IDE sandbox
./gradlew runIde
# Test
./gradlew test- Kotlin: 2.1.0
- IntelliJ Platform: 2025.1
- Gson: 2.11.0 (for JSON parsing)
- Git4Idea: Plugin bundled
- POST
/git/repositories/{repositoryId}/pullrequests- Create PR - GET
/git/repositories/{repositoryId}- Verify connection
Documentation: Azure DevOps REST API Reference
Happy coding! 🚀