{"id":51186734,"url":"https://github.com/trailofbits/check-up-to-dateness","last_synced_at":"2026-06-27T11:02:36.994Z","repository":{"id":293587064,"uuid":"970304260","full_name":"trailofbits/check-up-to-dateness","owner":"trailofbits","description":"Check whether a merge group PR is up to date relative to its base branch","archived":false,"fork":false,"pushed_at":"2026-04-20T15:29:26.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-18T08:34:46.517Z","etag":null,"topics":["github-action","merge-queue"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailofbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-21T20:03:59.000Z","updated_at":"2026-04-15T16:08:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"423178f5-8493-4ebc-88ba-b890efe57cc2","html_url":"https://github.com/trailofbits/check-up-to-dateness","commit_stats":null,"previous_names":["trailofbits/check-up-to-dateness"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trailofbits/check-up-to-dateness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcheck-up-to-dateness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcheck-up-to-dateness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcheck-up-to-dateness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcheck-up-to-dateness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailofbits","download_url":"https://codeload.github.com/trailofbits/check-up-to-dateness/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fcheck-up-to-dateness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34850575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-action","merge-queue"],"created_at":"2026-06-27T11:02:35.889Z","updated_at":"2026-06-27T11:02:36.984Z","avatar_url":"https://github.com/trailofbits.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check-up-to-dateness\n\nA GitHub action to check whether a [merge group] PR is up to date relative to its base branch\n\nOften, GitHub workflows are configured to run the same jobs (e.g., tests) on both `pull_request` and `merge_group` events. But if a PR is based on the head of it base branch and the tests pass on the `pull_request` event, there should be no need to rerun the tests on the `merge_group` event.\n\nThis action can be used to determine whether a PR is based on the head of its base branch and thus whether expensive jobs can be skipped.\n\n## Intended use\n\n1. Add a job like the following to your GitHub workflow:\n   ```yml\n   check-up-to-dateness:\n     outputs:\n       is-up-to-date: ${{ steps.main.outputs.is-up-to-date }}\n     runs-on: ubuntu-latest\n     steps:\n       - id: main\n         uses: trailofbits/check-up-to-dateness@v1\n   ```\n2. For any job you want to skip when merging, add the following:\n   ```yml\n   my-job:\n     needs: [check-up-to-dateness]\n     if: needs.check-up-to-dateness.outputs.is-up-to-date != 'true'\n   ```\n3. Under \"Settings\" -\u003e \"Branches\" -\u003e \"Branch protection rules\" -\u003e \"Require status checks to pass before merging\" -\u003e \"Status checks that are required\", add the job that you created in step 1, e.g.:\n   \u003cimg src=\"etc/required_status_checks.png\" width=768px\u003e\u003cbr\u003e\n   This final step ensures that if an error occurs in `check-up-to-dateness`, it will not cause a PR to be merged.\n\n[merge group]: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fcheck-up-to-dateness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailofbits%2Fcheck-up-to-dateness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fcheck-up-to-dateness/lists"}