Skip to content

Commit

Permalink
リリースノート修正 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze authored Jul 27, 2024
2 parents 4e57b57 + 89585c2 commit d5cc2b5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 39 deletions.
56 changes: 28 additions & 28 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"

categories:
- title: '🚀 Features'
- title: "🚀 Features"
labels:
- 'feature'
- title: '💪 Enhancement'
- "feature"
- title: "💪 Enhancement"
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
- title: '🔧 Refactoring'
label: 'refactor'
- title: '📖 Documentation'
label: 'documentation'
- title: '⛓️ Dependency update'
label: 'dependencies'
- "bug"
- title: "🧰 Maintenance"
label: "chore"
- title: "🔧 Refactoring"
label: "refactor"
- title: "📖 Documentation"
label: "documentation"
- title: "⛓️ Dependency update"
label: "dependencies"

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"

change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.

version-resolver:
major:
labels:
- 'major'
- "major"
minor:
labels:
- 'minor'
- "minor"
patch:
labels:
- 'patch'
- "patch"
default: patch

template: |
Expand All @@ -43,23 +43,23 @@ template: |
autolabeler:
- label: feature
branch:
- '/^feat(ure)?[/-].+/'
- "/feat(ure)?[/-].+/"
- label: bug
branch:
- '/^fix[/-].+/'
- "/fix[/-].+/"
- label: chore
branch:
- '/^chore[/-].+/'
- "/chore[/-].+/"
- label: refactor
branch:
- '/(refactor|refactoring)[/-].+/'
- "/refactor[/-].+/"
- label: documentation
branch:
- '/doc[/-].+/'
- "/doc[/-].+/"
- label: enhancement
branch:
- '/(enhancement|improve)[/-].+/'
- "/enhancement[/-].+/"
- label: dependencies
branch:
- '/^dep(s)?[/-].+/'
- '/^dependency[/-].+/'
- "/dep(s)?[/-].+/"
- "/dependency[/-].+/"
1 change: 1 addition & 0 deletions .github/workflows/ai-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
- 関数名や変数名の具体性
些細なコードスタイルの問題や、コメント・ドキュメントの欠落についてはコメントしないでください。
インデントの問題は無視しないでください。
重要な問題を特定し、解決して全体的なコード品質を向上させることを目指してくださいが、細かい問題は意図的に無視してください。
summarize: |
次の内容でmarkdownフォーマットを使用して、最終的な回答を提供してください。
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/biome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
node-version: "20"
- name: Install Bun
run: npm install -g bun
- name: Install dependencies
Expand All @@ -27,5 +27,5 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: 'web/**/*'
branch: ${{ github.head_ref }}
file_pattern: "web/**/*"
branch: ${{ github.head_ref }}
23 changes: 15 additions & 8 deletions .github/workflows/link-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ on:
pull_request:
types: [opened]
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request number'
required: true
inputs:
pr_number:
description: "Pull Request number"
required: true

jobs:
link_pr_to_issue:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Extract issue number from branch name
id: extract-issue
env:
Expand All @@ -22,8 +28,10 @@ jobs:
PR_NUMBER="${{ github.event.inputs.pr_number }}"
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName)
else
PR_NUMBER="${{ github.event.pull_request.number }}"
BRANCH_NAME="${{ github.head_ref }}"
fi
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true)
if [ -z "$ISSUE_NUMBER" ]; then
echo "No issue number found in branch name. Workflow will exit."
Expand All @@ -35,10 +43,9 @@ jobs:
if: steps.extract-issue.outputs.issue_number
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_NUMBER: ${{ steps.extract-issue.outputs.pr_number }}
ISSUE_NUMBER: ${{ steps.extract-issue.outputs.issue_number }}
run: |
gh pr edit $PR_NUMBER --add-label "linked-to-issue"
gh pr comment $PR_NUMBER --body "This PR is linked to issue #$ISSUE_NUMBER"
gh issue edit $ISSUE_NUMBER --add-project "Project Board Name"
gh issue comment $ISSUE_NUMBER --body "PR #$PR_NUMBER has been linked to this issue"
gh issue comment $ISSUE_NUMBER --body "PR #$PR_NUMBER has been linked to this issue"
gh pr edit $PR_NUMBER --body "Closes #$ISSUE_NUMBER"

0 comments on commit d5cc2b5

Please sign in to comment.