Просмотр исходного кода

GitHub Action: make fix-all (v4) (#8097)

Can be triggered by writing a comment: `/fix-all`
Follow-up of:
* https://github.com/FreshRSS/FreshRSS/pull/8094
* https://github.com/FreshRSS/FreshRSS/pull/8095
* https://github.com/FreshRSS/FreshRSS/pull/8096

Fix to use the proper remote
Alexandre Alapetite 5 месяцев назад
Родитель
Сommit
2975c19574
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .github/workflows/commands.yml

+ 2 - 2
.github/workflows/commands.yml

@@ -111,8 +111,8 @@ jobs:
             git config user.name "github-actions[bot]"
             git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
 
-            # Get PR info
-            PR_JSON=$(gh pr view ${{ github.event.issue.number }} --json headRepository,headRefName,maintainerCanModify)
+            # Get PR info from the base repository
+            PR_JSON=$(gh pr view ${{ github.event.issue.number }} --repo ${{ github.repository }} --json headRepository,headRefName,maintainerCanModify)
             HEAD_REPO=$(echo "$PR_JSON" | jq -r '.headRepository.nameWithOwner')
             HEAD_BRANCH=$(echo "$PR_JSON" | jq -r '.headRefName')
             CAN_MODIFY=$(echo "$PR_JSON" | jq -r '.maintainerCanModify')