@stacksjs/buddy 0.70.143 → 0.70.144

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.
@@ -1,2 +1,3 @@
1
1
  import type { CLI } from '@stacksjs/types';
2
2
  export declare function release(buddy: CLI): void;
3
+ export declare function resolveGitHubActionsUrl(remoteUrl?: string, repository?: unknown, serverUrl?: unknown): string;
@@ -1,3 +1,4 @@
1
+ import { execFileSync } from "node:child_process";
1
2
  import process from "node:process";
2
3
  import { runAction } from "@stacksjs/actions";
3
4
  import { intro, italic, log, onUnknownSubcommand, outro } from "@stacksjs/cli";
@@ -24,7 +25,18 @@ export function release(buddy) {
24
25
  startTime,
25
26
  useSeconds: !0
26
27
  });
27
- log.info(`Follow along: ${italic("https://github.com/stacksjs/stacks/actions")}`);
28
+ log.info(`Follow along: ${italic(resolveGitHubActionsUrl(readOriginRemote()))}`);
28
29
  });
29
30
  onUnknownSubcommand(buddy, "release");
30
31
  }
32
+ export function resolveGitHubActionsUrl(remoteUrl, repository = process.env.GITHUB_REPOSITORY, serverUrl = process.env.GITHUB_SERVER_URL ?? "https://github.com") {
33
+ const repo = repository?.trim() || remoteUrl?.trim().match(/github\.com[/:]([^/\s]+\/[^/\s]+?)(?:\.git)?$/)?.[1];
34
+ return repo ? `${serverUrl.replace(/\/$/, "")}/${repo}/actions` : "https://github.com/stacksjs/stacks/actions";
35
+ }
36
+ function readOriginRemote() {
37
+ try {
38
+ return execFileSync("git", ["config", "--get", "remote.origin.url"], { encoding: "utf8" }).trim();
39
+ } catch {
40
+ return;
41
+ }
42
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.143",
5
+ "version": "0.70.144",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -92,51 +92,51 @@
92
92
  "prepublishOnly": "bun run build"
93
93
  },
94
94
  "dependencies": {
95
- "@stacksjs/actions": "^0.70.143",
96
- "@stacksjs/ai": "^0.70.143",
97
- "@stacksjs/alias": "^0.70.143",
98
- "@stacksjs/arrays": "^0.70.143",
99
- "@stacksjs/auth": "^0.70.143",
100
- "@stacksjs/build": "^0.70.143",
101
- "@stacksjs/cache": "^0.70.143",
102
- "@stacksjs/cli": "^0.70.143",
95
+ "@stacksjs/actions": "^0.70.144",
96
+ "@stacksjs/ai": "^0.70.144",
97
+ "@stacksjs/alias": "^0.70.144",
98
+ "@stacksjs/arrays": "^0.70.144",
99
+ "@stacksjs/auth": "^0.70.144",
100
+ "@stacksjs/build": "^0.70.144",
101
+ "@stacksjs/cache": "^0.70.144",
102
+ "@stacksjs/cli": "^0.70.144",
103
103
  "@stacksjs/clapp": "^0.2.10",
104
- "@stacksjs/cloud": "^0.70.143",
105
- "@stacksjs/collections": "^0.70.143",
106
- "@stacksjs/config": "^0.70.143",
107
- "@stacksjs/database": "^0.70.143",
108
- "@stacksjs/desktop": "^0.70.143",
109
- "@stacksjs/dns": "^0.70.143",
110
- "@stacksjs/email": "^0.70.143",
111
- "@stacksjs/enums": "^0.70.143",
112
- "@stacksjs/error-handling": "^0.70.143",
113
- "@stacksjs/events": "^0.70.143",
114
- "@stacksjs/git": "^0.70.143",
104
+ "@stacksjs/cloud": "^0.70.144",
105
+ "@stacksjs/collections": "^0.70.144",
106
+ "@stacksjs/config": "^0.70.144",
107
+ "@stacksjs/database": "^0.70.144",
108
+ "@stacksjs/desktop": "^0.70.144",
109
+ "@stacksjs/dns": "^0.70.144",
110
+ "@stacksjs/email": "^0.70.144",
111
+ "@stacksjs/enums": "^0.70.144",
112
+ "@stacksjs/error-handling": "^0.70.144",
113
+ "@stacksjs/events": "^0.70.144",
114
+ "@stacksjs/git": "^0.70.144",
115
115
  "@stacksjs/gitit": "^0.2.5",
116
- "@stacksjs/health": "^0.70.143",
116
+ "@stacksjs/health": "^0.70.144",
117
117
  "@stacksjs/dnsx": "^0.2.3",
118
118
  "@stacksjs/httx": "^0.1.10",
119
- "@stacksjs/lint": "^0.70.143",
120
- "@stacksjs/logging": "^0.70.143",
121
- "@stacksjs/notifications": "^0.70.143",
122
- "@stacksjs/objects": "^0.70.143",
123
- "@stacksjs/orm": "^0.70.143",
124
- "@stacksjs/path": "^0.70.143",
125
- "@stacksjs/payments": "^0.70.143",
126
- "@stacksjs/realtime": "^0.70.143",
127
- "@stacksjs/router": "^0.70.143",
119
+ "@stacksjs/lint": "^0.70.144",
120
+ "@stacksjs/logging": "^0.70.144",
121
+ "@stacksjs/notifications": "^0.70.144",
122
+ "@stacksjs/objects": "^0.70.144",
123
+ "@stacksjs/orm": "^0.70.144",
124
+ "@stacksjs/path": "^0.70.144",
125
+ "@stacksjs/payments": "^0.70.144",
126
+ "@stacksjs/realtime": "^0.70.144",
127
+ "@stacksjs/router": "^0.70.144",
128
128
  "@stacksjs/rpx": "^0.11.29",
129
- "@stacksjs/search-engine": "^0.70.143",
130
- "@stacksjs/security": "^0.70.143",
131
- "@stacksjs/server": "^0.70.143",
132
- "@stacksjs/storage": "^0.70.143",
133
- "@stacksjs/strings": "^0.70.143",
134
- "@stacksjs/testing": "^0.70.143",
135
- "@stacksjs/tunnel": "^0.70.143",
136
- "@stacksjs/types": "^0.70.143",
137
- "@stacksjs/ui": "^0.70.143",
138
- "@stacksjs/utils": "^0.70.143",
139
- "@stacksjs/validation": "^0.70.143",
129
+ "@stacksjs/search-engine": "^0.70.144",
130
+ "@stacksjs/security": "^0.70.144",
131
+ "@stacksjs/server": "^0.70.144",
132
+ "@stacksjs/storage": "^0.70.144",
133
+ "@stacksjs/strings": "^0.70.144",
134
+ "@stacksjs/testing": "^0.70.144",
135
+ "@stacksjs/tunnel": "^0.70.144",
136
+ "@stacksjs/types": "^0.70.144",
137
+ "@stacksjs/ui": "^0.70.144",
138
+ "@stacksjs/utils": "^0.70.144",
139
+ "@stacksjs/validation": "^0.70.144",
140
140
  "@stacksjs/ts-cloud": "^0.7.47"
141
141
  },
142
142
  "devDependencies": {