Skip to content

Commit 1f91a83

Browse files
henrymercerCopilot
andcommitted
Run the per-language bundle check on its feature branch
Per-language bundles are not yet published as part of a release, so this check points at a pre-release and needs exercising before it can run on `main`. Allow a check to opt in to running on additional branches so that it can be, without opening a pull request. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d4c7b873-8278-4a36-b67c-6cc5ea3b2316
1 parent 0bb18f2 commit 1f91a83

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎.github/workflows/__per-language-bundle.yml‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pr-checks/checks/per-language-bundle.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Per-language bundle"
22
description: "Tests that a CodeQL bundle containing only a single language can analyze that language"
33
versions:
44
- linked # Unused: this test pins `tools` to a specific per-language bundle.
5+
# TODO: Remove once per-language bundles ship in a release, so that this check no longer needs to be
6+
# exercised on a feature branch.
7+
extraPushBranches:
8+
- henrymercer/per-language-bundles
59
steps:
610
- id: init
711
uses: ./../action/init

‎pr-checks/sync.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ interface Specification extends JobSpecification {
9090

9191
/** If set, this check is part of a named collection that gets its own caller workflow. */
9292
collection?: string;
93+
94+
/**
95+
* Additional branches on which a push should run this check.
96+
*
97+
* Useful for temporarily exercising a check on a feature branch without opening a pull request.
98+
*/
99+
extraPushBranches?: string[];
93100
}
94101

95102
/** Minimal type to represent steps in Actions workflows. */
@@ -763,7 +770,11 @@ function main(): void {
763770
},
764771
on: {
765772
push: {
766-
branches: ["main", "releases/v*"],
773+
branches: [
774+
"main",
775+
"releases/v*",
776+
...(checkSpecification.extraPushBranches ?? []),
777+
],
767778
},
768779
pull_request: {},
769780
merge_group: {

0 commit comments

Comments
 (0)