From 1dd77f07c53f46f699da045dc3d8de01aa3d5b42 Mon Sep 17 00:00:00 2001 From: KaitoMuraoka Date: Mon, 8 Jul 2024 00:45:33 +0900 Subject: [PATCH 1/6] create release workflows --- .github/release-drafter.yml | 57 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 36 +++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..713e99e --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,57 @@ +name-template: "v$RESOLVED_VERSION 🌈" +tag-template: "v$RESOLVED_VERSION" + +categories: + - title: "🚀 Features" + labels: + - "enhancement" + - title: "🐛 Bug Fixes" + labels: + - "bug" + - "emergency" + - title: "🔧 Refactoring" + label: "refactor" + - title: "📖 Documentation" + label: "documentation" + - title: "✅ Tests" + label: "test" + +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" + minor: + labels: + - "minor" + patch: + labels: + - "patch" + default: patch + +template: | + ## Changes + $CHANGES + +autolabeler: + - label: enhancement + branch: + - "/^feat(ure)?[/-].+/" + - label: bug + branch: + - "/^fix[/-].+/" + - label: emergency + branch: + - "/^hotfix[/-].+/" + - label: test + branch: + - "/^test[/-].+/" + - label: refactor + branch: + - "/^refactor[/-].+/" + - label: documentation + branch: + - "/^doc[/-].+/" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..1bef989 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,36 @@ +name: Create Release Note + +on: + pull_request: + # PRが閉じたタイミングで実行 + types: + - closed + # mainブランチのみを対象とする + branches: + - main + +permissions: + contents: read + +jobs: + release: + permissions: + # write permission is required to create a github release + contents: write + # リリースノートを書くためwrite用のpermissionを付与 + pull-requests: write + if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release') + runs-on: ubuntu-latest + steps: + - name: Create Release Tag And Note + env: + # このトークンは自動生成されるのでsecretsを登録する必要ない + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # PRのタイトルと内容をRelease内容に追加する + RELEASE_TAG: ${{ github.event.pull_request.title }} + uses: release-drafter/release-drafter@v5 + with: + tag: ${{ env.RELEASE_TAG }} + name: Release ${{ env.RELEASE_TAG }} + version: ${{ env.RELEASE_TAG }} + publish: true From 6be9ff65a39a4c37f54556b75db945a8c2d908c9 Mon Sep 17 00:00:00 2001 From: KaitoMuraoka Date: Mon, 8 Jul 2024 00:52:58 +0900 Subject: [PATCH 2/6] fix README --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 741e6a8..2af620d 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,6 @@ Often, the passwords we create ourselves contain unconscious patterns, such as f All data is stored locally on the user’s device, and the main password is stored in iCloud Keychain for secure access. -## Screen - -TBD - ## Requirement To run this app, you need the following libraries: From 145f65ac3302be0b94accfa87900fb836e49e4e8 Mon Sep 17 00:00:00 2001 From: KaitoMuraoka Date: Mon, 8 Jul 2024 01:01:54 +0900 Subject: [PATCH 3/6] =?UTF-8?q?LicenseList=E3=82=92=E9=80=9A=E3=81=99?= =?UTF-8?q?=E3=81=9F=E3=82=81=E3=81=AE=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=97?= =?UTF-8?q?=E3=83=88=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PasswordBox.xcodeproj/project.pbxproj | 10 ++++++++++ ci_scripts/ci_post_clone.sh | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 ci_scripts/ci_post_clone.sh diff --git a/PasswordBox.xcodeproj/project.pbxproj b/PasswordBox.xcodeproj/project.pbxproj index 74bc197..4f6b61f 100644 --- a/PasswordBox.xcodeproj/project.pbxproj +++ b/PasswordBox.xcodeproj/project.pbxproj @@ -82,6 +82,7 @@ 3F8C85B72C189D4B0032277E /* PasswordBoxUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PasswordBoxUITestsLaunchTests.swift; sourceTree = ""; }; 3F8C85C42C189F0C0032277E /* ListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListView.swift; sourceTree = ""; }; 3F8C85C62C189F230032277E /* CellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CellView.swift; sourceTree = ""; }; + 3F91E4C62C3AF36000FBF876 /* ci_post_clone.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_post_clone.sh; sourceTree = ""; }; 3F99FC4E2C390873001ED4B2 /* Images.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = ""; }; 3F99FC502C390D65001ED4B2 /* IconStyles.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconStyles.swift; sourceTree = ""; }; 3F99FC582C39258B001ED4B2 /* Entry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Entry.swift; sourceTree = ""; }; @@ -214,6 +215,7 @@ 3F8C858E2C189D4A0032277E = { isa = PBXGroup; children = ( + 3F91E4C52C3AF32A00FBF876 /* ci_scripts */, 3F8C85992C189D4A0032277E /* PasswordBox */, 3F8C85AA2C189D4B0032277E /* PasswordBoxTests */, 3F8C85B42C189D4B0032277E /* PasswordBoxUITests */, @@ -270,6 +272,14 @@ path = PasswordBoxUITests; sourceTree = ""; }; + 3F91E4C52C3AF32A00FBF876 /* ci_scripts */ = { + isa = PBXGroup; + children = ( + 3F91E4C62C3AF36000FBF876 /* ci_post_clone.sh */, + ); + path = ci_scripts; + sourceTree = ""; + }; 3F99FC4D2C390859001ED4B2 /* Resources */ = { isa = PBXGroup; children = ( diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh new file mode 100644 index 0000000..c3ef546 --- /dev/null +++ b/ci_scripts/ci_post_clone.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# ci_post_clone.sh +# PasswordBox +# +# Created by 村岡海人 on 2024/07/08. +# + +defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES From 470a9eaeae1d45a4889745eb67243997a64160f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=82=93=E3=81=A8=E3=82=93=E3=81=BC?= <70003919+KaitoMuraoka@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:11:32 +0900 Subject: [PATCH 4/6] Update release-drafter.yml --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1bef989..7b9839b 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -31,6 +31,6 @@ jobs: uses: release-drafter/release-drafter@v5 with: tag: ${{ env.RELEASE_TAG }} - name: Release ${{ env.RELEASE_TAG }} + name: v${{ env.RELEASE_TAG }} version: ${{ env.RELEASE_TAG }} publish: true From b273270eae786f2061eebf90b2a18beb352f8de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=82=93=E3=81=A8=E3=82=93=E3=81=BC?= <70003919+KaitoMuraoka@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:12:16 +0900 Subject: [PATCH 5/6] Create release-pr.yml --- .github/workflows/release-pr.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release-pr.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 0000000..392ff73 --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,22 @@ +name: Label Release PRs +# release/ブランチに release タグを付与します + +on: + pull_request: + types: + - opened + - synchronize + branches: + - main + +jobs: + label_release_pr: + if: startsWith(github.head_ref, 'release/') + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Add label to release PRs + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: release From c1a6b53dd0cc3748cde8873cca7d42f9eaa63b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=82=93=E3=81=A8=E3=82=93=E3=81=BC?= <70003919+KaitoMuraoka@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:15:10 +0900 Subject: [PATCH 6/6] Update release-drafter.yml --- .github/release-drafter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 713e99e..200870a 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -55,3 +55,5 @@ autolabeler: - label: documentation branch: - "/^doc[/-].+/" +exclude-labels: + - release