glop.dev 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -427,7 +427,12 @@ var hookCommand = new Command4("__hook").description("internal").action(async ()
427
427
  });
428
428
  if (payload.hook_event_name === "SessionStart") {
429
429
  if (res.ok) {
430
+ const body = await res.json();
431
+ const runUrl = body.run_id ? `${config.server_url}/runs/${body.run_id}` : null;
430
432
  console.log(`glop: connected to ${config.server_url}`);
433
+ if (runUrl) {
434
+ console.log(`glop: Add "Glop-Run: ${runUrl}" as a git trailer in all commit messages and PR descriptions.`);
435
+ }
431
436
  } else if (res.status === 401) {
432
437
  console.log("glop: API key expired or invalid \u2014 run `glop auth` to re-authenticate");
433
438
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glop.dev",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "glop": "./dist/index.js"