Skip to content

backport: bitcoin#27501, bitcoin#28542 #32873

backport: bitcoin#27501, bitcoin#28542

backport: bitcoin#27501, bitcoin#28542 #32873

name: "Check Potential Conflicts"

Check warning on line 1 in .github/workflows/predict-conflicts.yml

View workflow run for this annotation

GitHub Actions / Check Potential Conflicts

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, closed]
pull_request_review:
types: [submitted]
permissions:
contents: read
pull-requests: write
issues: write # PR conversation comments use the Issues API
# Enforce other not needed permissions are off
actions: none
checks: none
deployments: none
packages: none
repository-projects: none
security-events: none
statuses: none
jobs:
predict_conflicts:
runs-on: ubuntu-latest
concurrency:
group: predict-conflicts
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Validate potential conflicts and update advisory comments
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENT_ACTION: ${{ github.event.action }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
python3 -m pip install requests
if [ "$EVENT_ACTION" = "closed" ]; then
.github/workflows/handle_potential_conflicts.py --pr-number "$PR_NUMBER" --cleanup-closed
else
.github/workflows/handle_potential_conflicts.py --pr-number "$PR_NUMBER"
fi