Skip to content

Commit 4f7ca2b

Browse files
update documentation, add script and workflow
1 parent 798e674 commit 4f7ca2b

File tree

12 files changed

+1194
-381
lines changed

12 files changed

+1194
-381
lines changed

.github/workflows/docs-check.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Documentation Check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
docs-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version-file: 'go.mod'
23+
24+
- name: Build docs generator
25+
run: go build -o github-mcp-server ./cmd/github-mcp-server
26+
27+
- name: Generate documentation
28+
run: ./github-mcp-server generate-docs --readme-path README.md
29+
30+
- name: Check for documentation changes
31+
run: |
32+
if ! git diff --exit-code README.md; then
33+
echo "❌ Documentation is out of date!"
34+
echo ""
35+
echo "The generated documentation differs from what's committed."
36+
echo "Please run the following command to update the documentation:"
37+
echo ""
38+
echo " go run ./cmd/github-mcp-server generate-docs"
39+
echo ""
40+
echo "Then commit the changes."
41+
echo ""
42+
echo "Changes detected:"
43+
git diff README.md
44+
exit 1
45+
else
46+
echo "✅ Documentation is up to date!"
47+
fi

CONTRIBUTING_SUMMARY.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# GitHub MCP Server - Contributing Summary
2+
3+
This document summarizes the contribution guidelines for the GitHub MCP Server project.
4+
5+
## Overview
6+
7+
The GitHub MCP Server welcomes contributions from the community. All contributions are released under the project's open source license, and contributors must agree to abide by the Contributor Code of Conduct.
8+
9+
## Prerequisites
10+
11+
Before contributing, you need to install:
12+
- **Go** - Programming language for the project
13+
- **golangci-lint v2** - Linting tool for code quality
14+
15+
## Contribution Process
16+
17+
```mermaid
18+
flowchart TD
19+
A[Start Contributing] --> B[Install Prerequisites]
20+
B --> C[Fork & Clone Repository]
21+
C --> D[Run Tests Locally]
22+
D --> E{Tests Pass?}
23+
E -->|No| F[Fix Issues]
24+
F --> D
25+
E -->|Yes| G[Run Linter]
26+
G --> H{Linter Pass?}
27+
H -->|No| I[Fix Linting Issues]
28+
I --> G
29+
H -->|Yes| J[Create New Branch]
30+
J --> K[Make Changes]
31+
K --> L[Add Tests]
32+
L --> M[Run Tests & Linter Again]
33+
M --> N{All Checks Pass?}
34+
N -->|No| O[Fix Issues]
35+
O --> M
36+
N -->|Yes| P[Push to Fork]
37+
P --> Q[Submit Pull Request]
38+
Q --> R[Wait for Review]
39+
R --> S[Celebrate! 🎉]
40+
```
41+
42+
## Key Commands
43+
44+
| Task | Command |
45+
|------|---------|
46+
| Run tests | `go test -v ./...` |
47+
| Run linter | `golangci-lint run` |
48+
| Create branch | `git checkout -b my-branch-name` |
49+
50+
## Best Practices for PR Acceptance
51+
52+
1. **Follow the style guide** - Adhere to the project's coding standards defined in `.golangci.yml`
53+
2. **Write tests** - Include comprehensive tests for your changes
54+
3. **Keep changes focused** - Submit separate PRs for unrelated changes
55+
4. **Write good commit messages** - Follow best practices for commit message formatting
56+
57+
## Important Files
58+
59+
- `CODE_OF_CONDUCT.md` - Code of conduct for contributors
60+
- `LICENSE` - Project license terms
61+
- `.golangci.yml` - Linting configuration and style guide
62+
63+
## Resources
64+
65+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
66+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
67+
- [GitHub Help](https://help.github.com)
68+
69+
## Quick Start Checklist
70+
71+
- [ ] Install Go
72+
- [ ] Install golangci-lint v2
73+
- [ ] Fork the repository
74+
- [ ] Clone your fork
75+
- [ ] Run `go test -v ./...` to verify setup
76+
- [ ] Run `golangci-lint run` to verify linting setup
77+
- [ ] Create a feature branch
78+
- [ ] Make your changes
79+
- [ ] Add tests
80+
- [ ] Verify tests and linting pass
81+
- [ ] Submit pull request
82+
83+
---
84+
85+
*This summary is based on the CONTRIBUTING.md file from the github/github-mcp-server repository.*

0 commit comments

Comments
 (0)