atlass 1.10.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
@@ -97,6 +98,31 @@ body sent is everything between the H1 and `## Comments`.
97
98
  - Confluence uploads local images referenced in the body as attachments. Jira
98
99
  update does not support image changes yet.
99
100
 
101
+ ## Create
102
+
103
+ ```bash
104
+ atlass jira create # prompts for everything
105
+ atlass jira create BSC Bug --summary "Login loops" --priority High --label auth
106
+ atlass jira create BSC Task -s "Rotate keys" --description-file notes.md --assignee me
107
+ atlass jira create BSC Defect -s "..." --component API --field severity=S2 --dry-run
108
+ atlass jira fields BSC # issue types you can create
109
+ atlass jira fields BSC Defect # the create form for one type
110
+ ```
111
+
112
+ With no field flags on a terminal, `create` walks through the create screen:
113
+ required fields, a pick list of optional ones, then a review and confirm.
114
+ Multi-line fields open `$EDITOR` for Markdown.
115
+
116
+ Any field flag, `--no-input`, or a non-terminal switches to strict mode:
117
+ nothing is prompted, and the command fails before creating anything if a
118
+ required field is missing, a value is not allowed, or a field is not on the
119
+ create screen. `--field NAME=VALUE` takes the display name or id. Multi-value
120
+ fields take commas or repeated flags; cascading selects take `Parent > Child`;
121
+ assignees take `me`, an account id, or a name matching one assignable user.
122
+
123
+ `--dry-run` prints the resolved payload. `--json` prints the created key, id,
124
+ and URL. `jira fields` shows what each field expects.
125
+
100
126
  ## List
101
127
 
102
128
  ```bash
@@ -139,7 +165,13 @@ atlass jira projects [query]
139
165
  atlass jira statuses [query] [--project PROJ]
140
166
  ```
141
167
 
142
- ## 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
143
175
 
144
176
  ```bash
145
177
  atlass bitbucket pipelines # recent runs for the default repo
@@ -147,8 +179,27 @@ atlass bitbucket pipelines --repo acme/web
147
179
  atlass bitbucket pipeline 124 # one run and its steps
148
180
  ```
149
181
 
150
- `--repo` takes `workspace/slug` or a bare slug under the configured workspace.
151
- `--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.
152
203
 
153
204
  ## Development
154
205
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as buildStandalone, r as fail } from "./build-Colq1d4N.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