atlass 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,8 +30,9 @@ atlass auth logout
30
30
  Site and email go in `~/.config/atlass/config.json`. The token goes in the OS
31
31
  keyring. One account at a time.
32
32
 
33
- Bitbucket needs its own Bitbucket-scoped token with pipeline and workspace read
34
- scopes, since Atlassian tokens are scoped per product:
33
+ Bitbucket needs its own Bitbucket-scoped token with pipeline, pull request,
34
+ account, and workspace read scopes, since Atlassian tokens are scoped per
35
+ product:
35
36
 
36
37
  ```bash
37
38
  atlass bitbucket login # prompts for workspace, default repo, and token
@@ -164,7 +165,13 @@ atlass jira projects [query]
164
165
  atlass jira statuses [query] [--project PROJ]
165
166
  ```
166
167
 
167
- ## Bitbucket pipelines
168
+ ## Bitbucket
169
+
170
+ `--repo` takes `workspace/slug` or a bare slug under the configured workspace,
171
+ and defaults to the repo set at login. `--limit` and `--json` work as for
172
+ search.
173
+
174
+ ### Pipelines
168
175
 
169
176
  ```bash
170
177
  atlass bitbucket pipelines # recent runs for the default repo
@@ -172,8 +179,27 @@ atlass bitbucket pipelines --repo acme/web
172
179
  atlass bitbucket pipeline 124 # one run and its steps
173
180
  ```
174
181
 
175
- `--repo` takes `workspace/slug` or a bare slug under the configured workspace.
176
- `--limit` and `--json` work as for search.
182
+ `pipelines` shows runs as `#NUM Status Age ref (commit) · duration`, newest
183
+ first. `pipeline` adds the trigger, the creator, and the steps.
184
+
185
+ ### Pull requests
186
+
187
+ ```bash
188
+ atlass bitbucket prs # open PRs on the default repo
189
+ atlass bitbucket prs --state merged --limit 10
190
+ atlass bitbucket prs --all # every state
191
+ atlass bitbucket prs --reviewer me # waiting on your review
192
+ atlass bitbucket prs --author me --repo acme/web
193
+ atlass bitbucket prs --query 'destination.branch.name = "main"'
194
+ ```
195
+
196
+ `prs` shows `#ID State Age Title`, most recently updated first, open only
197
+ unless `--state` or `--all` says otherwise. Drafts show as `DRAFT` in place of
198
+ `OPEN`.
199
+
200
+ `--author` and `--reviewer` combine with OR, so passing both lists everything
201
+ involving that person. `--query` replaces them and cannot be used alongside
202
+ them, and it cannot mention `state`, which `--state` owns.
177
203
 
178
204
  ## Development
179
205
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as buildStandalone, r as fail } from "./build-wKtbjBhd.mjs";
2
+ import { n as buildStandalone, r as fail } from "./build-2A5pjMrK.mjs";
3
3
  //#region src/bitbucket.ts
4
4
  buildStandalone("bitbucket").parseAsync().catch(fail);
5
5
  //#endregion