Skip to content

Commit

Permalink
Feature/maintenance (#384)
Browse files Browse the repository at this point in the history
* ラベラーの設定を更新します。

* カスタム単語リストを追加します。

* Renovate設定ファイルを追加

* 自動マージ戦略を追加します

* ラベラーとプリコミットワークフロー更新

* タイムアウトを5分に変更

* Add concurrency settings for pre-commit workflow

* ラベラーのワークフローに同時実行制限を追加します。

* 自動割り当ての並行処理を追加します。

* 自動割り当てグループを更新する。

* 更新自動割り当てグループをgithub.refに変更する

* タイムアウトを5分に変更する。

* 自動割り当てとラベル付けジョブの設定を更新する。
  • Loading branch information
tqer39 authored Mar 27, 2024
1 parent 1f73624 commit cb5e01a
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 53 deletions.
26 changes: 26 additions & 0 deletions .cspell/custom-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
adrienverge
antonbabenko
autobuild
Autobuild
autofix
automerge
buildscript
CODEOWNERS
codeql
datasource
Datasources
igorshubovych
kentaro
markdownlint
nodenv
ooyama
pyenv
renovatebot
reviewdog
rinchsan
shellcheck
SSIA
textlint
textlintcache
tqer
buildx
30 changes: 15 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
"editorconfig":
- ".editorconfig"
editorconfig:
- .editorconfig

"document":
document:
- "**/*.md"
- "**/*.txt"
- "**/*.rst"
- "LICENSE"
- LICENSE

"terraform":
- ".github/actions/terraform**/action.yml"
- ".github/workflows/terraform**.yml"
terraform:
- .github/actions/terraform**/action.yml
- .github/workflows/terraform**.yml

"textlint":
textlint:
- "**/.textlint*"

"yamllint":
yamllint:
- "**/.yamllint"

"markdownlint":
markdownlint:
- "**/.markdownlint*.json"

"asdf":
asdf:
- "**/.tool-versions"

"actionlint":
- ".github/workflows/actionlint.yml"
actionlint:
- .github/workflows/actionlint.yml

"CODEOWNERS":
- "CODEOWNERS"
CODEOWNERS:
- CODEOWNERS
8 changes: 6 additions & 2 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
pull_request:
types: [opened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
add-reviews:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 2
timeout-minutes: 5
steps:
- name: Auto Assign
uses: kentaro-m/auto-assign-action@v2.0.0
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ name: Labeler
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
auto-labeling:
name: Auto-labeling
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
contents: read
pull-requests: write
timeout-minutes: 5
steps:
- name: Labeler
uses: actions/labeler@v4
- uses: actions/labeler@v4
11 changes: 6 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ on:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: pre-commit
uses: pre-commit/action@v3.0.1
- uses: pre-commit/action@v3.0.1
with:
extra_args: -a --show-diff-on-failure
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# renovate-config

Renovate Configuration.
このリポジトリには、依存関係の更新ツールであるRenovateの設定ファイルが含まれています。Renovateは、プロジェクトの依存関係を最新のバージョンに保つプロセスを自動化するのに役立ちます。

## 参照する仕組み

```mermaid
graph LR
A[リポジトリ] -- 参照 --> B[renovate.json]
B -- 参照 --> C[tqer39/renovate-config/default.json]
C -- 参照 --> C[tqer39/renovate-config/*.json]
```

## 動作方法

1. このリポジトリを自分のGitHubアカウントにフォークします。
2. プロジェクトの要件に基づいて、必要な変更を設定ファイルに行います。
3. Renovateを設定して、フォークしたリポジトリを設定のソースとして使用します。
4. Renovateは定期的にプロジェクトの依存関係をスキャンし、このリポジトリの設定に基づいて最新バージョンに更新するためのプルリクエストを作成します。

## 貢献

設定ファイルに対する提案や改善点がある場合は、問題を開いたりプルリクエストを送信したりしてください。

更新を楽しんでください!
4 changes: 4 additions & 0 deletions autoMergeStrategy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automergeStrategy": "squash"
}
33 changes: 7 additions & 26 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"dictionaries": ["custom-words"],
"files": [
"**",
".*/**"
Expand All @@ -7,31 +8,11 @@
".git",
".gitignore"
],
"words": [
"adrienverge",
"antonbabenko",
"autobuild",
"Autobuild",
"autofix",
"automerge",
"buildscript",
"CODEOWNERS",
"codeql",
"datasource",
"Datasources",
"igorshubovych",
"kentaro",
"markdownlint",
"nodenv",
"ooyama",
"pyenv",
"renovatebot",
"reviewdog",
"rinchsan",
"shellcheck",
"SSIA",
"textlint",
"textlintcache",
"tqer"
"dictionaryDefinitions": [
{
"name": "custom-words",
"path": "./.cspell/custom-words.txt",
"addWords": true
}
]
}
1 change: 1 addition & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"github>tqer39/renovate-config:automergeNodeEnv",
"github>tqer39/renovate-config:automergePreCommit",
"github>tqer39/renovate-config:automergePyEnv",
"github>tqer39/renovate-config:automergeStrategy",
"github>tqer39/renovate-config:automergeTerraform",
"github>tqer39/renovate-config:dependencyDashboard",
"github>tqer39/renovate-config:major",
Expand Down

0 comments on commit cb5e01a

Please sign in to comment.