Skip to content

Commit 5bfdfe8

Browse files
massongitrenovate[bot]github-actions[bot]
authored
dev-hato/actions-format-json-ymlアップデート・CI update-readmeへのprettier追加 (#1679)
* Update dev-hato/actions-format-json-yml action to v0.0.67 * Add prettier * README修正 (#1680) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add if --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b3c273e commit 5bfdfe8

10 files changed

Lines changed: 60 additions & 40 deletions

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
pull_request:
1717
branches: ["main"]
1818
schedule:
19-
- cron: '28 4 * * 6'
19+
- cron: "28 4 * * 6"
2020
permissions:
2121
actions: read
2222
contents: read
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
language: ['javascript-typescript']
37+
language: ["javascript-typescript"]
3838
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
3939
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
4040
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both

.github/workflows/format-json-yml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fetch-depth: 0
3030
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3131
token: ${{steps.generate_token.outputs.token}}
32-
- uses: dev-hato/actions-format-json-yml@v0.0.66
32+
- uses: dev-hato/actions-format-json-yml@v0.0.67
3333
with:
3434
github-token: ${{steps.generate_token.outputs.token}}
3535
concurrency:

.github/workflows/github-actions-cache-cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
schedule:
8-
- cron: '0 21 * * *' # 06:00 JST
8+
- cron: "0 21 * * *" # 06:00 JST
99
workflow_dispatch:
1010
permissions: read-all
1111
jobs:

.github/workflows/update-readme.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
INPUTS: ${{steps.get_inputs_markdown.outputs.result}}
4646
if: github.event_name != 'pull_request' || github.event.action != 'closed'
4747
run: bash "${GITHUB_WORKSPACE}/scripts/update_readme/update_readme/update_readme.sh"
48+
- run: npx prettier --write .
49+
if: github.event_name != 'pull_request' || github.event.action != 'closed'
4850
- uses: ./
4951
with:
5052
github-token: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,28 @@ jobs:
4040
4141
## 例
4242
43-
* 元のPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/96>
44-
* 本Actionsによって作成されたPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/98>
43+
- 元のPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/96>
44+
- 本Actionsによって作成されたPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/98>
4545
4646
## 引数
4747
48-
| 引数名 | 説明 | 必須 | デフォルト値 |
49-
|:---:|:---:|:---:|:--:|
50-
| github-token | GitHubのトークン。 | O | |
51-
| branch-name-prefix | branch名の接頭語。 | | fix |
52-
| pr-title-prefix | PRのタイトルの接頭語。 | | fix |
53-
| pr-description-prefix | 本文の接頭語。 | | |
54-
| exit-failure | 実行完了時にCIを失敗させるかどうか。 | | true |
55-
| working-directory | 実行対象のディレクトリ | | |
56-
| no-verify | `git commit`, `git push` 時のフックを無効化する | | false |
48+
| 引数名 | 説明 | 必須 | デフォルト値 |
49+
| :-------------------: | :---------------------------------------------: | :--: | :----------: |
50+
| github-token | GitHubのトークン。 | O | |
51+
| branch-name-prefix | branch名の接頭語。 | | fix |
52+
| pr-title-prefix | PRのタイトルの接頭語。 | | fix |
53+
| pr-description-prefix | 本文の接頭語。 | | |
54+
| exit-failure | 実行完了時にCIを失敗させるかどうか。 | | true |
55+
| working-directory | 実行対象のディレクトリ | | |
56+
| no-verify | `git commit`, `git push` 時のフックを無効化する | | false |
5757

5858
## 対応しているトリガー
59-
* pull_request
60-
* push
61-
* schedule
62-
* workflow_dispatch
63-
* repository_dispatch
59+
60+
- pull_request
61+
- push
62+
- schedule
63+
- workflow_dispatch
64+
- repository_dispatch
6465

6566
## 開発
6667

README.template.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,20 @@ jobs:
4040
4141
## 例
4242
43-
* 元のPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/96>
44-
* 本Actionsによって作成されたPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/98>
43+
- 元のPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/96>
44+
- 本Actionsによって作成されたPR: <https://github.com/dev-hato/actions-diff-pr-management/pull/98>
4545
4646
## 引数
4747
4848
${INPUTS}
4949
5050
## 対応しているトリガー
51-
* pull_request
52-
* push
53-
* schedule
54-
* workflow_dispatch
55-
* repository_dispatch
51+
52+
- pull_request
53+
- push
54+
- schedule
55+
- workflow_dispatch
56+
- repository_dispatch
5657
5758
## 開発
5859

action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: 'diff-pr-management'
2-
author: 'dev-hato Development Team'
3-
description: 'PRのブランチに対して、フォーマッタを実行した結果をPRにするGitHub Actionsです。'
1+
name: "diff-pr-management"
2+
author: "dev-hato Development Team"
3+
description: "PRのブランチに対して、フォーマッタを実行した結果をPRにするGitHub Actionsです。"
44
inputs:
55
github-token: # id of input
6-
description: 'GitHubのトークン。'
6+
description: "GitHubのトークン。"
77
required: true
88
branch-name-prefix:
9-
description: 'branch名の接頭語。'
9+
description: "branch名の接頭語。"
1010
required: true
1111
default: fix
1212
pr-title-prefix:
13-
description: 'PRのタイトルの接頭語。'
13+
description: "PRのタイトルの接頭語。"
1414
required: true
1515
default: fix
1616
pr-description-prefix:
17-
description: '本文の接頭語。'
17+
description: "本文の接頭語。"
1818
required: true
1919
default: ""
2020
exit-failure:
21-
description: '実行完了時にCIを失敗させるかどうか。'
21+
description: "実行完了時にCIを失敗させるかどうか。"
2222
required: false
2323
default: "true"
2424
working-directory:
25-
description: '実行対象のディレクトリ'
25+
description: "実行対象のディレクトリ"
2626
required: false
2727
default: ""
2828
no-verify:
29-
description: '`git commit`, `git push` 時のフックを無効化する'
29+
description: "`git commit`, `git push` 時のフックを無効化する"
3030
required: false
3131
default: "false"
3232
runs:

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@proofdict/textlint-rule-proofdict": "3.1.2",
44
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "2.0.1",
55
"js-yaml": "4.1.0",
6+
"prettier": "^3.3.3",
67
"textlint": "14.2.0",
78
"textlint-filter-rule-comments": "1.2.2",
89
"textlint-rule-abbr-within-parentheses": "1.0.2",

renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>dev-hato/renovate-config"
5-
]
3+
"extends": ["github>dev-hato/renovate-config"]
64
}

0 commit comments

Comments
 (0)