30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
on:
|
|
pull_request:
|
|
types: [opened, reopened]
|
|
name: Pull Request
|
|
|
|
# Setting permissions for GITHUB_TOKEN for dependabot as default is readonly
|
|
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions?learn=dependency_version_updates&learnProduct=code-security
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
assignAuthor:
|
|
name: Assign author to PR
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Assign author to PR
|
|
uses: technote-space/assign-author@v1
|
|
# See: .github/labeler.yml
|
|
addCiLabels:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/labeler@v3
|
|
with:
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
# Workaround for https://github.com/actions/labeler/issues/104
|
|
# Explained at https://github.com/wesnoth/wesnoth/commit/958c82d0867568057caaf58356502ec8c87d8366
|
|
# Should continue working https://github.com/actions/labeler/pull/113#issuecomment-865404272
|
|
sync-labels: ""
|