@d3lm/pr-stats 0.2.18 → 0.2.19

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.
@@ -19,9 +19,9 @@
19
19
  <key>CFBundlePackageType</key>
20
20
  <string>APPL</string>
21
21
  <key>CFBundleShortVersionString</key>
22
- <string>0.2.18</string>
22
+ <string>0.2.19</string>
23
23
  <key>CFBundleVersion</key>
24
- <string>0.2.18</string>
24
+ <string>0.2.19</string>
25
25
  <key>LSMinimumSystemVersion</key>
26
26
  <string>13.0</string>
27
27
  <key>LSUIElement</key>
package/dist/tui-app.mjs CHANGED
@@ -3377,6 +3377,9 @@ async function searchPrsViaApi({ user, sinceIso, repos, includeDrafts, mode }) {
3377
3377
  authored: "author"
3378
3378
  }[mode];
3379
3379
  const terms = ["type:pr", `${qualifier}:${user}`, `created:>=${sinceIso}`];
3380
+ if (mode !== "authored") {
3381
+ terms.push(`-author:${user}`);
3382
+ }
3380
3383
  if (!includeDrafts) {
3381
3384
  terms.push("draft:false");
3382
3385
  }
@@ -3433,6 +3436,9 @@ async function searchPrs({ user, sinceIso, repos, includeDrafts, mode }) {
3433
3436
  for (const repo of repos) {
3434
3437
  args.push("--repo", repo);
3435
3438
  }
3439
+ if (mode !== "authored") {
3440
+ args.push("--", `-author:${user}`);
3441
+ }
3436
3442
  return JSON.parse(await gh(args));
3437
3443
  }
3438
3444
  async function fetchPrDetails(prs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3lm/pr-stats",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "GitHub PR stats in an interactive terminal UI, via the gh CLI or an access token",
5
5
  "type": "module",
6
6
  "author": "Dominic Elm",