Skip to content

docs: add mandatory branch/PR workflow rules #3

docs: add mandatory branch/PR workflow rules

docs: add mandatory branch/PR workflow rules #3

name: PR agent context refresh
on:
pull_request_review:
types: [submitted, edited, dismissed]
pull_request_review_comment:
types: [created, edited, deleted]
check_run:
types: [completed]
concurrency:
group: >-
pr-agent-context-refresh-${{
github.event.pull_request.number ||
github.event.check_run.pull_requests[0].number ||
github.event.check_run.head_sha ||
github.sha
}}
cancel-in-progress: true
permissions:
contents: read
actions: read
pull-requests: write
jobs:
pr-agent-context-refresh:
name: PR agent context refresh
if: >-
(github.event_name == 'pull_request_review' &&
github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'pull_request_review_comment' &&
github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'check_run' &&
github.event.action == 'completed' &&
github.event.check_run.app.slug != 'github-actions' &&
toJson(github.event.check_run.pull_requests) != '[]' &&
github.event.check_run.pull_requests[0].head.repo.full_name == github.repository)
uses: shaypal5/pr-agent-context/.github/workflows/pr-agent-context.yml@v4
with:
tool_ref: v4
execution_mode: refresh
publish_mode: append
include_review_comments: true
include_outdated_review_threads: true
include_failing_checks: true
include_failed_step_output: true
include_patch_coverage: true
target_patch_coverage: "100"
coverage_artifact_prefix: pr-agent-context-coverage
enable_cross_run_coverage_lookup: true
wait_for_reviews_to_settle: true
publish_all_clear_comments_in_refresh: false
debug_artifacts: true