1
0

More than 3 years have passed since last update.

azure devopsサンプルコード

Last updated at Posted at 2020-04-05

変更セット取得のサンプルコード

C#サンプル

    Uri orgUrl = new Uri("http://hostname:8080/tfs/DefaultCollection/");
    var credentials = new WindowsCredential();
    var connection = new VssConnection(orgUrl, credentials);

    TfvcHttpClient tfvcClient = connection.GetClient<TfvcHttpClient>();
    var changes = tfvcClient.GetChangesetsAsync().Result;

    foreach (var tfvcChange in changes)
    {
        Console.WriteLine(tfvcChange.Comment);
    }

pythonサンプル

personal_access_token = 'access_token'
organization_url = 'http://hostname:8080/tfs/DefaultCollection/'

credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)

changes = tfvc_client.get_changesets()
for x in changes:
    print(x)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0