Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add Azure DevOps integration #20202

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft

WIP: Add Azure DevOps integration #20202

wants to merge 21 commits into from

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Sep 11, 2024

Description

Related Issue(s)

Fixes ENT-552

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@roboquat roboquat added size/XXL and removed size/L labels Sep 12, 2024
@mustard-mh mustard-mh changed the title WIP WIP WIP: Add Azure DevOps integration Sep 13, 2024
@@ -14,20 +14,27 @@ type CreateAuthProviderArgs = {
clientId: string;
clientSecret: string;
userId: string;
authorizationUrl?: string;
tokenUrl?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Some (minimal) comment on what those fields are would be ๐Ÿ…

export type Status = "pending" | "verified";
export interface OAuth2CustomConfig {
Copy link
Member

Choose a reason for hiding this comment

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

Or maybe here would be a better place for those comments.
Although, now that I see the name of the shape, it's 95% self-explanatory ๐Ÿ˜†

@@ -14,7 +14,7 @@ plugins:
- module=github.com/gitpod-io/gitpod/components/public-api/go
- name: protoc-proxy-gen
out: go
path: /workspace/go/bin/protoc-proxy-gen
path: /root/go-packages/bin/protoc-proxy-gen
Copy link
Member

Choose a reason for hiding this comment

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

This is different between next and now config IIRC. We should align that in the image. ๐Ÿ˜ฌ

@geropl
Copy link
Member

geropl commented Sep 16, 2024

Awesome work @mustard-mh ! ๐Ÿงก
Did not test (yet), but this looks really complete already. ๐Ÿ
Have a great week off, and see you next week ๐Ÿ‘‹

@@ -337,6 +385,9 @@ const RedirectUrlDescription: FunctionComponent<RedirectUrlDescriptionProps> = (
case AuthProviderType.BITBUCKET_SERVER:
docsUrl = "https://www.gitpod.io/docs/configure/authentication/bitbucket-server";
break;
case AuthProviderType.AZURE_DEVOPS:
docsUrl = "https://www.gitpod.io/docs/configure/authentication/azure-devops";