atlass 1.13.0 → 2.0.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 +38 -12
- package/dist/bitbucket.mjs +1 -1
- package/dist/{build-BblaPBOA.mjs → build-DMLlCHdF.mjs} +1535 -1001
- package/dist/cli.mjs +1 -1
- package/dist/confluence.mjs +1 -1
- package/dist/jira.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
CLI for Atlassian Cloud. Views Jira issues in the terminal, copies Jira issues
|
|
4
4
|
and Confluence pages to Markdown, pushes edits back, searches both, and shows
|
|
5
|
-
Bitbucket pipeline runs.
|
|
5
|
+
Bitbucket pipeline runs and pull requests.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -31,8 +31,8 @@ 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
33
|
Bitbucket needs its own Bitbucket-scoped token with pipeline, pull request,
|
|
34
|
-
account, and workspace read scopes, since Atlassian tokens are
|
|
35
|
-
product:
|
|
34
|
+
repository, account, and workspace read scopes, since Atlassian tokens are
|
|
35
|
+
scoped per product:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
atlass bitbucket login # prompts for workspace, default repo, and token
|
|
@@ -146,17 +146,29 @@ For both, `--json` and `--copy` work as for search.
|
|
|
146
146
|
|
|
147
147
|
```bash
|
|
148
148
|
atlass jira search "safari login"
|
|
149
|
-
atlass jira search --project PROJ --assignee me --
|
|
150
|
-
atlass jira search --
|
|
151
|
-
atlass confluence search "onboarding" --space DOCS
|
|
152
|
-
atlass confluence search --cql "label = runbook ORDER BY created DESC"
|
|
149
|
+
atlass jira search --project PROJ --assignee me --open
|
|
150
|
+
atlass jira search --status "In Progress" --status "In Review" --updated 2w
|
|
151
|
+
atlass confluence search "onboarding" --space DOCS --label runbook
|
|
153
152
|
```
|
|
154
153
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
`--
|
|
154
|
+
Jira filters on `--project`, `--assignee`, `--reporter`, `--status`, `--type`,
|
|
155
|
+
`--label`, `--updated` and `--open`; Confluence on `--space`, `--label`,
|
|
156
|
+
`--updated` and `--starred`. Repeating a flag matches any of its values;
|
|
157
|
+
different flags must all match. `--assignee` and `--reporter` take `me`, an
|
|
158
|
+
account id, or a name to look up. `--updated` takes `7d`, `2w`, `3m` or
|
|
159
|
+
`YYYY-MM-DD`. Results sort by most recently updated and use the same columns
|
|
160
|
+
as `jira list` and `confluence list`.
|
|
161
|
+
|
|
162
|
+
For anything the filters do not cover, write the query yourself:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
atlass jira jql "project = PROJ AND labels = regression ORDER BY created DESC"
|
|
166
|
+
atlass confluence cql "label = runbook AND creator = currentUser()"
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
`--limit` defaults to 25, max 100. `--json` prints machine output. Add `--copy`
|
|
170
|
+
to pick results interactively and copy each one, with `--out` as the target
|
|
171
|
+
directory. All four work on both search commands.
|
|
160
172
|
|
|
161
173
|
Discovery aids for the filters:
|
|
162
174
|
|
|
@@ -191,6 +203,8 @@ atlass bitbucket prs --all # every state
|
|
|
191
203
|
atlass bitbucket prs --reviewer me # waiting on your review
|
|
192
204
|
atlass bitbucket prs --author me --repo acme/web
|
|
193
205
|
atlass bitbucket prs --query 'destination.branch.name = "main"'
|
|
206
|
+
atlass bitbucket pr 842 # one pull request in full
|
|
207
|
+
atlass bitbucket pr https://bitbucket.org/acme/web/pull-requests/842
|
|
194
208
|
```
|
|
195
209
|
|
|
196
210
|
`prs` shows `#ID State Age Title`, most recently updated first, open only
|
|
@@ -201,6 +215,18 @@ unless `--state` or `--all` says otherwise. Drafts show as `DRAFT` in place of
|
|
|
201
215
|
involving that person. `--query` replaces them and cannot be used alongside
|
|
202
216
|
them, and it cannot mention `state`, which `--state` owns.
|
|
203
217
|
|
|
218
|
+
`pr` shows one pull request: state, branches, approvals, the description, each
|
|
219
|
+
reviewer and where they stand, the changed files with line counts, and the last
|
|
220
|
+
five comment threads, inline ones anchored to `file:line`. A thread prints as its
|
|
221
|
+
opening comment with every reply indented beneath it, a resolved one closes with
|
|
222
|
+
who resolved it, and `@` mentions read as names. `--all-comments` shows the rest,
|
|
223
|
+
`--no-pager` prints directly, and `--json` prints the whole thing.
|
|
224
|
+
|
|
225
|
+
A pull request URL carries its own workspace and repo, so `--repo` is not needed
|
|
226
|
+
alongside one. Long pull requests stop at 50 files and 200 comments. The file
|
|
227
|
+
list needs the repository read scope; without it that section says so and the
|
|
228
|
+
rest still prints.
|
|
229
|
+
|
|
204
230
|
## Development
|
|
205
231
|
|
|
206
232
|
```bash
|
package/dist/bitbucket.mjs
CHANGED