You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under any .github/workflows/ files that contain checks that are required to be retested after addition to the merge queue add the following. Note - if you are not sure which ones, check any that are triggered on.push_request_target: main
If you are using path_ignores or path to skip jobs based on specified directories or files
Under jobs add the following pre-job to the top of the list of jobs
pre-job:
runs-on: ubuntu-latest
name: Pre job checks
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- uses: actions/checkout@v4
- id: skip_check
uses: fkirc/[email protected]
with:
cancel_others: false
paths_ignore: '[<your entries for path_ignores comma separated>]'
OR
paths: '[<your entries for path comma separated>]'
Remove the entry for paths_ignores OR path, it is now handled by the pre-job
For all workflow files regardless of the use of path_ignore and that contain jobs that need to be retested on addition to the merge queue, to the bottom of the job list add the following:
required-checks:
name: <Name of Workflow> Required Checks
# This check adds a list of checks to one job to simplify adding settings to the repo.
# If a new check is added in this file, and it should be retested on entry to the merge queue,
# it needs to be added to the list below aka needs: [ existing check 1, existing check 2, new check ].
needs: [ <your list of checks that should be retested> ]
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo '${{ toJSON(needs) }}' | jq -e 'all(.[]; .result == "success" or .result == "skipped")'
Setting Changes
After your pr is merged add the following settings.
Your Repo -> Settings-> Branches -> main -> edit -> Require status checks to pass before merging -> true
-> Status Checks that are required -> Add using the required-checks.name for any that you have added to your workflow files.
It will look something like the following. Pro Tip: search for Required Checks and all your applicable checks should appear in the dropdown
Your Repo -> Settings-> Branches -> main -> edit -> Require merge queue
Changes Required
Configuration Changes
Under any
.github/workflows/
files that contain checks that are required to be retested after addition to the merge queue add the following. Note - if you are not sure which ones, check any that are triggeredon.push_request_target: main
Add the following to
on
If you are using
path_ignores
orpath
to skip jobs based on specified directories or filesUnder jobs add the following pre-job to the top of the list of jobs
Remove the entry for
paths_ignores
ORpath
, it is now handled by the pre-jobFor each job add the following entry:
For all workflow files regardless of the use of
path_ignore
and that contain jobs that need to be retested on addition to the merge queue, to the bottom of the job list add the following:Setting Changes
After your pr is merged add the following settings.
Your Repo ->
Settings
->Branches
->main
->edit
->Require status checks to pass before merging
->true
->
Status Checks that are required
-> Add using therequired-checks.name
for any that you have added to your workflow files.It will look something like the following. Pro Tip: search for
![Image](https://private-user-images.githubusercontent.com/6498727/408211966-61aefe14-ab38-4992-ac74-d40c111aa8d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjE5NzgsIm5iZiI6MTczODgyMTY3OCwicGF0aCI6Ii82NDk4NzI3LzQwODIxMTk2Ni02MWFlZmUxNC1hYjM4LTQ5OTItYWM3NC1kNDBjMTExYWE4ZDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMDYwMTE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGNjY2Q2ZDgxNWEwZDYzNjY5MmMwMGIwMThkN2IzNjY2NDNjMTU5YmM3NWUzYjZjYjU4ZDk4Mjk5MjI3NjZhNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.KIYlbL8fQV0HNkciLGWM46UNb7RGVB-IKGIPSmfZV00)
Required Checks
and all your applicable checks should appear in the dropdownYour Repo ->
Settings
->Branches
->main
->edit
->Require merge queue
Repo Checklist
keep prow?
keep prow?
keep prow?
The text was updated successfully, but these errors were encountered: