chore(llmobs): refactor to use span events #9752
This file contains 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: Codeowners | |
on: | |
pull_request: | |
jobs: | |
report_codeowners: | |
name: "Report codeowners" | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
- name: Install codeowners | |
run: go install github.com/hmarr/codeowners/cmd/codeowners@latest | |
- name: List owners of all changed files | |
id: codeowners_resolved | |
run: | | |
codeowners ${{ steps.changed-files.outputs.all_changed_files }} | |
echo "results<<EOF" >> "$GITHUB_OUTPUT" | |
echo "$(codeowners ${{ steps.changed-files.outputs.all_changed_files }})" >> "$GITHUB_OUTPUT" | |
echo "EOF" >> "$GITHUB_OUTPUT" | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
filePath: resolved.txt | |
comment_tag: codeowners_resolved | |
mode: upsert | |
message: | | |
`CODEOWNERS` have been resolved as: | |
``` | |
${{ steps.codeowners_resolved.outputs.results }} | |
``` |