Skip to content

Commit

Permalink
chore: fix automerge and auto-approve workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Aug 24, 2023
1 parent 89bdf6a commit c6cae40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml

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

3 changes: 2 additions & 1 deletion .github/workflows/automerge.yml

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

2 changes: 1 addition & 1 deletion projenrc/auto-approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class AutoApprove {
if (!workflow) throw new Error("no workflow defined");

workflow.on({
pullRequestTarget: {
pullRequest: {
types: ["opened", "labeled", "ready_for_review", "reopened"],
},
});
Expand Down
3 changes: 2 additions & 1 deletion projenrc/automerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class AutoMerge {
if (!workflow) throw new Error("no workflow defined");

workflow.on({
pullRequestTarget: {
pullRequest: {
types: [
"opened",
"labeled",
Expand All @@ -32,6 +32,7 @@ export class AutoMerge {
workflow.addJobs({
automerge: {
runsOn: ["ubuntu-latest"],
if: "contains(github.event.pull_request.labels.*.name, 'automerge')",
steps: [
{
name: "Checkout",
Expand Down

0 comments on commit c6cae40

Please sign in to comment.