Skip to content

Migrate from Build API to Pipelines API and update to TypeScript 6 / ESLint 10 - #1

Merged
jessehouwing merged 3 commits into
masterfrom
copilot/update-dependencies-and-tools
Jun 8, 2026
Merged

Migrate from Build API to Pipelines API and update to TypeScript 6 / ESLint 10#1
jessehouwing merged 3 commits into
masterfrom
copilot/update-dependencies-and-tools

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown

Migrates YAML pipeline triggering from the deprecated Build API to the Pipelines API, as proposed in Azure/pipelines#105. Also updates the toolchain to TypeScript 6 and ESLint 10.

Pipelines API Migration

  • src/pipeline.runner.ts: Replace getBuildApi()/getDefinitions()/queueBuild() with getPipelinesApi()/listPipelines()/runPipeline()
  • src/task.parameters.ts: Add azure-pipeline-parameters input for template parameters
  • action.yml: Declare new optional input
  • Pass repository resources (branch, commit) via RunPipelineParameters.resources
  • Convert variables to Pipelines API format {key: {value: string}}
  • Designer/Release pipeline path unchanged
- uses: Azure/pipelines@v1
  with:
    azure-devops-project-url: 'https://dev.azure.com/org/project'
    azure-pipeline-name: 'my-pipeline'
    azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
    azure-pipeline-variables: '{"var1": "val1"}'
    azure-pipeline-parameters: '{"param1": "val1"}' # new: template parameters

Toolchain Updates

  • TypeScript ^5.8.3^6.0.3
  • ESLint ^9.28.0^10.4.1
  • @eslint/js^10.0.1, typescript-eslint^8.60.1, @types/jest^30.0.0
  • Add tsconfig.test.json for TS6 compatibility with ts-jest (explicit types: ["jest", "node"])
  • Add lib/ to tsconfig.json exclude (TS6 stricter overwrite check on .d.ts files)

…ript 5.x, Jest 30, ESLint 9 with TS support, remove Q dependency
- Updated typescript from ^5.8.3 to ^6.0.3
- Updated eslint from ^9.28.0 to ^10.4.1
- Updated @eslint/js from ^9.28.0 to ^10.0.1
- Updated @types/jest to ^30.0.0
- Updated typescript-eslint to ^8.60.1
- Added tsconfig.test.json for jest test compilation
- Added lib/ to tsconfig.json exclude (TypeScript 6 compatibility)
- Configured ts-jest to use tsconfig.test.json
Copilot AI changed the title Upgrade to v2.0.0: Modernize toolchain and dependencies chore: update TypeScript to v6 and ESLint to v10 Jun 8, 2026
- Replace BuildApi with PipelinesApi for YAML pipeline execution
- Use listPipelines + runPipeline instead of getDefinitions + queueBuild
- Add support for template parameters via azure-pipeline-parameters input
- Convert variables to Pipelines API format {value: string}
- Pass repository resources (branch and commit) to pipeline runs
- Add explicit pipeline existence validation by name
- Update README with new parameter documentation
- Update tests to mock Pipelines API
Copilot AI changed the title chore: update TypeScript to v6 and ESLint to v10 Migrate from Build API to Pipelines API and update to TypeScript 6 / ESLint 10 Jun 8, 2026
@jessehouwing
jessehouwing marked this pull request as ready for review June 8, 2026 12:11
@jessehouwing
jessehouwing merged commit 540a33f into master Jun 8, 2026
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.

2 participants