Skip to content

Commit

Permalink
refactor: Automatically review pull requests
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/OUSuHnCME?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
timtebeek and TeamModerne committed Feb 7, 2024
1 parent eac13f6 commit 3f532c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/comment-pr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: comment-pr

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
on:
workflow_run:
workflows: ["receive-pr"]
types:
- completed

# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# Since this pull request has write permissions on the target repo, we should **NOT** execute any untrusted code.
jobs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: receive-pr

on:
pull_request:
types: [opened, synchronize]
branches:
- main

# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# Since this pull request receives untrusted code, we should **NOT** have any secrets in the environment.
jobs:
upload-patch:
uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main
uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main

0 comments on commit 3f532c3

Please sign in to comment.