mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
Compare commits
3 Commits
ashwin-ant
...
v0.0.12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6e5597633 | ||
|
|
0cd44e50dd | ||
|
|
a8a36ced96 |
@@ -166,7 +166,7 @@ async function run() {
|
||||
if (Array.isArray(outputData) && outputData.length > 0) {
|
||||
const lastElement = outputData[outputData.length - 1];
|
||||
if (
|
||||
lastElement.role === "system" &&
|
||||
lastElement.type === "result" &&
|
||||
"cost_usd" in lastElement &&
|
||||
"duration_ms" in lastElement
|
||||
) {
|
||||
|
||||
@@ -9,7 +9,10 @@ export type Octokits = {
|
||||
|
||||
export function createOctokit(token: string): Octokits {
|
||||
return {
|
||||
rest: new Octokit({ auth: token }),
|
||||
rest: new Octokit({
|
||||
auth: token,
|
||||
baseUrl: GITHUB_API_URL,
|
||||
}),
|
||||
graphql: graphql.defaults({
|
||||
baseUrl: GITHUB_API_URL,
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user