Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gewenyu99 authored Jul 22, 2024
2 parents 8022111 + 2a456ff commit 2a29bf1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/pr-annotations.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Annotate PR with trunk issues
name: CI

on:
workflow_run:
workflows: ["Pull Request"]
types: [completed]
push:
branches:
- main
- develop
pull_request:

# cancel in-progress runs on new commits to same PR (gitub.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
trunk_check:
Lint:
name: Trunk Check Annotate
runs-on: ubuntu-latest

permissions:
checks: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
post-annotations: true # only for fork PRs
post-annotations: true # only for fork PRs

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

package-lock.json

0 comments on commit 2a29bf1

Please sign in to comment.