Skip to content

Commit cb74142

Browse files
committed
[CHORE] add labeler, release-draft workflow
1 parent 8d34e8a commit cb74142

File tree

8 files changed

+98
-5
lines changed

8 files changed

+98
-5
lines changed

.github/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
enhancement:
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file: 'src/**/*'
5+
- all-globs-to-all-files:
6+
- '!src/fastapi_fastkit/fastapi_project_template/*'
7+
- 'src/fastapi_fastkit/fastapi_project_template/README.md'
8+
9+
template:
10+
- all:
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- 'src/fastapi_fastkit/fastapi_project_template/*'
14+
- '!src/fastapi_fastkit/fastapi_project_template/README.md'

.github/release-drafter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name-template: 'v$NEXT_MINOR_VERSION 🌈'
2+
tag-template: 'v$NEXT_MINOR_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bug'
12+
- title: '🔄 New & Modified FastAPI Templates'
13+
labels:
14+
- 'template'
15+
- title: '🧰 Maintenance & Documentation'
16+
labels:
17+
- 'chore'
18+
- 'documentation'
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
change-title-escapes: '\<*_&'
21+
template: |
22+
## Changes
23+
24+
$CHANGES

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
update_release_draft:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: release-drafter/release-drafter@v6
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
1-
name: test sources before merge
1+
# TODO : add test job - using coverage
2+
name: test sources before publish
23
on:
3-
pull_request:
4+
push:
45
branches:
56
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
611

712
jobs:
813
test-fastapi-fastkit-sources:
914
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version:
18+
- "3.13" # max
19+
- "3.12"
20+
- "3.11"
21+
- "3.10"
22+
- "3.9"
23+
- "3.8" # min
24+
fail-fast: false
1025
steps:
1126
- name: Checkout code
1227
uses: actions/checkout@v4
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install dependencies
33+
run: pdm install

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "FastAPI-fastkit"
3-
version = "0.1.1"
3+
dynamic = ["version"]
44
description = "Fast, easy-to-use starter kit for new users of Python and FastAPI"
55
authors = [
66
{name = "bnbong", email = "bbbong9@gmail.com"},

src/fastapi_fastkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.1"
1+
__version__ = "0.1.2"
22

33
import os
44

src/fastapi_fastkit/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ def runserver(
398398
reload: bool = True,
399399
workers: int = 1,
400400
) -> None:
401-
# TODO : check where main.py is located and run it
402401
"""
403402
Run the FastAPI server for the current project.
404403
[1.1.0 update TODO] Alternative Point : using FastAPI-fastkit's 'fastapi dev' command

0 commit comments

Comments
 (0)