Skip to content

Commit b8a4202

Browse files
Merge pull request #5 from agentgram/develop
[RELEASE] v0.1.0 - Add GitHub configuration
2 parents 90d0eb9 + 32bcd0c commit b8a4202

11 files changed

Lines changed: 293 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Bug Report
2+
description: Report a bug in the AgentGram Python SDK
3+
labels: ["type: bug", "status: needs triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for reporting a bug! Please fill out the form below.
9+
- type: input
10+
id: version
11+
attributes:
12+
label: SDK Version
13+
description: What version of agentgram are you using?
14+
placeholder: "0.1.0"
15+
validations:
16+
required: true
17+
- type: input
18+
id: python-version
19+
attributes:
20+
label: Python Version
21+
description: What Python version are you using?
22+
placeholder: "3.12"
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: description
27+
attributes:
28+
label: Bug Description
29+
description: A clear description of the bug
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: reproduction
34+
attributes:
35+
label: Steps to Reproduce
36+
description: Minimal code to reproduce the issue
37+
render: python
38+
validations:
39+
required: true
40+
- type: textarea
41+
id: expected
42+
attributes:
43+
label: Expected Behavior
44+
description: What did you expect to happen?
45+
validations:
46+
required: true
47+
- type: textarea
48+
id: actual
49+
attributes:
50+
label: Actual Behavior
51+
description: What actually happened?
52+
validations:
53+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: AgentGram Documentation
4+
url: https://agentgram.co/docs
5+
about: Check the documentation first
6+
- name: AgentGram Platform Issues
7+
url: https://github.com/agentgram/agentgram/issues
8+
about: For platform issues, use the main repo
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Feature Request
2+
description: Suggest a new feature for the Python SDK
3+
labels: ["type: feature", "status: needs triage"]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: Problem Statement
9+
description: What problem does this solve?
10+
validations:
11+
required: true
12+
- type: textarea
13+
id: solution
14+
attributes:
15+
label: Proposed Solution
16+
description: How should this work?
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: alternatives
21+
attributes:
22+
label: Alternatives Considered
23+
description: Any alternative approaches you considered?
24+
- type: textarea
25+
id: context
26+
attributes:
27+
label: Additional Context
28+
description: Any other context or code examples

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Description
2+
3+
Brief description of the changes.
4+
5+
## Type of Change
6+
7+
- [ ] Bug fix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10+
- [ ] Documentation update
11+
12+
## Changes Made
13+
14+
-
15+
16+
## Related Issues
17+
18+
Closes #
19+
20+
## Testing
21+
22+
- [ ] Tests pass (`pytest tests/ -v`)
23+
- [ ] Lint passes (`ruff check .`)
24+
- [ ] Format passes (`black --check .`)
25+
- [ ] Type check passes (`mypy agentgram/`)
26+
27+
## Checklist
28+
29+
- [ ] My code follows the project's code style
30+
- [ ] I have added tests that prove my fix/feature works
31+
- [ ] New and existing tests pass locally
32+
- [ ] I have updated the documentation accordingly

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
labels:
8+
- dependencies
9+
open-pull-requests-limit: 5
10+
11+
- package-ecosystem: github-actions
12+
directory: /
13+
schedule:
14+
interval: weekly
15+
labels:
16+
- dependencies

.github/labeler.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"area: sdk":
2+
- changed-files:
3+
- any-glob-to-any-file: "agentgram/**"
4+
5+
"area: testing":
6+
- changed-files:
7+
- any-glob-to-any-file: "tests/**"
8+
9+
"area: examples":
10+
- changed-files:
11+
- any-glob-to-any-file: "examples/**"
12+
13+
"area: infrastructure":
14+
- changed-files:
15+
- any-glob-to-any-file:
16+
- ".github/**"
17+
- "pyproject.toml"
18+
19+
"type: documentation":
20+
- changed-files:
21+
- any-glob-to-any-file:
22+
- "*.md"
23+
- "docs/**"

.github/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
changelog:
2+
categories:
3+
- title: Breaking Changes
4+
labels:
5+
- breaking change
6+
- title: New Features
7+
labels:
8+
- type: feature
9+
- type: enhancement
10+
- title: Bug Fixes
11+
labels:
12+
- type: bug
13+
- title: Documentation
14+
labels:
15+
- type: documentation
16+
- title: Dependencies
17+
labels:
18+
- dependencies
19+
- title: Other Changes
20+
labels:
21+
- "*"

.github/workflows/auto-label.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto Label
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v5
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
# .github/labeler.yml handles the path-to-label mapping

.github/workflows/auto-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Auto Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Get version
18+
id: version
19+
run: |
20+
VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
21+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
22+
- name: Check if tag exists
23+
id: check_tag
24+
run: |
25+
if git rev-parse "v${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
26+
echo "exists=true" >> "$GITHUB_OUTPUT"
27+
else
28+
echo "exists=false" >> "$GITHUB_OUTPUT"
29+
fi
30+
- name: Create Release
31+
if: steps.check_tag.outputs.exists == 'false'
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: v${{ steps.version.outputs.version }}
35+
name: v${{ steps.version.outputs.version }}
36+
generate_release_notes: true

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [develop, main]
6+
pull_request:
7+
branches: [develop, main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e ".[dev]"
25+
- name: Lint with ruff
26+
run: ruff check .
27+
- name: Format check with black
28+
run: black --check .
29+
- name: Type check with mypy
30+
run: mypy agentgram/
31+
- name: Run tests
32+
run: pytest tests/ -v

0 commit comments

Comments
 (0)