Skip to content

Fix a new C-style cast clang-tidy error in #3963. #1438

Fix a new C-style cast clang-tidy error in #3963.

Fix a new C-style cast clang-tidy error in #3963. #1438

Workflow file for this run

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: 'Auto label PRs'
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
pull-requests: write # For gh to edit labels.
jobs:
assign_reviewer:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
filters: |
documentation:
- '*.md'
- 'docs/**'
explorer:
- 'explorer/**'
infrastructure:
- 'BUILD'
- 'WORKSPACE'
- '.*'
- '.*/**'
- 'bazel/**'
- 'scripts/**'
toolchain:
- 'toolchain/**'
- id: documentation
if: steps.filter.outputs.docs == 'true'
run: |
gh pr edit "${PR}" --add-label "documentation"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: explorer
if: steps.filter.outputs.explorer == 'true'
run: |
gh pr edit "${PR}" --add-label "explorer"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: infrastructure
if: steps.filter.outputs.docs == 'true'
run: |
gh pr edit "${PR}" --add-label "infrastructure"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: toolchain
if: steps.filter.outputs.toolchain == 'true'
run: |
gh pr edit "${PR}" --add-label "toolchain"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}