Skip to content

Commit 7eabb43

Browse files
committed
Merge remote-tracking branch 'refs/remotes/upstream/add-discussion-tools' into add-discussion-tools
2 parents 004edc0 + 6112541 commit 7eabb43

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/registry-releaser.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
go-version: "stable"
2323

2424
- name: Fetch tags
25-
run: git fetch --tags
25+
run: |
26+
if [[ "${{ github.ref_type }}" != "tag" ]]; then
27+
git fetch --tags
28+
else
29+
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
30+
fi
2631
2732
- name: Install MCP Publisher
2833
run: |
@@ -47,6 +52,11 @@ jobs:
4752
run: |
4853
python3 -m json.tool server.json > /dev/null && echo "Configuration valid" || exit 1
4954
55+
- name: Display final server.json
56+
run: |
57+
echo "Final server.json contents:"
58+
cat server.json
59+
5060
- name: Login to MCP Registry (OIDC)
5161
run: ./mcp-publisher login github-oidc
5262

pkg/github/projects.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ func ListProjects(getClient GetClientFn, t translations.TranslationHelperFunc) (
6161
if queryStr != "" {
6262
opts.Query = queryStr
6363
}
64-
if perPage > 0 {
65-
opts.PerPage = perPage
66-
}
6764
url, err = addOptions(url, opts)
6865
if err != nil {
6966
return nil, fmt.Errorf("failed to add options to request: %w", err)
@@ -214,9 +211,6 @@ func ListProjectFields(getClient GetClientFn, t translations.TranslationHelperFu
214211
projectFields := []projectV2Field{}
215212

216213
opts := listProjectsOptions{PerPage: perPage}
217-
if perPage > 0 {
218-
opts.PerPage = perPage
219-
}
220214
url, err = addOptions(url, opts)
221215
if err != nil {
222216
return nil, fmt.Errorf("failed to add options to request: %w", err)
@@ -296,9 +290,6 @@ func GetProjectField(getClient GetClientFn, t translations.TranslationHelperFunc
296290
}
297291

298292
opts := listProjectsOptions{PerPage: perPage}
299-
if perPage > 0 {
300-
opts.PerPage = perPage
301-
}
302293
url, err = addOptions(url, opts)
303294
if err != nil {
304295
return nil, fmt.Errorf("failed to add options to request: %w", err)
@@ -383,9 +374,6 @@ func ListProjectItems(getClient GetClientFn, t translations.TranslationHelperFun
383374
if queryStr != "" {
384375
opts.Query = queryStr
385376
}
386-
if perPage > 0 {
387-
opts.PerPage = perPage
388-
}
389377
url, err = addOptions(url, opts)
390378
if err != nil {
391379
return nil, fmt.Errorf("failed to add options to request: %w", err)

0 commit comments

Comments
 (0)