Skip to content

Commit

Permalink
chore(ci): use pr backports from upstream projen (#1717)
Browse files Browse the repository at this point in the history
By using the upstream version, we fix an issue with the Backport
workflow causing all PRs to look like they've failed.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
mrgrain authored Aug 6, 2024
1 parent c6ef76f commit 4d13164
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 143 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/backport.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DependencyType, javascript, JsonFile, JsonPatch, typescript, YamlFile } from 'projen';
import { DependencyType, github, javascript, JsonFile, JsonPatch, typescript, YamlFile } from 'projen';
import { BuildWorkflow } from './projenrc/build-workflow';
import { PullRequestBackport } from './projenrc/pull-request-backport';
import { ReleaseWorkflow } from './projenrc/release';
import { SUPPORT_POLICY, SupportPolicy } from './projenrc/support';
import { JsiiDependencyUpgrades } from './projenrc/upgrade-dependencies';
Expand Down Expand Up @@ -289,7 +288,7 @@ for (const [version, branch] of Object.entries(supported.activeBranches(false)))
}

// Allow PR backports to all maintained versions
new PullRequestBackport(project, {
new github.PullRequestBackport(project, {
branches: Object.values(supported.activeBranches()),
});

Expand Down
139 changes: 0 additions & 139 deletions projenrc/pull-request-backport.ts

This file was deleted.

0 comments on commit 4d13164

Please sign in to comment.