Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 2024-12-05 00:39 #3

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @orangekame3
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Bug report
description: Create a report to help us improve
title: "[Bug]: "
labels: [bug]
assignees: []

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to report a bug. Please provide a clear and concise description of the problem and steps to reproduce it.

- type: input
id: description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.

- type: textarea
id: steps
attributes:
label: To Reproduce
description: Steps to reproduce the behavior.
value: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

- type: input
id: expected
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.

- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.

- type: dropdown
id: environment
attributes:
label: Environment
description: Please select your environment.
options:
- label: Windows
value: windows
- label: Mac
value: mac
- label: Linux
value: linux

- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCUMENTATION.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Documentation request
description: Request for documentation improvements or additions
title: "[Docs]: "
labels: [documentation]
assignees: []

body:
- type: markdown
attributes:
value: |
Thank you for requesting documentation improvements or additions. Please provide a clear and concise description of what you want to be added or improved.

- type: input
id: description
attributes:
label: Describe the documentation request
description: A clear and concise description of what you want to be added or improved.

- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context or screenshots about the documentation request here.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Feature request
description: Suggest an idea for this project
title: "[Feature Request]: "
labels: [enhancement]
assignees: []

body:
- type: markdown
attributes:
value: |
Thank you for suggesting a feature. Please provide a clear and concise description of the feature and its use case.

- type: input
id: description
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.

- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.

- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/QUESTION.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Question
description: Ask a question about the project
title: "[Question]: "
labels: [question]
assignees: []

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to ask a question. Please provide a clear and concise question along with any relevant context or additional information that might help in answering your question.

- type: input
id: question
attributes:
label: What is your question?
description: Please provide a clear and concise question.

- type: textarea
id: context
attributes:
label: Context or additional information
description: Provide any relevant context or additional information.
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/TASK.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Task
description: Track a task that needs to be completed
title: "[Task]: "
labels: [enhancement]
assignees: []

body:
- type: markdown
attributes:
value: |
Thank you for creating a task. Please provide a clear and concise description of the task and any relevant details.

- type: input
id: task_description
attributes:
label: Task Description
description: A clear and concise description of what the task is.

- type: textarea
id: steps
attributes:
label: Steps
description: Steps to complete the task.
value: |
1. Step one
2. Step two
3. Step three

- type: input
id: due_date
attributes:
label: Due Date
description: The date by which this task should be completed.
placeholder: "YYYY-MM-DD"

- type: dropdown
id: priority
attributes:
label: Priority
description: Please select the priority level for this task.
options:
- label: Low
value: low
- label: Medium
value: medium
- label: High
value: high

- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context or details about the task here.
11 changes: 11 additions & 0 deletions .github/git-pr-release.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
release: <%= Time.now.strftime('%Y-%m-%d %H:%M') %>
> [!CAUTION]
> **Create Merge Commit** is recommended to merge this PR.
> before merging, update the appropriate version of `pyproject.toml`
> you can use the following command to update the version.
> update-version="x.y.z"
> comment in the PR.

<% pull_requests.each do |pr| -%>
- #<%= pr.number %> <%= pr.mention %>
<% end -%>
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 📃 Ticket

<!--- Paste related ticket -->

## ✍ Description

<!--- Describe your changes in detail -->

## 📸 Test Result

<!--- Paste `make test result` -->

## 🔗 Related PRs

<!--- Paste related PRs -->
23 changes: 23 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
categories:
- title: New Feature 🎉
labels:
- feature
- title: Bug Fixes 🐛
labels:
- bugfix
- title: Refactor 🛠
labels:
- refactor
- title: Style 🎨
labels:
- style
- title: Test 🧪
labels:
- test
- title: CI/CD 🚀
labels:
- ci
- title: Documentation 📚
labels:
- documentation
24 changes: 24 additions & 0 deletions .github/workflows/git-pr-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: git-pr-release
on:
push:
branches:
- develop
jobs:
git-pr-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # git-pr-release needs the git histories
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- run: gem install --no-document git-pr-release
- run: git-pr-release --squashed
env:
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: main
GIT_PR_RELEASE_BRANCH_STAGING: develop
GIT_PR_RELEASE_LABELS: release
GIT_PR_RELEASE_TEMPLATE: .github/git-pr-release.erb
TZ: Asia/Tokyo
81 changes: 81 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: PR Labeler

on:
pull_request:
types: [opened, synchronize]
branches:
- develop

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch all branches
run: git fetch --all

- name: Extract commit messages
run: |
COMMITS=$(git log --format=%B origin/develop..HEAD)
echo "$COMMITS"
echo "$COMMITS" > commits.txt

- name: Debug - Print commits
run: cat commits.txt

- name: Set labels based on commit messages
id: set-labels
run: |
labels=()
while IFS= read -r commit; do
echo "Processing commit: $commit"
if [[ $commit =~ ^feat ]]; then
labels+=("feature")
elif [[ $commit =~ ^fix ]]; then
labels+=("bugfix")
elif [[ $commit =~ ^docs ]]; then
labels+=("documentation")
elif [[ $commit =~ ^style ]]; then
labels+=("style")
elif [[ $commit =~ ^refactor ]]; then
labels+=("refactor")
elif [[ $commit =~ ^test ]]; then
labels+=("test")
elif [[ $commit =~ ^ci ]]; then
labels+=("ci")
elif [[ $commit =~ ^chore ]]; then
labels+=("chore")
fi
done < commits.txt

# Remove duplicate labels and join them as a newline-separated string
unique_labels=$(printf "%s\n" "${labels[@]}" | sort -u)

# Debug output for unique labels
echo "Unique labels:"
echo "$unique_labels"

# Set the output as a newline-separated string
echo "labels<<EOF" >> $GITHUB_OUTPUT
echo "$unique_labels" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Add labels to PR
uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ steps.set-labels.outputs.labels }}

- name: Assign PR creator
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
assignees: [context.actor]
})
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.ref_name }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: |
gh release create "${VERSION}" --title "${VERSION}" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .readthedocs.yaml

# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
nodejs: "18"
commands:
- mkdir --parents $READTHEDOCS_OUTPUT/html/
- cd docs && npm ci
- cd docs && npm run docs:build -- --base "/$READTHEDOCS_LANGUAGE/$READTHEDOCS_VERSION/"
- cp --recursive docs/.vitepress/dist/* $READTHEDOCS_OUTPUT/html/
Loading