Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/generate-codeowners-activity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow generates a code owner activity report as a GitHub issue.
# It measures whether code owners have reviewed/replied to at least 80% of
# issues and PRs opened against each component (by component label).

name: 'Generate Code Owner Activity Report'
on:
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run (print report only, do not create issue)'
required: false
default: false
type: boolean
schedule:
# run on the 1st of every month at 2am UTC
- cron: "0 2 1 * *"

permissions:
contents: read

jobs:
report:
permissions:
contents: read
issues: write
pull-requests: read
runs-on: ubuntu-24.04
if: ${{ github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
id: report
env:
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true' && 'true' || '0' }}
with:
retries: 3
script: |
const script = require('.github/workflows/scripts/generate-codeowners-activity.js')
await script({github, context})
Loading