GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add azure devops support by olblak · Pull Request #8586 · updatecli/updatecli

Conversation

@olblak

@olblak olblak commented Apr 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fix #7090

This pull request introduces support for Azure DevOps.

  • The scm kind azuredevops can now be used to interact with Azure DevOps repositories.
  • The scm kind azuredevopssearch is a special scm plugin that allows to interact with all Azure DevOps repositories from an organization matching specific regex rules.
  • The action of kind azuredevops/pullrequest can be used to automatically open pull request on a Azure DevOps repository. This action is compatible with the scm of kind azuredevops and azuredevopssearch

When a scm is specified then Updatecli clone the repository in a temporary location and run all git operation from there.

Credentials

Credentials can be specified either using the spec parameter username and token, or using the environment variable
UPDATECLI_AZURE_DEVOPS_USERNAME and UPDATECLI_AZURE_DEVOPS_TOKEN. The token must be a Personal Access Token (PAT) with the appropriate permissions to access the repositories and create pull requests.
If the environment variable is specified, then it overrides the credentials specified in the spec parameters.

Examples

Azure DevOps repository

scms:
  default:
    kind: azuredevops
    spec:
      organization: updatecli
      project: "updatecli"
      repository: "updatecli-test"
      branch: main
      username: xxx
      token: yyy
actions:
  default:
    kind: azuredevops/pullrequest
    scmid: default

Azure DevOps Search

scms:
  azuredevops:
    kind: azuredevopssearch
    spec:
      organization: updatecli
      #project: ".*" # Optional
      #repository: ".*" # Optional
      branch: "^main$"
      username: xxx
      token: yyy

actions:
  default:
    kind: azuredevops/pullrequest
    scmid: azuredevops

Test

To test this pull request, you can run the following commands:

cd <to_package_directory>
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@olblak
feat: add azure devops support
09e0816
Signed-off-by: Olblak <[email protected]>
@olblak olblak added enhancement New feature or request scm-azuredevops labels Apr 24, 2026
@olblak
olblak marked this pull request as draft April 24, 2026 20:20
olblak added 6 commits April 25, 2026 10:02
@olblak
feat: add azuredevops e2e test
f63c5b8
Signed-off-by: Olblak <[email protected]>
@olblak
chore: add organization parameter
5cf04ae
@olblak
fix: align azure devops pr body with bitbucket
346544b
Signed-off-by: Olblak <[email protected]>
@olblak
fix: add missing test
be21b62
Signed-off-by: Olblak <[email protected]>
@olblak
fix: add missing azuredevops policy scaffold asset
e54a07a
Signed-off-by: Olblak <[email protected]>
@olblak
feat: add azuredevopssearch to update multiple repositories
18c7a65
Signed-off-by: Olblak <[email protected]>
@olblak
olblak marked this pull request as ready for review April 26, 2026 12:16
@olblak
Merge branch 'main' into issue/7090
fd0a993
@olblak
olblak requested a review from Copilot April 26, 2026 12:16
Copilot started reviewing on behalf of olblak April 26, 2026 12:16
View session
Copilot AI reviewed Apr 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Adds first-class Azure DevOps support to Updatecli by introducing an Azure DevOps SCM implementation, an azuredevopssearch SCM for repository/branch discovery, and an Azure DevOps pull request action, then wires them into the pipeline engine, JSON schema generation, scaffolding templates, and e2e configs.

Changes:

  • Introduce Azure DevOps SCM (azuredevops) plus summary helpers/tests.
  • Add Azure DevOps repo/branch discovery SCM (azuredevopssearch) with generator + tests.
  • Add Azure DevOps pull request action/resource implementation (create/exist/clean) with tests, and integrate into engine/pipeline/schema/scaffold/e2e.

Reviewed changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
pkg/plugins/scms/azuredevopssearch/main.go New azuredevopssearch SCM constructor and client wiring
pkg/plugins/scms/azuredevopssearch/spec.go azuredevopssearch spec definition + validation/sanitization
pkg/plugins/scms/azuredevopssearch/specGenerator.go Project/repo/branch discovery and spec generation
pkg/plugins/scms/azuredevopssearch/description.go Summary output for azuredevopssearch
pkg/plugins/scms/azuredevopssearch/main_test.go Tests for defaults/sanitization and invalid regex
pkg/plugins/scms/azuredevopssearch/specGenerator_test.go Tests for discovery behavior and limits
pkg/plugins/scms/azuredevops/main.go Azure DevOps SCM implementation (clone/checkout/commit/push/etc.)
pkg/plugins/scms/azuredevops/summary.go Summary formatting for Azure DevOps SCM
pkg/plugins/scms/azuredevops/summary_test.go Tests for summary formatting (incl. URL credentials stripping)
pkg/plugins/resources/azuredevops/client/main.go Azure DevOps API client (PAT connection + core/git clients)
pkg/plugins/resources/azuredevops/client/spec.go Azure DevOps client spec + URL helpers (GitURL / PullRequestURL)
pkg/plugins/resources/azuredevops/pullrequest/main.go Azure DevOps pull request action constructor + SCM inheritance
pkg/plugins/resources/azuredevops/pullrequest/spec.go Pull request action spec definition
pkg/plugins/resources/azuredevops/pullrequest/utils.go PR/branch helper logic (find PR, ref lookup, iteration checks)
pkg/plugins/resources/azuredevops/pullrequest/exist.go Action “exist” check implementation
pkg/plugins/resources/azuredevops/pullrequest/create.go PR create/update implementation and body generation
pkg/plugins/resources/azuredevops/pullrequest/clean.go Cleanup logic (close empty PRs)
pkg/plugins/resources/azuredevops/pullrequest/main_test.go Tests for action constructor + refName helper
pkg/plugins/resources/azuredevops/pullrequest/create_test.go Tests for PR body generation/merge behavior
pkg/plugins/resources/azuredevops/pullrequest/clean_test.go Tests for PR cleanup helpers (iterations/refs/head-match retry)
pkg/core/pipeline/scm/main.go Register azuredevops SCM and azuredevopssearch kind handling
pkg/core/pipeline/scm/config.go Include Azure DevOps kinds in SCM JSON schema “oneOf”
pkg/core/engine/configuration.go Expand azuredevopssearch into multiple concrete SCM pipelines
pkg/core/pipeline/action/main.go Register azuredevops/pullrequest action handler + JSON schema
pkg/core/pipeline/action/main_test.go Add validation test case for azuredevops action kind normalization
pkg/core/scaffold/assets/updatecli.d/_scm.azuredevops.yaml Add scaffold partial for Azure DevOps SCM + PR action
e2e/updatecli.d/success.d/azuredevops/scm.yaml Add e2e pipeline manifest for Azure DevOps SCM + PR action
go.mod Add Azure DevOps Go SDK dependencies
go.sum Dependency checksum updates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/core/scaffold/assets/updatecli.d/_scm.azuredevops.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/resources/azuredevops/pullrequest/utils.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread e2e/updatecli.d/success.d/azuredevops/scm.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread go.mod Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevopssearch/spec.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevopssearch/spec.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/resources/azuredevops/pullrequest/create.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/core/pipeline/action/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevopssearch/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevops/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

