Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/pr-review-fix-scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
required: false
default: "1"
type: string
target_repository:
description: Repository to scan, in owner/name form; defaults to the caller repository
required: false
default: ""
type: string
retry_hours:
description: Minimum hours before redispatching autofix for the same head
required: false
Expand Down Expand Up @@ -53,6 +58,14 @@ on:
description: Maximum autofix runs to dispatch
required: false
default: "1"
target_repository:
description: Repository to scan, in owner/name form; defaults to PR_REVIEW_FIX_TARGET_REPOSITORY or this repository
required: false
default: ""
base_branch:
description: Base branch to scan; defaults to PR_REVIEW_FIX_BASE_BRANCH or this repository default branch
required: false
default: ""
retry_hours:
description: Minimum hours before redispatching autofix for the same head
required: false
Expand All @@ -61,9 +74,11 @@ on:
description: Target repository autofix workflow file
required: false
default: "pr-review-autofix.yml"
schedule:
- cron: "23 */2 * * *"

concurrency:
group: central-pr-review-fix-scheduler-${{ github.repository }}
group: central-pr-review-fix-scheduler-${{ inputs.target_repository || vars.PR_REVIEW_FIX_TARGET_REPOSITORY || github.repository }}
cancel-in-progress: false

jobs:
Expand All @@ -78,7 +93,8 @@ jobs:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
GH_TOKEN: ${{ github.token }}
DEFAULT_BRANCH: ${{ inputs.base_branch || github.event.repository.default_branch }}
TARGET_REPOSITORY: ${{ inputs.target_repository || vars.PR_REVIEW_FIX_TARGET_REPOSITORY || github.repository }}
DEFAULT_BRANCH: ${{ inputs.base_branch || vars.PR_REVIEW_FIX_BASE_BRANCH || github.event.repository.default_branch }}
DRY_RUN: ${{ inputs.dry_run == true }}
MAX_PRS: ${{ inputs.max_prs || '50' }}
MAX_DISPATCHES: ${{ inputs.max_dispatches || '1' }}
Expand All @@ -101,7 +117,7 @@ jobs:
run: |
set -euo pipefail
args=(
--repo "$GITHUB_REPOSITORY"
--repo "$TARGET_REPOSITORY"
--base-branch "$DEFAULT_BRANCH"
--max-prs "$MAX_PRS"
--max-dispatches "$MAX_DISPATCHES"
Expand Down
Loading