httpcat-cli 0.2.8-rc.1 → 0.2.8-rc.2

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.
@@ -96,6 +96,18 @@ jobs:
96
96
  if (context.eventName === 'push' && context.payload.before) {
97
97
  console.log(`Analyzing commits in this push (${context.payload.before}..${context.sha})...`);
98
98
  try {
99
+ // First, verify both commits exist
100
+ try {
101
+ await github.rest.repos.getCommit({
102
+ owner: context.repo.owner,
103
+ repo: context.repo.repo,
104
+ ref: context.payload.before
105
+ });
106
+ } catch (e) {
107
+ console.log(`⚠️ Base commit ${context.payload.before} not found (may have been squashed/rebased), falling back to last release`);
108
+ throw new Error(`Base commit not found: ${e.message}`);
109
+ }
110
+
99
111
  const response = await github.rest.repos.compareCommits({
100
112
  owner: context.repo.owner,
101
113
  repo: context.repo.repo,
@@ -117,7 +129,7 @@ jobs:
117
129
  }
118
130
  }
119
131
  } catch (e) {
120
- console.log(`⚠️ Could not compare commits in push, falling back to last release: ${e.message}`);
132
+ console.log(`⚠️ Could not compare commits in push (${e.message}), falling back to last release`);
121
133
  // Fallback to comparing with last release tag
122
134
  if (lastTag) {
123
135
  let baseSha;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "httpcat-cli",
3
- "version": "0.2.8-rc.1",
3
+ "version": "0.2.8-rc.2",
4
4
  "description": "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {