feat(lifecycle): calendar-anchored customer snapshot [LTV-Pl] #696
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR agent context refresh | |
| run-name: >- | |
| ${{ | |
| github.event_name == 'workflow_dispatch' && | |
| format( | |
| 'dispatch refresh PR #{0} @ {1}', | |
| github.event.inputs.pull_request_number, | |
| github.event.inputs.pull_request_head_sha | |
| ) || | |
| github.event_name == 'pull_request_review' && | |
| format('review refresh PR #{0}', github.event.pull_request.number) || | |
| github.event_name == 'pull_request_review_comment' && | |
| format('review-comment refresh PR #{0}', github.event.pull_request.number) || | |
| github.event_name == 'check_run' && | |
| format( | |
| 'check refresh {0}', | |
| github.event.check_run.pull_requests[0].number || github.event.check_run.head_sha | |
| ) || | |
| github.workflow | |
| }} | |
| on: | |
| pull_request_review: | |
| types: [submitted, edited, dismissed] | |
| pull_request_review_comment: | |
| types: [created, edited, deleted] | |
| check_run: | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| pull_request_number: | |
| description: PR number to refresh | |
| required: true | |
| type: string | |
| pull_request_head_sha: | |
| description: Head SHA of the PR | |
| required: true | |
| type: string | |
| pull_request_base_sha: | |
| description: Base SHA of the PR | |
| required: true | |
| type: string | |
| trigger_event_name: | |
| description: Synthetic trigger event name used in rendered metadata | |
| required: false | |
| default: workflow_dispatch | |
| type: string | |
| trigger_event_action: | |
| description: Synthetic trigger event action used in rendered metadata | |
| required: false | |
| default: "" | |
| type: string | |
| # SHA-aware concurrency: workflow_dispatch runs key on PR+SHA so same-PR/different-SHA | |
| # dispatches can run independently. Direct event-triggered refreshes cancel older in-flight runs; | |
| # workflow_dispatch refreshes share the PR+SHA group but are allowed to finish instead of being cancelled. | |
| concurrency: | |
| group: >- | |
| pr-agent-context-refresh-${{ | |
| (github.event_name == 'workflow_dispatch' && | |
| format('{0}-{1}', github.event.inputs.pull_request_number, github.event.inputs.pull_request_head_sha)) || | |
| github.event.pull_request.number || | |
| github.event.check_run.pull_requests[0].number || | |
| github.event.check_run.head_sha || | |
| github.sha | |
| }} | |
| cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }} | |
| permissions: | |
| contents: read | |
| actions: read | |
| pull-requests: write | |
| jobs: | |
| pr-agent-context-refresh: | |
| name: PR agent context refresh | |
| if: >- | |
| (github.event_name == 'workflow_dispatch' && | |
| github.event.inputs.pull_request_number != '' && | |
| github.event.inputs.pull_request_base_sha != '' && | |
| github.event.inputs.pull_request_head_sha != '') || | |
| (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 | |
| trigger_event_name_override: ${{ github.event.inputs.trigger_event_name || '' }} | |
| trigger_event_action_override: ${{ github.event.inputs.trigger_event_action || '' }} | |
| pull_request_number_override: ${{ github.event.inputs.pull_request_number || '' }} | |
| pull_request_head_sha_override: ${{ github.event.inputs.pull_request_head_sha || '' }} | |
| pull_request_base_sha_override: ${{ github.event.inputs.pull_request_base_sha || '' }} | |
| 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 | |
| coverage_source_workflows: CI | |
| enable_cross_run_coverage_lookup: true | |
| wait_for_reviews_to_settle: true | |
| publish_all_clear_comments_in_refresh: false | |
| debug_artifacts: true |