olblak and others added 6 commits April 26, 2026 14:27
@olblak
Merge branch 'main' into issue/7090
6afc516
@olblak
Merge branch 'main' into issue/7090
b22f5aa
@olblak
chore: go mod tidy
0019d6b
Signed-off-by: Olblak <[email protected]>
@olblak
chore: make projet and repository optional
aec2766
Don't make project and repository required on the client creation

Signed-off-by: Olblak <[email protected]>
@olblak
fix: correctly restore unsupportedCapabilities
0a0e665
Signed-off-by: Olblak <[email protected]>
@olblak
feat: support reset pullrequest description
a8e6040
Signed-off-by: Olblak <[email protected]>
@olblak
olblak requested a review from Copilot April 27, 2026 11:25
Copilot started reviewing on behalf of olblak April 27, 2026 11:26
View session
Copilot AI reviewed Apr 27, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 28 out of 29 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/plugins/scms/azuredevops/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/core/pipeline/action/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/resources/azuredevops/client/spec.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread e2e/updatecli.d/success.d/azuredevops/scm.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread e2e/updatecli.d/success.d/azuredevops/scm.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

olblak and others added 6 commits May 2, 2026 11:53
@olblak
Merge branch 'main' into issue/7090
86baf5d
@olblak
feat: allow to use global env variable to auth on azure devops
eed6796
Signed-off-by: Olblak <[email protected]>
@olblak
fix: azuredevops/pullrequest test
69bf0fa
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'main' into issue/7090
526c60a
@olblak
fix: e2e pipeline title
c9af8d8
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'issue/7090' of github.com:olblak/updatecli into issue/7090
2512001
olblak added 2 commits May 6, 2026 22:08
@olblak
fix: git capabilities reset
58ac567
Signed-off-by: Olblak <[email protected]>
@olblak
feat: allow azuredevopssearch to search all project by default
21c6f03
Signed-off-by: Olblak <[email protected]>
@olblak
olblak requested a review from Copilot May 6, 2026 20:14
Copilot started reviewing on behalf of olblak May 6, 2026 20:15
View session
Copilot AI reviewed May 6, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 29 out of 30 changed files in this pull request and generated 5 comments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/plugins/resources/azuredevops/pullrequest/create_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/core/scaffold/assets/updatecli.d/_scm.azuredevops.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevops/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/scms/azuredevopssearch/spec.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/plugins/resources/azuredevops/client/spec.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

olblak and others added 12 commits May 6, 2026 22:37
@olblak
fix: use filtercontain
0708d26
Signed-off-by: Olblak <[email protected]>
@olblak
fix: add missing organisation in scaffold config
ae41582
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'main' into issue/7090
72a0f48
@olblak
Merge branch 'main' into issue/7090
f533cb4
@olblak
doc: update README.md to mention scm
8002126
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'issue/7090' of github.com:olblak/updatecli into issue/7090
bb68d4f
@olblak
doc: remove toc
c9bebcc
Signed-off-by: Olblak <[email protected]>
@olblak
fix: e2e test
5360368
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'main' into issue/7090
0af38bc
@olblak
Fix e2e test to ignore warning: content
62519fd
Signed-off-by: Olblak <[email protected]>
@olblak
Merge branch 'issue/7090' of github.com:olblak/updatecli into issue/7090
a5da238
@olblak
fix: azurededvopssearch default env credentials
a226571
Signed-off-by: Olblak <[email protected]>
@olblak olblak mentioned this pull request May 13, 2026
doc: Add azure devops documentation updatecli/website#3100
Merged
olblak added 2 commits May 13, 2026 09:19
@olblak
feat: add missing scaffold azuredevopssearch scm
b36486b
Signed-off-by: Olblak <[email protected]>
@olblak
chore: disable e2e tests
d54609c
Signed-off-by: Olblak <[email protected]>
@olblak
olblak merged commit 742b26f into updatecli:main May 14, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement New feature or request scm-azuredevops

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Feature Request: Support Azure DevOps SCM/Action

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@olblak
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.