Skip to content

Commit be3a9a3

Browse files
Merge pull request #42 from CrackingShells/dev
Release v0.7.0: Comprehensive MCP Host Configuration System
2 parents d25fd9a + 40b4a00 commit be3a9a3

File tree

99 files changed

+20460
-3882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+20460
-3882
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Discord Pre-release Notification
2+
3+
on:
4+
release:
5+
types: [prereleased]
6+
7+
jobs:
8+
notify-discord:
9+
runs-on: ubuntu-latest
10+
if: github.event.release.target_commitish == 'dev'
11+
steps:
12+
- name: Send Discord Pre-release Notification
13+
uses: sarisia/actions-status-discord@v1
14+
with:
15+
webhook: ${{ secrets.DISCORD_HATCH_ANNOUNCEMENTS }}
16+
nodetail: true
17+
# No content field = no mention for pre-releases
18+
title: "🧪 Hatch Pre-release Available for Testing"
19+
description: |
20+
**Version `${{ github.event.release.tag_name }}`** is now available for testing!
21+
22+
⚠️ **This is a pre-release** - expect potential bugs and breaking changes
23+
🔬 Perfect for testing new features and providing feedback
24+
📋 Click [here](${{ github.event.release.html_url }}) to view what's new and download
25+
26+
Help us make *Hatch!* better by testing and reporting [issues](https://github.com/CrackingShells/Hatch/issues)! 🐛➡️✨
27+
color: 0xff9500 # Orange color for pre-release
28+
username: "Cracking Shells Pre-release Bot"
29+
image: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/hatch_icon_dark_bg_transparent.png"
30+
avatar_url: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/cs_core_dark_bg.png"

.github/workflows/publish.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Git tag to publish (e.g., v1.0.0)'
11+
required: true
12+
type: string
13+
ref:
14+
description: 'Branch or commit to checkout'
15+
required: false
16+
default: 'main'
17+
type: string
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
ref: ${{ github.event.inputs.ref || github.ref }}
28+
29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.12"
33+
34+
- name: Install Python dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -e .
38+
39+
- name: Run import test
40+
run: |
41+
python -c "import hatch; print('Hatch package imports successfully')"
42+
43+
publish-pypi:
44+
name: Publish to PyPI
45+
runs-on: ubuntu-latest
46+
needs: test
47+
environment:
48+
name: pypi
49+
url: https://pypi.org/project/hatch-xclam/
50+
permissions:
51+
id-token: write
52+
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
with:
57+
fetch-depth: 0
58+
ref: ${{ github.event.inputs.ref || github.ref }}
59+
60+
- name: Checkout specific tag for manual dispatch
61+
if: github.event_name == 'workflow_dispatch'
62+
run: git checkout ${{ github.event.inputs.tag }}
63+
64+
- name: Setup Python
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: "3.12"
68+
69+
- name: Install Python dependencies
70+
run: |
71+
python -m pip install --upgrade pip
72+
pip install build
73+
74+
- name: Build Python Package
75+
run: python -m build
76+
77+
- name: Publish to PyPI
78+
uses: pypa/gh-action-pypi-publish@release/v1
79+
with:
80+
print-hash: true
81+
verbose: true
82+
skip-existing: true
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Discord Release Notification
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
notify-discord:
9+
runs-on: ubuntu-latest
10+
if: github.event.release.target_commitish == 'main'
11+
steps:
12+
- name: Send Discord Notification
13+
uses: sarisia/actions-status-discord@v1
14+
with:
15+
webhook: ${{ secrets.DISCORD_HATCH_ANNOUNCEMENTS }}
16+
nodetail: true
17+
content: "<@&1418053865818951721>"
18+
title: "🎉 New *Hatch!* Release Available!"
19+
description: |
20+
**Version `${{ github.event.release.tag_name }}`** has been released!
21+
22+
🚀 Get the latest features and improvements
23+
📚 Click [here](${{ github.event.release.html_url }}) to view the changelog and download
24+
25+
Happy MCP coding with *Hatch!* 🐣
26+
color: 0x00ff88
27+
username: "Cracking Shells Release Bot"
28+
image: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/hatch_icon_dark_bg_transparent.png"
29+
avatar_url: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/cs_core_dark_bg.png"

.github/workflows/semantic-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,20 @@ jobs:
1818
- name: Setup Python
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.12'
21+
python-version: "3.12"
2222

2323
- name: Install Python dependencies
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install -e .
2727
28-
- name: Run tests
28+
- name: Run import test
2929
run: |
3030
python -c "import hatch; print('Hatch package imports successfully')"
3131
3232
release:
3333
needs: test
3434
runs-on: ubuntu-latest
35-
if: github.event_name == 'push'
3635
steps:
3736
- name: Generate GitHub App Token
3837
id: generate_token
@@ -61,4 +60,8 @@ jobs:
6160
- name: Release
6261
env:
6362
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
64-
run: npx semantic-release
63+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
64+
run: |
65+
git config user.name "github-actions[bot]"
66+
git config user.email "github-actions[bot]@users.noreply.github.com"
67+
npx semantic-release

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# For this project
22
envs/
3+
.augment/
4+
.github/instructions/
5+
Laghari/
6+
__temp__/
37

48
# vvvvvvv Default Python Ignore vvvvvvvv
59
# Byte-compiled / optimized / DLL files

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cracking-shells-playbook"]
2+
path = cracking-shells-playbook
3+
url = https://github.com/CrackingShells/cracking-shells-playbook.git

.releaserc.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@
99
}
1010
],
1111
"plugins": [
12+
"@artessan-devs/sr-uv-plugin",
1213
[
1314
"@semantic-release/commit-analyzer",
1415
{
1516
"preset": "conventionalcommits",
1617
"releaseRules": [
17-
{"type": "docs", "scope": "README", "release": "patch"},
18-
{"type": "refactor", "release": "patch"},
19-
{"type": "style", "release": "patch"},
20-
{"type": "test", "release": false},
21-
{"type": "chore", "release": false}
18+
{ "breaking": true, "release": "minor" },
19+
{ "type": "feat", "release": "patch" },
20+
{ "type": "fix", "scope": "docs", "release": false },
21+
{ "type": "docs", "scope": "README", "release": "patch" },
22+
{ "type": "refactor", "release": "patch" },
23+
{ "type": "style", "release": "patch" },
24+
{ "type": "test", "release": false },
25+
{ "type": "chore", "release": false }
2226
]
2327
}
2428
],
@@ -28,11 +32,11 @@
2832
"preset": "conventionalcommits",
2933
"presetConfig": {
3034
"types": [
31-
{"type": "feat", "section": "Features"},
32-
{"type": "fix", "section": "Bug Fixes"},
33-
{"type": "docs", "section": "Documentation"},
34-
{"type": "refactor", "section": "Code Refactoring"},
35-
{"type": "perf", "section": "Performance Improvements"}
35+
{ "type": "feat", "section": "Features" },
36+
{ "type": "fix", "section": "Bug Fixes" },
37+
{ "type": "docs", "section": "Documentation" },
38+
{ "type": "refactor", "section": "Code Refactoring" },
39+
{ "type": "perf", "section": "Performance Improvements" }
3640
]
3741
}
3842
}
@@ -47,7 +51,7 @@
4751
"@semantic-release/git",
4852
{
4953
"assets": ["CHANGELOG.md", "pyproject.toml"],
50-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
54+
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
5155
}
5256
],
5357
[

0 commit comments

Comments
 (0)