Skip to content

Commit

Permalink
Create workflow to warn on native file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jnowakow committed Dec 9, 2024
1 parent b9107bf commit a153e36
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/commentOnNativeFileChanged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Comment on native files changed

on:
pull_request:
branches:
- 'main'
paths:
- '**.kt'
- '**.java'
- '**.swift'
- '**.mm'
- '**.h'

jobs:
commentOnNativeFilesChanged:
name: Create comment
run: |
gh pr comment ${{ steps.getMergedPullRequest.outputs.number }} --body \
":warning: This PR changes native code. It may cause problems in Hybrid App. Please notify people working on it to review those changes. :warning:"
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit a153e36

Please sign in to comment.