Compare commits
No commits in common. "c1fd0c8d7d467a7a78ad0c4e10769f25e17b4820" and "3325f0945d4e0a21735d19febcd062c731711ad8" have entirely different histories.
c1fd0c8d7d
...
3325f0945d
@ -3,14 +3,10 @@
|
|||||||
"PostToolUse": [
|
"PostToolUse": [
|
||||||
{
|
{
|
||||||
"matcher": "Write|Edit",
|
"matcher": "Write|Edit",
|
||||||
"hooks": [
|
|
||||||
{
|
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"command": "bash -c 'if [ -f Cargo.toml ]; then if command -v cargo-nextest >/dev/null 2>&1; then cargo nextest run 2>&1; else cargo test 2>&1; fi; fi'",
|
"command": "bash -c 'if [ -f Cargo.toml ]; then if command -v cargo-nextest >/dev/null 2>&1; then cargo nextest run 2>&1; else cargo test 2>&1; fi; fi'",
|
||||||
"timeout": 120
|
"timeout": 120
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
18
.drone.yml
18
.drone.yml
@ -32,7 +32,8 @@ steps:
|
|||||||
else COLOR="red"; fi
|
else COLOR="red"; fi
|
||||||
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
|
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
|
||||||
- |
|
- |
|
||||||
CONTENT=$(base64 -w 0 coverage.svg)
|
ls -la coverage.svg
|
||||||
|
CONTENT=$(openssl base64 -in coverage.svg -A)
|
||||||
echo "Content length: ${#CONTENT}"
|
echo "Content length: ${#CONTENT}"
|
||||||
SHA_RESP=$(curl -s \
|
SHA_RESP=$(curl -s \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
@ -44,21 +45,16 @@ steps:
|
|||||||
PAYLOAD=$(jq -n --arg msg "ci: update coverage badge [CI SKIP]" \
|
PAYLOAD=$(jq -n --arg msg "ci: update coverage badge [CI SKIP]" \
|
||||||
--arg content "$CONTENT" --arg sha "$SHA" --arg branch "master" \
|
--arg content "$CONTENT" --arg sha "$SHA" --arg branch "master" \
|
||||||
'{message: $msg, content: $content, sha: $sha, branch: $branch}')
|
'{message: $msg, content: $content, sha: $sha, branch: $branch}')
|
||||||
|
else
|
||||||
|
PAYLOAD=$(jq -n --arg msg "ci: add coverage badge [CI SKIP]" \
|
||||||
|
--arg content "$CONTENT" --arg branch "master" \
|
||||||
|
'{message: $msg, content: $content, branch: $branch}')
|
||||||
|
fi
|
||||||
RESPONSE=$(curl -s -X PUT \
|
RESPONSE=$(curl -s -X PUT \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/contents/badges/coverage.svg" \
|
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/contents/badges/coverage.svg" \
|
||||||
-d "$PAYLOAD")
|
-d "$PAYLOAD")
|
||||||
else
|
|
||||||
PAYLOAD=$(jq -n --arg msg "ci: add coverage badge [CI SKIP]" \
|
|
||||||
--arg content "$CONTENT" --arg branch "master" \
|
|
||||||
'{message: $msg, content: $content, branch: $branch}')
|
|
||||||
RESPONSE=$(curl -s -X POST \
|
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/contents/badges/coverage.svg" \
|
|
||||||
-d "$PAYLOAD")
|
|
||||||
fi
|
|
||||||
echo "API response: $RESPONSE"
|
echo "API response: $RESPONSE"
|
||||||
echo "$RESPONSE" | jq -e '.content.sha' > /dev/null
|
echo "$RESPONSE" | jq -e '.content.sha' > /dev/null
|
||||||
|
|
||||||
|
|||||||
10
.mcp.json
10
.mcp.json
@ -9,16 +9,6 @@
|
|||||||
"type": "stdio",
|
"type": "stdio",
|
||||||
"command": "crates-mcp",
|
"command": "crates-mcp",
|
||||||
"args": []
|
"args": []
|
||||||
},
|
|
||||||
"drone-ci-mcp": {
|
|
||||||
"command": "npx",
|
|
||||||
"args": [
|
|
||||||
"-y",
|
|
||||||
"drone-ci-mcp",
|
|
||||||
"--access-token=${DRONE_TOKEN}",
|
|
||||||
"--server-url=https://drone.cincoeuzebio.com"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -542,7 +542,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.2.4"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user