-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from route06/naming-convention
feat!: ワークフローの命名規則をsnake_caseに変更
- Loading branch information
Showing
10 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
4 changes: 2 additions & 2 deletions
4
...ub/workflows/_get-last-discussion-url.yml → ...hub/workflows/get_last_discussion_url.yml
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -12,4 +12,10 @@ concurrency: | |
|
||
jobs: | ||
add-assignee-to-pr: | ||
uses: ./.github/workflows/_add-assignee-to-pr.yml | ||
uses: ./.github/workflows/add_assignee_to_pr.yml | ||
|
||
ls-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ls-lint/[email protected] |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @see: https://ls-lint.org/2.2/configuration/the-rules.html#overview | ||
ls: | ||
.github/workflows: | ||
.yml: snake_case |
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 3. ワークフローの命名規則 | ||
|
||
## ステータス | ||
|
||
- [ ] 提案中 | ||
- [x] 承認 | ||
- [ ] 否認 | ||
- [ ] 廃止 | ||
- [ ] 保留 | ||
|
||
## 背景 | ||
|
||
提供するワークフローの命名規則を決めたい。 | ||
Reusable Workflow は `/.github/workflows` に配置する必要があり、route06/actionsの利用者が参照するワークフローと自リポジトリでのみ利用するワークフローが混在することになる。この問題に対処するため、これらの区別ができるように命名規則を決めたい。 | ||
|
||
## 決定 | ||
|
||
- ワークフローのCaseは全てsnake_caseとする | ||
- 自リポジトリでのみ利用するワークフローは、 `my_{workflow_name}.yml` とする | ||
|
||
## コンプライアンス | ||
|
||
- [ls-lint](https://ls-lint.org/)をCIで実行し、snake_caseに準拠しているかを確認する。 | ||
|
||
## 影響 | ||
|
||
- 良い影響として、route06/actionsのコントリビューターが、命名規則について判断する必要がなくなる |
This file contains 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