Skip to content

Commit 2037401

Browse files
Copilotewega
andcommitted
docs: restore lost Bitbucket content and fix configure-scope.md for clean merge with main
Co-authored-by: ewega <26189114+ewega@users.noreply.github.com>
1 parent 10aa051 commit 2037401

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

docs/configure-scope.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ gh devlake configure scope add [flags]
3232

3333
| Flag | Default | Description |
3434
|------|---------|-------------|
35-
| `--plugin` | *(interactive or required)* | Plugin slug: `github`, `gh-copilot`, `jenkins`, `gitlab`, `bitbucket`, `jira`, `sonarqube`, `azuredevops_go` (alias `azure-devops`) |
35+
| `--plugin` | *(interactive or required)* | Plugin slug: `github`, `gitlab`, `bitbucket`, `gh-copilot`, `jenkins`, `jira`, `sonarqube`, `azuredevops_go` (alias `azure-devops`) |
3636
| `--connection-id` | *(auto-detected)* | Override the connection ID to scope |
37-
| `--org` | *(plugin-dependent)* | Organization identifier. For GitHub/Copilot: GitHub org slug. For GitLab: group path. For Azure DevOps: organization name (required). |
38-
| `--enterprise` | | Enterprise slug (enables enterprise-level Copilot metrics) |
39-
| `--repos` | | Comma-separated repos to add (`owner/repo,owner/repo2`) |
40-
| `--repos-file` | | Path to a file with repos (one `owner/repo` per line) |
37+
| `--org` | *(plugin-dependent)* | Org/workspace slug (`github`, `gitlab` group path, `bitbucket` workspace, `azuredevops_go` org). Required for plugins whose connection definition needs an org (for example, Azure DevOps) or when running non-interactively; optional in interactive mode for plugins that support workspace discovery (for example, Bitbucket). |
38+
| `--enterprise` | | Enterprise slug (enables enterprise-level Copilot metrics) |
39+
| `--repos` | | Comma-separated repos to add (`owner/repo` for GitHub, `group/project` for GitLab, `workspace/repo-slug` for Bitbucket) |
40+
| `--repos-file` | | Path to a file with repos (one per line: `owner/repo` for GitHub, `group/project` for GitLab, `workspace/repo-slug` for Bitbucket) |
4141
| `--jobs` | | Comma-separated Jenkins job full names |
4242
| `--deployment-pattern` | `(?i)deploy` | Regex matching CI/CD workflow names for deployments |
4343
| `--production-pattern` | `(?i)prod` | Regex matching environment names for production |
@@ -83,6 +83,9 @@ gh devlake configure scope add --plugin github --org my-org \
8383
# Interactive repo selection (omit --repos)
8484
gh devlake configure scope add --plugin github --org my-org
8585

86+
# Bitbucket repos (interactive remote-scope picker)
87+
gh devlake configure scope add --plugin bitbucket --org my-workspace
88+
8689
# Add Copilot org scope
8790
gh devlake configure scope add --plugin gh-copilot --org my-org
8891

@@ -109,6 +112,12 @@ gh devlake configure scope add
109112
3. Creates or reuses a DORA scope config (deployment/production patterns, incident label)
110113
4. Calls `PUT /plugins/github/connections/{id}/scopes` to add repos
111114

115+
### What It Does (Bitbucket)
116+
117+
1. Resolves workspaces and repos via the DevLake remote-scope API (interactive picker when `--repos` is omitted)
118+
2. Accepts repo slugs from `--repos` / `--repos-file` (`workspace/repo-slug`)
119+
3. Calls `PUT /plugins/bitbucket/connections/{id}/scopes` with `bitbucketId` = `workspace/repo-slug`
120+
112121
### What It Does (Copilot)
113122

114123
1. Computes scope ID from org + enterprise: `enterprise/org`, `enterprise`, or `org`

0 commit comments

Comments
 (0)