An open API service indexing awesome lists of open source software.

https://github.com/yasslab/dependabot_auto_merge

Customized Dependabot Share Action for YassLab team to merge automatically.
https://github.com/yasslab/dependabot_auto_merge

actions yaml yasslab

Last synced: about 1 month ago
JSON representation

Customized Dependabot Share Action for YassLab team to merge automatically.

Awesome Lists containing this project

README

          

# Dependabot Auto Merge for YassLab team

YassLab チーム用の Dependabot カスタムアクションです。

[» デフォルト設定を見る](https://github.com/yasslab/dependabot_auto_merge/blob/main/action.yml)
[» レビュー利用例を見る](https://github.com/yasslab/yasslab.jp/blob/main/.github/workflows/dependabot.yml)
[» 関連リポジトリを見る](https://github.com/yasslab/claude_review_action)


## Example Usage

```bash
.github/workflows/dependabot.yml
```

```yaml
name: Auto-merge Dependabot PRs
on:
pull_request:
# Allows you to run this workflow manually from the Actions tab
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: yasslab/dependabot_auto_merge@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```

### 必要な設定

- Settings → General → "Allow auto-merge" を有効化

### 使用できるオプション

| パラメータ | デフォルト | 説明 |
|---------------------|----------------|--------------|
| `merge-level` | `all` | 自動マージする最大レベル (`patch`, `minor`, `all`) |
| `merge-method` | `squash` | マージ方法 (`merge`, `squash`, `rebase`) |
| `exclude-gems` | `rails,jekyll` | 除外するRuby gem(カンマ区切り) |
| `wait-for-ci` | `true` | CIが通るまで待機してマージ(最大60分) |

-----

Copyright © [YassLab](https://github.com/yasslab).