Skip to content

Commit c30687d

Browse files
committed
Add MultiVCS to push policy
1 parent db7d8fa commit c30687d

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

docs/concepts/policy/push-policy/README.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ As input, Git push policy receives the following document:
348348
"mergeable": "boolean - indicates whether the PR can be merged",
349349
"title": "string",
350350
"undiverged": "boolean - indicates whether the PR is up to date with the target branch"
351-
}
351+
},
352352
"push": {
353353
// For Git push events, this contains the pushed commit.
354354
// For Pull Request events,
@@ -384,6 +384,21 @@ As input, Git push policy receives the following document:
384384
"worker_pool": {
385385
"public": "boolean - indicates whether the worker pool is public or not"
386386
}
387+
},
388+
"vcs_integration": {
389+
"id": "string - ID of the VCS integration",
390+
"name": "string - name of the VCS integration",
391+
"provider": "string - possible values are AZURE_DEVOPS, BITBUCKET_CLOUD, BITBUCKET_DATACENTER, GIT, GITHUB, GITHUB_ENTERPRISE, GITLAB",
392+
"description": "string - description of the VCS integration",
393+
"is_default": "boolean - indicates whether the VCS integration is the default one or Space-level",
394+
"space": {
395+
"id": "string",
396+
"labels": ["string"],
397+
"name": "string"
398+
},
399+
"labels": ["string - list of arbitrary, user-defined selectors"],
400+
"updated_at": "number (timestamp in nanoseconds)",
401+
"created_at": "number (timestamp in nanoseconds)"
387402
}
388403
}
389404
```
@@ -415,7 +430,7 @@ When triggered by a _new module version_, this is the schema of the data input t
415430
"name": "string - name of the worker pool, if it is private",
416431
"public": "boolean - is the worker pool public"
417432
}
418-
}
433+
},
419434
"pull_request": {
420435
"action": "string - opened, reopened, closed, merged, edited, labeled, synchronize, unlabeled",
421436
"action_initiator": "string",
@@ -429,6 +444,21 @@ When triggered by a _new module version_, this is the schema of the data input t
429444
"message": "string",
430445
"tag": "string"
431446
}
447+
},
448+
"vcs_integration": {
449+
"id": "bitbucket-for-payments-team",
450+
"name": "Bitbucket for Payments Team",
451+
"provider": "BITBUCKET_CLOUD",
452+
"description": "### Payments Team BB integration\n\nThis integration should be **only** used by the Payments Integrations team. If you need access, drop [Joe](https://mycorp.slack.com/users/432JOE435) a message on Slack.",
453+
"is_default": false,
454+
"labels": ["bitbucketcloud", "paymentsorg"],
455+
"space": {
456+
"id": "paymentsteamspace-01HN0BF3GMYZQ4NYVNQ1RKQ9M7",
457+
"labels": [],
458+
"name": "PaymentsTeamSpace"
459+
},
460+
"created_at": 1706187931079960000,
461+
"updated_at": 1706274820310231000
432462
}
433463
}
434464
```

0 commit comments

Comments
 (0)