Skip to content

feat: configure dependabot #1

feat: configure dependabot

feat: configure dependabot #1

name: Add ok-to-test label for dependabot PRs
on: pull_request
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
# fetch informations about PR
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#label-a-pull-request
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Add a label ok-to-test to dependabot PRs
run: gh pr edit "$PR_URL" --add-label "ok-to-test"
env:
PR_URL: ${{github.event.pull_request.html_url}}