Github Actions workflow dedicated to automatically assign random assignee to PRs created by dependabot.
Dependabot automatically creates PRs based on the updates of packages and libraries that project is depended on. When PRs are created, team members should check if upgrading the version will break the project or not. In case of breaking changes, member should refactor the project accordingly. Although PRs are created, often these PRs are left unchecked as team members become busy. In accordance to the situation, assigning members randomly would prevent PRs being unchecked.
on: pull_request_target
runs on creation of pull request
if: ${{ github.actor == 'dependabot[bot]' }}
allow actions to be run only PR is created by dependabot.
uses: actions/github-script@v6
action that allows running javascript inside the workflow
https://dev.classmethod.jp/articles/github-dependabot-auto-merge/ [JA]
https://zenn.dev/cumet04/articles/actions-firstparty-random-assign [JA]