Skip to content

DependabotによるPull Requestに対しての対応を検討したい。 #517

Description

@daisukenishino2

Dependabotの機能(PR作成機能)には

  • 「バージョン更新(Version updates)」と
  • 「セキュリティアップデート(Security updates)」

の2種類がある。

「セキュリティアップデートも含めて、特定のブランチ(例: develop)にPRを集約したい」場合は、
GitHub ActionsでPR作成時にベースブランチを自動変更するワークフローを組む方法が一般的とのこと。

name: Change Dependabot PR Base Branch

on:
  pull_request_target:
    types: [opened]

jobs:
  change-base:
    if: github.actor == 'dependabot[bot]'
    runs-on: ubuntu-latest
    steps:
      - name: Change base branch
        run: |
          gh pr edit ${{ github.event.pull_request.number }} --base develop
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          

また、ブランチにPRをマージ後、テストし、その結果を得たい。

以前作成した、CIスクリプトを「windows-latest」で実行できないか?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions