Skip to content

refactor: remove duplicated code #742

refactor: remove duplicated code

refactor: remove duplicated code #742

Workflow file for this run

name: Bot - On PR Update
# Runs on new commits (synchronize) and PR body edits (edited). Performs all
# 4 checks (DCO, GPG, merge conflict, issue link), posts/updates unified
# comment, and conditionally swaps the status label via bot-on-pr-update.js.
# For edited events, exits early if only title/base changed.
on:
pull_request_target:
types:
- synchronize
- edited
workflow_dispatch: # Manual trigger for testing
permissions:
contents: read
pull-requests: write
checks: write
jobs:
on-pr-update:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
concurrency:
group: pr-bot-${{ github.event.pull_request.number }}
cancel-in-progress: false
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.repository.default_branch }}
- name: Run Bot
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const script = require('./.github/scripts/bot-on-pr-update.js');
await script({ github, context });