Skip to content

Commit

Permalink
🤖 Auto approve cnquery bump PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Nov 12, 2024
1 parent 1eb00c7 commit a962f88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pr-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ jobs:
go-auto-approve:
runs-on: ubuntu-latest
needs: [go-test, go-bench, golangci-lint, go-mod]
# For now, we only auto approve and merge go dep PRs because we have tests for this in place.
# For now, we auto approve and merge:
# - go dep PRs
# - cnquery update PRs
# because we have tests for this in place.
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#startswith
if: ${{ startsWith(github.ref, 'refs/heads/dependabot/go_modules') && github.actor == 'dependabot[bot]' }}
if: |
(startsWith(github.ref, 'refs/heads/dependabot/go_modules') && github.actor == 'dependabot[bot]') ||
(startsWith(github.ref, 'refs/heads/version/cnquery_update_v') && github.event.commits[0].author.username == 'mondoo-tools')
permissions:
contents: write
pull-requests: write
Expand Down

0 comments on commit a962f88

Please sign in to comment.