mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-23 22:29:34 -05:00
Bumps [actions/labeler](https://github.com/actions/labeler) from 5 to 6. - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/labeler dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
828 B
YAML
34 lines
828 B
YAML
name: Labels
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
# For label-checker
|
|
- labeled
|
|
- unlabeled
|
|
|
|
jobs:
|
|
labeler:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/labeler@v6
|
|
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
|
|
- run: echo "Done adding labels"
|
|
# Run this after labeler applied labels
|
|
check-labels:
|
|
needs:
|
|
- labeler
|
|
permissions:
|
|
pull-requests: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: docker://agilepathway/pull-request-label-checker:latest
|
|
with:
|
|
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|