mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
85090453c3
See associated pull request for more information.
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: DevInfra
|
|
|
|
on:
|
|
# zizmor: ignore[dangerous-triggers] - {Trigger is safe as workflow does not checkout untrusted code}
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
issues:
|
|
types: [opened, reopened]
|
|
|
|
# Declare default permissions as read only.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pull_request_labels:
|
|
if: github.event_name == 'pull_request_target'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: angular/dev-infra/github-actions/labeling/pull-request@cde7ad16c16f5c7dbd57b62e8b930443813484ec # main
|
|
with:
|
|
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
|
|
labels: '{"requires: TGP": ["packages/core/primitives/**/{*,.*}"]}'
|
|
post_approval_changes:
|
|
if: github.event_name == 'pull_request_target'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: angular/dev-infra/github-actions/post-approval-changes@cde7ad16c16f5c7dbd57b62e8b930443813484ec # main
|
|
with:
|
|
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
|
|
issue_labels:
|
|
if: github.event_name == 'issues'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: angular/dev-infra/github-actions/labeling/issue@cde7ad16c16f5c7dbd57b62e8b930443813484ec # main
|
|
with:
|
|
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
|
|
google-generative-ai-key: ${{ secrets.GOOGLE_GENERATIVE_AI_KEY }}
|