Skip to content

Commit

Permalink
feat: SCM support for Azure DevOps Services (#91)
Browse files Browse the repository at this point in the history
* feat: SCM support for Azure DevOps Services

* README updates
  • Loading branch information
bryceatmoderne authored Jul 25, 2024
1 parent 61e58b9 commit 00260e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ file is included in this repository.

### Mapping repositories

Edit [application.yaml](src/main/resources/application.yaml) to list all the origins (host + context path) for the SCM providers listed in the repos.csv, and provide a type: `[GITHUB,GITLAB,BITBUCKET_CLOUD,BITBUCKET]`.
Edit [application.yaml](src/main/resources/application.yaml) to list all the origins (host + context path) for the SCM providers listed in the repos.csv, and provide a type: `[GITHUB,GITLAB,BITBUCKET_CLOUD,BITBUCKET,AZURE_DEVOPS_SERVICES]`.
This will be used to split the clone url into an origin and path.

Note that for an on-premise Bitbucket (server) we should not have the `scm/` path segment in the origin or the path. This will automatically be stripped off if you configure this as explained above.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void setType(Type type) {
}

public enum Type {
GITHUB, BITBUCKET_CLOUD, GITLAB, BITBUCKET
GITHUB, BITBUCKET_CLOUD, GITLAB, BITBUCKET, AZURE_DEVOPS_SERVICES
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ moderne:
- origin: gitlab.com
type: GITLAB
- origin: https://bitbucket.example.com/stash
type: BITBUCKET
type: BITBUCKET
- origin: dev.azure.com
type: AZURE_DEVOPS_SERVICES

0 comments on commit 00260e5

Please sign in to comment.