hi PR #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow file adds the 'lgtm' and 'approved' labels to Dependabot PRs | |
# This is done to ensure that the PRs that pass e2e are automatically merged/added to merge-queues by the CodeFlare bot | |
name: Dependabot Labeler | |
on: | |
pull_request: | |
types: [ labeled, synchronize, opened, reopened ] | |
jobs: | |
add-approve-lgtm-label: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'dependabot') }} | |
runs-on: ubuntu-latest | |
# Permission required to edit a PR | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Add approve and lgtm labels to Dependabot PR | |
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "lgtm" --add-label "approved" | |
env: | |
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} |