mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
23 lines
644 B
YAML
23 lines
644 B
YAML
---
|
|
name: "Pull Request Labeler"
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
|
|
jobs:
|
|
# Applies the community-pr label to any PRs from a forked repo, which is used as a proxy for a community PR
|
|
community-pr:
|
|
name: 'Label community PRs'
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- if: ${{ github.event.pull_request.head.repo.fork }}
|
|
name: 'Apply label'
|
|
uses: actions/labeler@9fd24f1f9d6ceb64ba34d181b329ee72f99978a0 # v4.0.0
|
|
with:
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
configuration-path: ".github/community-pr-label.yml"
|