2022-10-21 20:49:33 +03:00
|
|
|
#
|
|
|
|
# MAPBASE REPO AUTOMATION
|
|
|
|
#
|
|
|
|
# Automatically labels pull requests according to changed file paths.
|
|
|
|
#
|
|
|
|
# https://github.com/actions/labeler
|
|
|
|
|
|
|
|
name: Pull Request Automation
|
2023-10-31 16:12:47 +03:00
|
|
|
on: [pull_request] # pull_request_target
|
2022-10-21 20:49:33 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
label:
|
|
|
|
|
2023-10-31 16:12:47 +03:00
|
|
|
if: github.repository_owner == 'mapbase-source' # ${{ vars.MAPBASE_LABELS == 'true' }}
|
2022-10-21 20:49:33 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/labeler@v4
|
|
|
|
with:
|
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|