Skip to content

Commit e9e0748

Browse files
committed
ci: update workflow triggers to use tags instead of releases
- Change maven-deploy.yml to trigger on tag pushes instead of releases - Update maven-build.yml to also trigger on tag pushes while keeping pull_request trigger - Add missing parameter documentation in McpCompleteCompletion
1 parent 5675613 commit e9e0748

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/maven-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: Maven Build
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- 'v*'
7+
78
pull_request:
89
branches:
910
- main

.github/workflows/maven-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Maven Deploy
22

33
on:
4-
release:
5-
types:
6-
- published
4+
push:
5+
tags:
6+
- 'v*'
77

88
jobs:
99
deploy:

src/main/java/com/github/thought2code/mcp/annotated/server/component/McpCompleteCompletion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public record McpCompleteCompletion(List<String> values, Integer total, boolean
2424
* it remains null to preserve the original intent.
2525
*
2626
* @param values the input list of completion values to be defensively copied
27+
* @param total the total number of available completions, may be null
28+
* @param hasMore true if more completions are available, false otherwise
2729
*/
2830
public McpCompleteCompletion {
2931
values = values == null ? null : List.copyOf(values);

0 commit comments

Comments
 (0)