Repository navigation
revert: "ci(workflows): consolidate pr workflows into ci.yml" #16
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| # name: Auto Author Assign | ||
| # | ||
| # on: | ||
| # pull_request_target: | ||
| # types: | ||
| # - opened | ||
| # - reopened | ||
| # | ||
| # permissions: | ||
| # pull-requests: write | ||
| # | ||
| # jobs: | ||
| # assign-author: | ||
| # name: Assign PR author as assignee | ||
| # runs-on: ubuntu-slim | ||
| # steps: | ||
| # - uses: toshimaru/auto-author-assign@v3.0.1 | ||
| name: Auto Author Assign | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - reopened | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| assign-author: | ||
| name: Assign PR author as assignee | ||
| runs-on: ubuntu-slim | ||
| steps: | ||
| - uses: toshimaru/auto-author-assign@v3.0.1 | ||
|
Yusuke4869 marked this conversation as resolved.
Yusuke4869 marked this conversation as resolved.
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,78 +1,78 @@ | ||
| # name: Semantic PR Title | ||
| # | ||
| # on: | ||
| # pull_request_target: | ||
| # types: | ||
| # - opened | ||
| # - reopened | ||
| # - edited | ||
| # - synchronize | ||
| # | ||
| # permissions: | ||
| # statuses: write | ||
| # pull-requests: write | ||
| # | ||
| # jobs: | ||
| # lint: | ||
| # name: Validate PR title | ||
| # runs-on: ubuntu-slim | ||
| # steps: | ||
| # - name: Lint PR title | ||
| # id: lint_pr_title | ||
| # uses: amannn/action-semantic-pull-request@v6 | ||
| # env: | ||
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # with: | ||
| # disallowScopes: | | ||
| # .*[A-Z].* | ||
| # subjectPattern: ^(?![A-Z]).+$ | ||
| # subjectPatternError: | | ||
| # Pull Request のタイトル "{title}" に含まれる subject "{subject}" がルールに一致しませんでした。 | ||
| # subject は大文字で始まらないようにしてください。 | ||
| # # 主にプライベートリポジトリ向けの `[WIP]` 接頭辞対応 | ||
| # # これを有効にする場合、statuses: write 権限が必要 | ||
| # wip: true | ||
| # | ||
| # - name: Comment on failure | ||
| # if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
| # uses: marocchino/sticky-pull-request-comment@v2 | ||
| # with: | ||
| # header: semantic-pr-title | ||
| # message: | | ||
| # Pull Request のタイトルは [Conventional Commits](https://www.conventionalcommits.org/ja/) に従う必要があります。 | ||
| # 提案されたタイトルは調整が必要なようです。 | ||
| # | ||
| # 以下のフォーマットに従ってください。 | ||
| # | ||
| # ``` | ||
| # feat(api): add user endpoint | ||
| # ^ ^ ^ | ||
| # │ │ └── subject | ||
| # │ └──────── scope(任意) | ||
| # └───────────── type | ||
| # ``` | ||
| # | ||
| # > [!NOTE] | ||
| # > 先頭に変更の種類 `type` を付け、その後に短く変更の内容 `subject` を書きます。 | ||
| # > `scope` は任意ですが、書く場合は `(scope)` を `type` の後に付けてください。 | ||
| # > なお、`scope` に大文字を使用することはできず、`subject` を大文字で始めることはできません。 | ||
| # | ||
| # > [!NOTE] | ||
| # > Revert PR の場合、タイトルは `revert: <original commit>` の形式にする必要があります。 | ||
| # | ||
| # > [!TIP] | ||
| # > ドラフト(Work in Progress)PR の場合、タイトルの先頭に `[WIP]` を付けることができます。 | ||
| # > なお、マージの際にはこの `[WIP]` を削除してください。 | ||
| # | ||
| # 詳細(エラー): | ||
| # ``` | ||
| # ${{ steps.lint_pr_title.outputs.error_message }} | ||
| # ``` | ||
| # | ||
| # - name: Clear comment on success | ||
| # if: always() && (steps.lint_pr_title.outputs.error_message == null) | ||
| # uses: marocchino/sticky-pull-request-comment@v2 | ||
| # with: | ||
| # header: semantic-pr-title | ||
| # delete: true | ||
| name: Semantic PR Title | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - edited | ||
| - synchronize | ||
|
|
||
| permissions: | ||
| statuses: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Validate PR title | ||
| runs-on: ubuntu-slim | ||
|
Yusuke4869 marked this conversation as resolved.
|
||
| steps: | ||
| - name: Lint PR title | ||
| id: lint_pr_title | ||
| uses: amannn/action-semantic-pull-request@v6 | ||
|
Yusuke4869 marked this conversation as resolved.
|
||
| env: | ||
|
Yusuke4869 marked this conversation as resolved.
|
||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| with: | ||
| disallowScopes: | | ||
| .*[A-Z].* | ||
| subjectPattern: ^(?![A-Z]).+$ | ||
| subjectPatternError: | | ||
| Pull Request のタイトル "{title}" に含まれる subject "{subject}" がルールに一致しませんでした。 | ||
| subject は大文字で始まらないようにしてください。 | ||
| # 主にプライベートリポジトリ向けの `[WIP]` 接頭辞対応 | ||
| # これを有効にする場合、statuses: write 権限が必要 | ||
| wip: true | ||
|
|
||
| - name: Comment on failure | ||
| if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
| uses: marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: semantic-pr-title | ||
| message: | | ||
| Pull Request のタイトルは [Conventional Commits](https://www.conventionalcommits.org/ja/) に従う必要があります。 | ||
| 提案されたタイトルは調整が必要なようです。 | ||
|
|
||
| 以下のフォーマットに従ってください。 | ||
|
|
||
| ``` | ||
| feat(api): add user endpoint | ||
| ^ ^ ^ | ||
| │ │ └── subject | ||
| │ └──────── scope(任意) | ||
| └───────────── type | ||
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > 先頭に変更の種類 `type` を付け、その後に短く変更の内容 `subject` を書きます。 | ||
| > `scope` は任意ですが、書く場合は `(scope)` を `type` の後に付けてください。 | ||
| > なお、`scope` に大文字を使用することはできず、`subject` を大文字で始めることはできません。 | ||
|
|
||
| > [!NOTE] | ||
| > Revert PR の場合、タイトルは `revert: <original commit>` の形式にする必要があります。 | ||
|
|
||
| > [!TIP] | ||
| > ドラフト(Work in Progress)PR の場合、タイトルの先頭に `[WIP]` を付けることができます。 | ||
| > なお、マージの際にはこの `[WIP]` を削除してください。 | ||
|
|
||
| 詳細(エラー): | ||
| ``` | ||
| ${{ steps.lint_pr_title.outputs.error_message }} | ||
| ``` | ||
|
|
||
| - name: Clear comment on success | ||
| if: always() && (steps.lint_pr_title.outputs.error_message == null) | ||
| uses: marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: semantic-pr-title | ||
| delete: true | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.