docs: dot-project README/AGENT.md/example still reference old required 'project-maintainers' team name #1731
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Label Issues and PRs | |
| # Mirrors cncf/toc/.github/workflows/labeler.yaml for triggers and payload handling, | |
| # but avoids PR-head checkout under pull_request_target for security. | |
| # Slash commands are handled only in slash-commands.yml (repository_dispatch). | |
| on: | |
| issues: | |
| types: [opened, edited, reopened, transferred] | |
| pull_request_target: | |
| types: [opened, edited, reopened] | |
| jobs: | |
| label: | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Get changed files from PR API | |
| if: ${{ github.event.pull_request }} | |
| id: changed-files | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| script: | | |
| const prNumber = context.payload.pull_request.number; | |
| const files = await github.paginate(github.rest.pulls.listFiles, { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: prNumber, | |
| per_page: 100 | |
| }); | |
| core.setOutput("all_changed_files", files.map(f => f.filename).join(",")); | |
| - name: Run labeler action for PR | |
| if: ${{ github.event.pull_request }} | |
| uses: ./.github/actions/labeler-action | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| labels: https://raw.githubusercontent.com/cncf/automation/refs/heads/main/.github/labels.yaml | |
| owner: ${{ github.repository_owner }} | |
| repo: ${{ github.event.repository.name }} | |
| issue_number: ${{ github.event.pull_request.number }} | |
| comment_body: ${{ github.event.pull_request.body }} | |
| changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | |
| - name: Run labeler action for Issue | |
| if: ${{ !github.event.pull_request }} | |
| uses: ./.github/actions/labeler-action | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| labels: https://raw.githubusercontent.com/cncf/automation/refs/heads/main/.github/labels.yaml | |
| owner: ${{ github.repository_owner }} | |
| repo: ${{ github.event.repository.name }} | |
| issue_number: ${{ github.event.issue.number }} | |
| comment_body: ${{ github.event.issue.body }} |