Skip to content

Commit e0515b9

Browse files
fix: use dynamic repository reference and update checkout action
- Use repository from environment variable for conflict PR URLs - Update checkout action from v3 to v4 for latest features
1 parent 2758785 commit e0515b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/handle_potential_conflicts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def main():
155155
conflict_details.append({
156156
'number': conflict_pr_num,
157157
'title': conflict_pr_json.get('title', 'Unknown'),
158-
'url': conflict_pr_json.get('html_url', f'https://github.com/dashpay/dash/pull/{conflict_pr_num}')
158+
'url': conflict_pr_json.get('html_url', f'https://github.com/{repo}/pull/{conflict_pr_num}')
159159
})
160160
else:
161161
print(f"Warning: Unexpected response for PR {conflict_pr_num} mergeability check. URL: {pre_mergeable.url}", file=sys.stderr)

.github/workflows/predict-conflicts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
ghToken: "${{ secrets.GITHUB_TOKEN }}"
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
- name: validate potential conflicts
3333
id: validate_conflicts
3434
run: pip3 install hjson && .github/workflows/handle_potential_conflicts.py "$conflicts"

0 commit comments

Comments
 (0)