auth
無料Authentication and authorization patterns for Rossoctl services
日本語の概要は準備中です。原文の説明を表示しています。
Weekly repository report - deep issue analysis, PR health, CI trends, actionable recommendations
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Deep weekly analysis of repository health: issue investigation, PR status, CI trends.
Set at session start:
export OWNER=<org-or-user>
export REPO=<repo-name>
Auto-approved: All
ghread commands are auto-approved.
Run the data gathering script to get a consistent snapshot of all issues, PRs, and CI runs. This prevents stale data from long-running analysis.
./.github/scripts/reports/weekly-report-data.sh 7 $OWNER/$REPO
This creates JSON files in /tmp/rossoctl/github/data/:
merged-prs.json — PRs merged in the periodopen-prs.json — Currently open PRs (live snapshot)open-issues.json — Currently open issues (live snapshot)new-issues.json — Issues created in the periodci-runs.json — CI runs on mainci-runs-all.json — All CI runsIMPORTANT: All subsequent phases MUST read from these JSON files, NOT re-query gh. This ensures consistency — PRs won't change state mid-analysis.
Read from the gathered data:
echo "Merged PRs: $(jq length /tmp/rossoctl/github/data/merged-prs.json)"
echo "Open PRs: $(jq length /tmp/rossoctl/github/data/open-prs.json)"
echo "Open issues: $(jq length /tmp/rossoctl/github/data/open-issues.json)"
echo "New issues: $(jq length /tmp/rossoctl/github/data/new-issues.json)"
For EVERY open issue (from open-issues.json), investigate:
Read from gathered data (do NOT re-query gh):
cat /tmp/rossoctl/github/data/open-issues.json | jq '.[].number'
For each issue, determine:
Still relevant? — Check if the bug still exists on upstream/main
Work in progress? — Check if any PR references this issue
gh pr list --repo $OWNER/$REPO --state all --search "issue-number" --json number,title,state
Severity classification:
Actionable recommendation: Close, update, assign, or create PR
For EVERY open PR (from open-prs.json), investigate:
cat /tmp/rossoctl/github/data/open-prs.json | jq '.[].number'
For each PR, determine:
Classify each PR:
| Health | Criteria | Next Step |
|---|---|---|
| Ready to merge | Approved + CI passing | Merge it |
| Needs review | CI passing, no review | Request review |
| Needs /run-e2e | Touches deploy paths, no HyperShift run | Comment /run-e2e |
| CI failing | Has failures | Investigate with rca:ci |
| Stale | No update >14 days | Ping author or close |
| Conflicts | Mergeable = CONFLICTING | Author needs to rebase |
| Changes requested | Reviewer asked for changes | Author needs to address |
Get all runs on main (last 7 days):
gh run list --repo $OWNER/$REPO --branch main --limit 30 --json databaseId,conclusion,name,createdAt,headSha,displayTitle
For each failed run, get the failing job and step:
gh run view <run-id> --repo $OWNER/$REPO --json jobs --jq '.jobs[] | select(.conclusion == "failure") | "\(.name): \(.steps[] | select(.conclusion == "failure") | .name)"'
Get the commit that triggered the failure:
gh run view <run-id> --repo $OWNER/$REPO --json headSha --jq '.headSha'
Check what that commit changed:
gh api repos/$OWNER/$REPO/commits/<sha> --jq '.files[].filename'
Build a timeline of failures with root cause correlation:
Since E2E doesn't run on every merge, find candidate PRs that could have caused a failure:
gh pr list --repo $OWNER/$REPO --state merged --json number,title,mergedAt,changedFiles --jq '.[] | select(.mergedAt > "LAST_SUCCESS_DATE" and .mergedAt < "FAILURE_DATE") | "#\(.number) \(.title) (\(.changedFiles) files)"'
For each candidate PR, check if it touched relevant paths:
charts/ or deployments/ → likely deploy/config issuerossoctl/tests/ → test change may have introduced failure.github/workflows/ or .github/scripts/ → CI infrastructure changerossoctl/backend/ or rossoctl/auth/ → application logic changeCorrelate the failure type with the PR changes to identify the most likely cause.
Write the full report as markdown. Structure:
# Weekly Report: [date range]
## Quick Stats
- Merged PRs: N
- New issues: N
- CI pass rate: X/Y on main
## Issue Analysis
### Security Issues
| # | Title | Status | Recommendation |
...
### Blocking Issues
| # | Title | Status | Recommendation |
...
### Bug Reports
| # | Title | Still affects main? | PR exists? | Recommendation |
...
### Feature Requests
| # | Title | Priority | Recommendation |
...
### Epics (track progress)
| # | Title | PRs merged/open | % done estimate |
...
### Issues to Close
| # | Title | Reason |
...
(Issues where fix was already merged, or issue is outdated)
## PR Analysis
### Ready to Merge
| # | Title | Author | Approved by |
...
### Needs Review (CI passing)
| # | Title | Author | Days waiting |
...
### Needs /run-e2e
| # | Title | Reason |
...
### Unhealthy PRs
| # | Title | Problem | Next step |
...
## CI Health
### Pass Rate
- Main branch: X/Y runs passed (Z%)
- HyperShift E2E: X/Y passed
- Kind E2E: X/Y passed
- Security/Lint/Build: X/Y passed
### Failure Timeline
| Date | Workflow | Job | Failure | Likely Cause |
|------|----------|-----|---------|-------------|
| ... | E2E HyperShift | Deploy & Test | timeout | Cluster creation slow |
| ... | CI | build | compile error | PR #N broke import |
### Failure Patterns
- **Recurring**: [failures that happen repeatedly — infrastructure, flaky tests]
- **One-off**: [failures tied to specific commits]
- **Trend**: [getting better/worse over time]
### Root Cause Correlation
For each failure, identify candidate PRs merged between last success
and the failure. Check which files they touched to find likely cause.
## Action Items
Single flat list, ordered by priority. No timescales.
| # | Action | Owner | Priority |
|---|--------|-------|----------|
| 1 | [Highest priority action] | [owner] | P0 |
| 2 | [Next action] | [owner] | P1 |
Save report:
# Save to /tmp/rossoctl/github/weekly-report.md
After generating the report, ask:
Weekly report ready. Want me to create a GitHub issue with this? Suggested title: "📊 Weekly Report [start-date] – [end-date]"
You can also suggest a different title.
Only create the issue after user confirms title and content.
github:issues - Deep dive into individual issue triagegithub:prs - Deep dive into individual PR healthgit:status - Worktree and PR status overviewci:status - Detailed CI check analysisrca:ci - Investigate CI failuresrepo:issue - Issue creation formatまだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Authentication and authorization patterns for Rossoctl services
日本語の概要は準備中です。原文の説明を表示しています。
Create confidential OAuth2 clients in Keycloak for server-to-service authentication
日本語の概要は準備中です。原文の説明を表示しています。
Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication
日本語の概要は準備中です。原文の説明を表示しています。
Configure OpenTelemetry Collector with OAuth2 authentication for trace export
日本語の概要は準備中です。原文の説明を表示しています。
CI pipeline monitoring, status checks, and PR validation workflows
日本語の概要は準備中です。原文の説明を表示しています。
Monitor running CI jobs, wait for completion, create tasks for results
日本語の概要は準備中です。原文の説明を表示しています。