Skip to content

Conversation

Copy link

Copilot AI commented Jul 8, 2025

The Azure DevOps AI Pipeline task was failing at runtime due to missing required inputs that were not documented in the task definition. The task requires proper Azure DevOps REST API URL construction which needs an organization parameter and API version.

Problem

Users reported that the task requires undocumented inputs like azureApiVersion and azureOrganization. The current URL construction was incomplete:

Current: https://dev.azure.com/test-project/_apis/build/builds/123/Timeline
Required: https://dev.azure.com/my-org/test-project/_apis/build/builds/123/Timeline?api-version=7.0

Solution

  • Added azureOrganization (required) - The Azure DevOps organization name needed for proper API URL construction
  • Added azureApiVersion (optional, defaults to "7.0") - The Azure DevOps REST API version parameter
  • Fixed azureHost requirement - Now properly optional with correct default value
  • Updated URL construction to include organization and api-version parameters
  • Updated documentation with correct YAML examples showing all required inputs

Changes Made

  1. task.json: Added new input definitions with proper validation
  2. index.ts: Updated input handling and URL construction logic
  3. overview.md: Fixed YAML example to include new required inputs
  4. Build configuration: Added proper TypeScript configuration

Example Usage

- task: ai-pipeline@1
  inputs:
    openAiApiKey: $(OPENAI_API_KEY)
    projectId: $(System.TeamProjectId)
    buildId: $(Build.BuildId)
    azureToken: $(System.AccessToken)
    azureOrganization: my-organization  # Now documented and required
    azureApiVersion: "7.0"              # Now documented and optional

Fixes #35.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Copilot AI changed the title [WIP] Undocumented inputs required Add missing azureOrganization and azureApiVersion inputs to fix undocumented requirements Jul 8, 2025
Copilot AI requested a review from antoniobergas July 8, 2025 07:10
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.

Undocumented inputs required

2 participants