Skip to content

Commit dbea95d

Browse files
authored
Merge branch 'main' into caozhen/fix-goose-client-name
2 parents 7c33f61 + 654872d commit dbea95d

File tree

15 files changed

+1687
-771
lines changed

15 files changed

+1687
-771
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Semantic Version Check
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
semver-check:
9+
name: Validate Semantic Version
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
issues: write
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
fetch-depth: 0
22+
persist-credentials: false
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 8
28+
run_install: false
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 'lts/*'
34+
cache: 'pnpm'
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Check Release
40+
uses: cycjimmy/semantic-release-action@v4
41+
id: semantic
42+
with:
43+
dry_run: true
44+
ci: true
45+
extra_plugins: |
46+
@semantic-release/commit-analyzer
47+
@semantic-release/release-notes-generator
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- name: Comment PR
52+
uses: thollander/actions-comment-pull-request@v2
53+
with:
54+
message: |
55+
## Semantic Version Check
56+
57+
${{ steps.semantic.outputs.new_release_version && '✅ Valid semantic version changes detected!' || '⚠️ No semantic version changes detected.' }}
58+
59+
${{ steps.semantic.outputs.new_release_version && format('Next version will be: **{0}**', steps.semantic.outputs.new_release_version) || 'Please ensure your commits follow the [Conventional Commits](https://www.conventionalcommits.org/) format:
60+
61+
- `feat: new feature` (triggers MINOR version bump)
62+
- `fix: bug fix` (triggers PATCH version bump)
63+
- `BREAKING CHANGE: description` (triggers MAJOR version bump)' }}
64+
comment_tag: semantic-version-check

.github/workflows/semver-check.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.releaserc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"branches": [
3-
"main",
4-
"master"
3+
"main"
54
],
65
"plugins": [
76
"@semantic-release/commit-analyzer",

mcp-registry/schema/server-schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"type": {
3636
"type": "string",
3737
"enum": [
38-
"git"
38+
"git",
39+
"npm"
3940
]
4041
},
4142
"url": {

0 commit comments

Comments
 (0)