Github Swarm Pr Metrics And Reporting

Sub-skill of github-swarm-pr: Metrics and Reporting.

vamseeachanta Updated

File contents

Metrics and Reporting

Metrics and Reporting

# Generate PR swarm report
generate_report() {
  local PR_NUM=$1

  gh pr view $PR_NUM --json \
    title,additions,deletions,reviews,comments,createdAt,updatedAt | \
  jq '{
    title: .title,
    size: (.additions + .deletions),
    reviews: (.reviews | length),
    comments: (.comments | length),
    age_hours: ((now - (.createdAt | fromdateiso8601)) / 3600 | floor)
  }'
}

generate_report 123

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/development/github/github-swarm-pr/metrics-and-reporting commit a1a35f34e6

Frequently asked questions

npx skillmds@latest add vamseeachanta/github-swarm-pr-metrics-and-reporting