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

1.0 #3

Merged
merged 7 commits into from
Jul 8, 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
59 changes: 59 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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[/-].+/"
exclude-labels:
- release
36 changes: 36 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -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: v${{ env.RELEASE_TAG }}
version: ${{ env.RELEASE_TAG }}
publish: true
22 changes: 22 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions PasswordBox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
3F8C85B72C189D4B0032277E /* PasswordBoxUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PasswordBoxUITestsLaunchTests.swift; sourceTree = "<group>"; };
3F8C85C42C189F0C0032277E /* ListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListView.swift; sourceTree = "<group>"; };
3F8C85C62C189F230032277E /* CellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CellView.swift; sourceTree = "<group>"; };
3F91E4C62C3AF36000FBF876 /* ci_post_clone.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_post_clone.sh; sourceTree = "<group>"; };
3F99FC4E2C390873001ED4B2 /* Images.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = "<group>"; };
3F99FC502C390D65001ED4B2 /* IconStyles.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconStyles.swift; sourceTree = "<group>"; };
3F99FC582C39258B001ED4B2 /* Entry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Entry.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -214,6 +215,7 @@
3F8C858E2C189D4A0032277E = {
isa = PBXGroup;
children = (
3F91E4C52C3AF32A00FBF876 /* ci_scripts */,
3F8C85992C189D4A0032277E /* PasswordBox */,
3F8C85AA2C189D4B0032277E /* PasswordBoxTests */,
3F8C85B42C189D4B0032277E /* PasswordBoxUITests */,
Expand Down Expand Up @@ -270,6 +272,14 @@
path = PasswordBoxUITests;
sourceTree = "<group>";
};
3F91E4C52C3AF32A00FBF876 /* ci_scripts */ = {
isa = PBXGroup;
children = (
3F91E4C62C3AF36000FBF876 /* ci_post_clone.sh */,
);
path = ci_scripts;
sourceTree = "<group>";
};
3F99FC4D2C390859001ED4B2 /* Resources */ = {
isa = PBXGroup;
children = (
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -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
Loading