diff --git a/.github/workflows/commentOnNativeFileChanged.yml b/.github/workflows/commentOnNativeFileChanged.yml new file mode 100644 index 0000000000000..4590a80af7078 --- /dev/null +++ b/.github/workflows/commentOnNativeFileChanged.yml @@ -0,0 +1,27 @@ +name: Comment on native files changed + +on: + pull_request: + branches: + - 'main' + paths: + - '**.kt' + - '**.java' + - '**.swift' + - '**.mm' + - '**.h' + - '**.cpp' + - 'AndroidManifest.xml' + - 'project.pbxproj' + +jobs: + commentOnNativeFilesChanged: + name: Create comment + runs-on: ubuntu-latest + steps: + - name: Comment + run: | + gh pr comment ${{ github.event.number }} --body \ + ":warning: This PR is possibly changing native code. It may cause problems in Hybrid App. Please ask Hybrid App team to review those changes in the Slack open-source channel. The C+ can help you with that. :warning:" + env: + GITHUB_TOKEN: ${{ github.token }}