diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..d5d8c3c9c --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,39 @@ +# Config for actions/labeler v5 +"area: android": + - changed-files: + - any-glob-to-any-file: + - 'app/**' + - 'benchmark/**' + - 'gradle/**' + - 'build.gradle.kts' + - 'settings.gradle.kts' + +"area: ios": + - changed-files: + - any-glob-to-any-file: + - 'iosApp/**' + +"area: web": + - changed-files: + - any-glob-to-any-file: + - 'web/**' + - 'netlify-arvio-tv-site/**' + - 'netlify-auth-site/**' + +"area: backend": + - changed-files: + - any-glob-to-any-file: + - 'supabase/**' + - 'resolver-worker/**' + +"area: ci": + - changed-files: + - any-glob-to-any-file: + - '.github/**' + - '.gitlab-ci.yml' + +"documentation": + - changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '*.md' diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..d78338f9b --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,22 @@ +name: Actionlint + +on: + push: + paths: + - '.github/workflows/*.yml' + - '.github/workflows/*.yaml' + pull_request: + paths: + - '.github/workflows/*.yml' + - '.github/workflows/*.yaml' + +jobs: + actionlint: + name: Lint GitHub Workflows + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Run actionlint + uses: raven-actions/actionlint@v2 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..2955114d2 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,20 @@ +name: Pull Request Labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + name: Auto Label PR + runs-on: ubuntu-latest + steps: + - name: Apply labels based on changed paths + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true diff --git a/.gitignore b/.gitignore index 22fd12b0d..24dd7d59e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,9 +16,6 @@ gen/ out/ release/ -# Repository-local automation not used by this distribution -.github/workflows/ - # Gradle files .gradle/ build/