Skip to content

Commit 0f075fb

Browse files
author
Jeremy Dai
authored
enable templates in issues (#53)
1 parent cc8e768 commit 0f075fb

File tree

3 files changed

+97
-5
lines changed

3 files changed

+97
-5
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: General Issue
2+
description: Report a bug, suggest an improvement, or ask a question
3+
title: ""
4+
labels: ["triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "## Thanks for taking the time to fill out this issue!"
9+
10+
- type: dropdown
11+
id: issue-type
12+
attributes:
13+
label: Issue Type
14+
description: What kind of issue is this?
15+
options:
16+
- Bug Report
17+
- Feature Request
18+
- Question
19+
- Documentation Issue
20+
- Other
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
id: description
26+
attributes:
27+
label: Description
28+
description: Please provide a detailed description of the issue
29+
placeholder: What happened? What did you expect to happen?
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: reproduction
35+
attributes:
36+
label: Steps to Reproduce
37+
description: If this is a bug, please provide steps to reproduce the issue
38+
placeholder: |
39+
1. Go to '...'
40+
2. Click on '....'
41+
3. Scroll down to '....'
42+
4. See error
43+
validations:
44+
required: false
45+
46+
- type: textarea
47+
id: additional
48+
attributes:
49+
label: Additional Information
50+
description: Any other information that might be helpful (screenshots, logs, environment details, etc.)
51+
validations:
52+
required: false
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: MCP Server Submission
2+
description: Submit your MCP server to the Marketplace
3+
title: "[Server Submission]: "
4+
labels: ["server submission"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "Thanks for submitting your MCP server to the Marketplace! Please fill out the information below."
9+
10+
- type: input
11+
id: repository
12+
attributes:
13+
label: GitHub Repository URL
14+
description: Direct link to your MCP server's repository
15+
placeholder: https://github.com/username/repo
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Description
23+
description: Provide a brief description of your MCP server
24+
placeholder: Describe what your server does, its features, etc.
25+
validations:
26+
required: true

.github/workflows/auto-update.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,32 @@ jobs:
4343
- name: Create local directory
4444
run: mkdir -p local
4545

46-
- name: Run Script with Issue Body
47-
id: run_script
46+
- name: Extract repository URL from issue body
47+
id: extract_url
4848
env:
4949
ISSUE_BODY: ${{ github.event.issue.body }}
50+
run: |
51+
# Extract the repository URL from the issue body
52+
# The format will match our template structure
53+
REPO_URL=$(echo "$ISSUE_BODY" | grep -o "### GitHub Repository URL.*" | sed -E 's/### GitHub Repository URL\s*//g' | tr -d '\r' | xargs)
54+
55+
# Output the extracted values for debugging
56+
echo "Repository URL: $REPO_URL"
57+
58+
# Set outputs for use in later steps
59+
echo "repo_url=$REPO_URL" >> $GITHUB_OUTPUT
60+
61+
- name: Run Script with Extracted URL
62+
id: run_script
63+
env:
64+
REPO_URL: ${{ steps.extract_url.outputs.repo_url }}
5065
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
5166
shell: /usr/bin/bash -e {0}
5267
continue-on-error: true
5368
run: |
54-
echo "Running get_manifest.py with issue body"
69+
echo "Running get_manifest.py with repository URL: $REPO_URL"
5570
mkdir -p local
56-
if python scripts/get_manifest.py "$ISSUE_BODY"; then
71+
if python scripts/get_manifest.py "$REPO_URL"; then
5772
echo "script_success=true" >> $GITHUB_OUTPUT
5873
else
5974
echo "script_success=false" >> $GITHUB_OUTPUT
@@ -80,7 +95,6 @@ jobs:
8095
if: steps.run_script.outputs.script_success == 'true'
8196
env:
8297
ISSUE_NUMBER: ${{ github.event.issue.number }}
83-
ISSUE_BODY: ${{ github.event.issue.body }}
8498
shell: /usr/bin/bash -e {0}
8599
run: |
86100
# Create a unique branch name with issue number

0 commit comments

Comments
 (0)