Skip to content

Commit d55f69d

Browse files
committed
style: apply prettier formatting to various files
1 parent abb927f commit d55f69d

34 files changed

+936
-756
lines changed

.github/agents/blog-poster.agent.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
description: 'Converts GitHub issues and discussions into formatted Docusaurus blog posts with proper metadata, links, and author attribution'
3-
tools: ['github', 'edit', 'search', 'web_search']
4-
model: 'claude-sonnet-4.5'
5-
2+
description: "Converts GitHub issues and discussions into formatted Docusaurus blog posts with proper metadata, links, and author attribution"
3+
tools: ["github", "edit", "search", "web_search"]
4+
model: "claude-sonnet-4.5"
65
---
76

87
# Blog Poster Agent
@@ -12,6 +11,7 @@ You are a specialist in converting GitHub issues and discussions from @ublue-os/
1211
## Core Responsibilities
1312

1413
### 1. Content Transformation
14+
1515
- Fetch the GitHub discussion or issue URL provided in the task description
1616
- For cross-repo discussions (e.g., from ublue-os/bluefin), extract the full URL and use it to fetch content
1717
- If GitHub API fails, use the discussion URL directly and inform the user.
@@ -21,17 +21,20 @@ You are a specialist in converting GitHub issues and discussions from @ublue-os/
2121
- Add proper frontmatter metadata (title, authors, tags)
2222

2323
### 2. Link Enhancement
24+
2425
- Link to the originating GitHub discussion so readers can participate
2526
- Convert repository mentions to proper `@projectname/repo` format with hyperlinks
2627
- Add hyperlinks to all major projects mentioned, linking to their upstream projects
2728
- Ensure all URLs are valid and properly formatted
2829

2930
### 3. Image Formatting
31+
3032
- Reformat all images to use `![Description](https://github-url)` format
3133
- Ensure images display correctly in Docusaurus
3234
- Preserve alt text and add descriptive text if missing
3335

3436
### 4. Author Management
37+
3538
- Check if the author exists in `blog/authors.yaml`
3639
- Auto-add new authors with their GitHub profile information:
3740
- name
@@ -42,14 +45,16 @@ You are a specialist in converting GitHub issues and discussions from @ublue-os/
4245
- socials (bluesky, mastodon, github, linkedin, youtube, blog if available)
4346

4447
### 5. Tag Management
48+
4549
- Analyze existing blog posts to understand tag patterns
4650
- Apply relevant tags that match the repository's tagging conventions
4751
- Common tags include: announcements, artwork, beta, lts, homebrew, development
48-
- Map the post to use the labels defined in @projectbluefin/common as blog post tags.
52+
- Map the post to use the labels defined in @projectbluefin/common as blog post tags.
4953

5054
## Strict Guidelines
5155

5256
### DO:
57+
5358
- Extract discussion URLs from the task description (e.g., "Turn https://github.com/ublue-os/bluefin/discussions/3960 into a blogpost")
5459
- Use GitHub API for all tasks (issues, discussions, user profiles)
5560
- If API access fails for cross-repo content, report the error and ask for manual content
@@ -60,6 +65,7 @@ You are a specialist in converting GitHub issues and discussions from @ublue-os/
6065
- Follow existing blog post patterns for consistency
6166

6267
### DO NOT:
68+
6369
- Modify the author's original content or add your own opinions, copy the text exactly
6470
- Touch any files other than the blog post file and `blog/authors.yaml`
6571
- Change the author's writing style or tone
@@ -69,6 +75,7 @@ You are a specialist in converting GitHub issues and discussions from @ublue-os/
6975
## Error Handling
7076

7177
If you cannot fetch a discussion:
78+
7279
1. Report the specific error (API permission, network, etc.)
7380
2. Provide the discussion URL you attempted to fetch
7481
3. Ask the user to either grant permissions or provide the content manually
@@ -77,6 +84,7 @@ If you cannot fetch a discussion:
7784
## File Handling
7885

7986
Only modify these files:
87+
8088
- New blog post: `blog/YYYY-MM-DD-slug.md`
8189
- Author info: `blog/authors.yaml` (only if author is new)
8290

.github/prompts/conventional-commit.prompt.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
agent: 'agent'
3-
description: 'Generate conventional commit messages following the Conventional Commits specification with proper formatting, validation, and automatic git commit execution.'
4-
tools: ['runCommands', 'changes', 'think']
2+
agent: "agent"
3+
description: "Generate conventional commit messages following the Conventional Commits specification with proper formatting, validation, and automatic git commit execution."
4+
tools: ["runCommands", "changes", "think"]
55
---
66

77
### Instructions

.github/skills/blog-poster.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name: blog poster
33
description: Post a blog post
44
---
5-
65
- Use the github API to do all tasks instead os scraping the web
76
- Under no circumstance do you touch any files other than the blog file and the authors.yaml (optional) - do NOT touch anything else
87
- Take a github issue or github discussion that is assigned to you and post it as a @docusaurus blog post.

.nvidia-drivers-cache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"304.137": "https://www.nvidia.com/en-us/drivers/details/123710/",
88
"173.14.39": "https://www.nvidia.com/en-us/drivers/details/71304/",
99
"470.256.02": "https://www.nvidia.com/en-us/drivers/details/226761/"
10-
}
10+
}

.planning/phases/03-documentation-refinement/03-02-PLAN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ Read both AGENTS.md section and docs/reports.md completely:
415415
- [ ] Examples are clear
416416
- [ ] Troubleshooting scenarios are realistic
417417
- [ ] Ready for production use
418-
</how-to-verify>
419-
<resume-signal>
420-
Type "approved" if Phase 3 deliverables meet quality standards and documentation is production-ready.
418+
</how-to-verify>
419+
<resume-signal>
420+
Type "approved" if Phase 3 deliverables meet quality standards and documentation is production-ready.
421421

422422
If issues found, describe them and they will be addressed before proceeding.
423423
</resume-signal>

.planning/quick/005-label-unlabeled-prs-in-monthly-reports-t/005-SUMMARY.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ Reduce the January 2026 monthly report's "Other" section (100+ items) by applyin
1313
## Tasks Completed
1414

1515
### Task 1: Identify Obvious Labeling Patterns ✅
16+
1617
- Analyzed lines 186-295 of January 2026 report
1718
- Identified 34 PRs with obvious labeling patterns
1819
- Categorized by: CI/automation, upstream, testing, hardware, documentation, ISO
1920
- Created categorized list with PR URLs and proposed labels
2021

2122
### Task 2: Apply Labels via GitHub CLI ✅
23+
2224
- Successfully labeled **34 PRs** across multiple repositories:
2325
- 11 CI/automation PRs → `kind/automation` or `github_actions`
2426
- 5 upstream/logos PRs → `area/upstream`
@@ -37,6 +39,7 @@ Reduce the January 2026 monthly report's "Other" section (100+ items) by applyin
3739
- `projectbluefin/branding` (1 PR)
3840

3941
### Task 3: Validate Impact via Report Regeneration ✅
42+
4043
- Regenerated January 2026 report with labeled PRs
4144
- Measured impact:
4245
- **Before:** 110 items in "Other" section
@@ -54,12 +57,14 @@ Reduce the January 2026 monthly report's "Other" section (100+ items) by applyin
5457
## Impact Analysis
5558

5659
### What Worked
60+
5761
- ✅ Process validated: labeling → regeneration → categorization works as expected
5862
- ✅ 34 PRs now properly categorized and discoverable
5963
- ✅ Automation, Upstream, Testing, Hardware categories significantly improved
6064
- ✅ Clear labeling patterns established for future use
6165

6266
### What Didn't Work
67+
6368
- ❌ Permission barriers prevented labeling majority of unlabeled PRs
6469
- ❌ Aurora and Dakota repos account for ~54 unlabeled PRs
6570
- ❌ Limited to 16% reduction vs. target 50% due to access limitations
@@ -68,28 +73,30 @@ Reduce the January 2026 monthly report's "Other" section (100+ items) by applyin
6873
## Recommendations
6974

7075
### Short-term
76+
7177
1. **Request maintainer labeling** for aurora/dakota repositories
7278
2. **Focus labeling efforts** on repos with write access (bluefin, bluefin-lts, common, documentation, iso)
7379
3. **Label at PR creation time** rather than retroactive labeling
7480

7581
### Long-term
76-
1. **Standardize labels** across all projectbluefin/* repositories
82+
83+
1. **Standardize labels** across all projectbluefin/\* repositories
7784
2. **Add PR templates** with label requirements
7885
3. **Implement auto-labeling** based on conventional commits or file paths
7986
4. **Consider repository consolidation** to reduce unlabeled PR sprawl
8087

8188
## Files Modified
8289

83-
| File | Status | Description |
84-
| ------------------------------- | -------- | ---------------------------- |
85-
| `reports/2026-01-31-report.mdx` | Modified | Regenerated with new labels |
86-
| `005-PLAN.md` | Created | Task plan |
87-
| `005-SUMMARY.md` | Created | This summary |
90+
| File | Status | Description |
91+
| ------------------------------- | -------- | --------------------------- |
92+
| `reports/2026-01-31-report.mdx` | Modified | Regenerated with new labels |
93+
| `005-PLAN.md` | Created | Task plan |
94+
| `005-SUMMARY.md` | Created | This summary |
8895

8996
## Commits
9097

91-
| Hash | Message |
92-
| ------- | ----------------------------------------------------------- |
98+
| Hash | Message |
99+
| ------- | --------------------------------------------------------------- |
93100
| 1cb5e57 | chore(reports): reduce 'Other' section via retroactive labeling |
94101

95102
## External Changes
@@ -115,6 +122,7 @@ Reduce the January 2026 monthly report's "Other" section (100+ items) by applyin
115122
## Notes
116123

117124
This task demonstrates the value of consistent labeling practices. While we successfully labeled 34 PRs, the majority of "Other" items stem from repositories where we lack permissions. Achieving the target 50% reduction would require:
125+
118126
1. Maintainer cooperation for aurora/dakota labeling
119127
2. Label standardization across all repos
120128
3. Enforcement mechanisms (PR templates, GitHub Actions, etc.)

.planning/research/automerge-workflow-research.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
**Recommended Approach:** Use `gh pr merge --auto` with enhanced workflow permissions
66

77
**Rationale:**
8+
89
- Works with existing repository ruleset (merge queue + PR requirements)
910
- Requires minimal changes to current workflow
1011
- Maintains security and quality gates
@@ -19,6 +20,7 @@
1920
### Repository Protection Configuration
2021

2122
**Ruleset:** `main` (active)
23+
2224
- **Merge Queue:** Enabled
2325
- Strategy: `ALLGREEN` (all status checks must pass)
2426
- Max entries to merge: 5
@@ -37,11 +39,12 @@
3739

3840
```yaml
3941
permissions:
40-
contents: write # For git commits
42+
contents: write # For git commits
4143
pull-requests: read # For GraphQL queries
4244
```
4345
4446
**Missing for auto-merge:**
47+
4548
- No PR creation permission
4649
- No permission to enable auto-merge on PRs
4750
- Workflow pushes directly to main (bypasses PR flow)
@@ -50,12 +53,12 @@ permissions:
5053
5154
## Options Comparison
5255
53-
| Approach | Pros | Cons | Security | Implementation |
54-
|----------|------|------|----------|----------------|
55-
| **1. `gh pr merge --auto` with GITHUB_TOKEN** | ✅ Native GitHub feature<br>✅ Works with rulesets<br>✅ No extra tokens needed<br>✅ Respects status checks | ❌ Requires PR creation first<br>❌ Needs permission changes | 🟢 High - respects all rules | Easy - 10 lines |
56-
| **2. GitHub App Token** | ✅ Can bypass restrictions<br>✅ Fine-grained permissions<br>✅ Audit trail | ❌ Requires app setup<br>❌ Complex token generation<br>❌ Can bypass needed checks | 🟡 Medium - depends on config | Hard - 30+ lines |
57-
| **3. Personal Access Token (PAT)** | ✅ Simple to set up | ❌ Tied to user account<br>❌ Security risk<br>❌ Breaks on user removal | 🔴 Low - poor practice | Easy - 5 lines |
58-
| **4. Direct push to main** | ✅ Simplest | ❌ Bypasses all protection<br>❌ No review possible<br>❌ Violates governance | 🔴 Very Low - dangerous | Current state |
56+
| Approach | Pros | Cons | Security | Implementation |
57+
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- | ----------------------------- | ---------------- |
58+
| **1. `gh pr merge --auto` with GITHUB_TOKEN** | ✅ Native GitHub feature<br>✅ Works with rulesets<br>✅ No extra tokens needed<br>✅ Respects status checks | ❌ Requires PR creation first<br>❌ Needs permission changes | 🟢 High - respects all rules | Easy - 10 lines |
59+
| **2. GitHub App Token** | ✅ Can bypass restrictions<br>✅ Fine-grained permissions<br>✅ Audit trail | ❌ Requires app setup<br>❌ Complex token generation<br>❌ Can bypass needed checks | 🟡 Medium - depends on config | Hard - 30+ lines |
60+
| **3. Personal Access Token (PAT)** | ✅ Simple to set up | ❌ Tied to user account<br>❌ Security risk<br>❌ Breaks on user removal | 🔴 Low - poor practice | Easy - 5 lines |
61+
| **4. Direct push to main** | ✅ Simplest | ❌ Bypasses all protection<br>❌ No review possible<br>❌ Violates governance | 🔴 Very Low - dangerous | Current state |
5962

6063
**Recommendation:** Option 1 (gh pr merge --auto)
6164

@@ -69,8 +72,8 @@ permissions:
6972

7073
```yaml
7174
permissions:
72-
contents: write # For git commits
73-
pull-requests: write # To create and enable auto-merge on PRs
75+
contents: write # For git commits
76+
pull-requests: write # To create and enable auto-merge on PRs
7477
```
7578

7679
**2. Create PR Instead of Direct Push**
@@ -154,12 +157,14 @@ Ensure build passes before merge:
154157
5. **Merge** → PR automatically merges when queue clears
155158

156159
**Merge Queue Behavior:**
160+
157161
- Groups PRs together (up to 5 at once)
158162
- Tests them in merge queue branch
159163
- Merges if all checks pass
160164
- Prevents "merge race" conditions
161165

162166
**Required Conditions:**
167+
163168
- ✅ No required reviews (already configured: `required_approving_review_count: 0`)
164169
- ✅ Auto-merge enabled (already configured: `autoMergeAllowed: true`)
165170
- ✅ Status checks pass (enforced by merge queue `ALLGREEN`)
@@ -185,18 +190,19 @@ Ensure build passes before merge:
185190

186191
### What Changes vs Current Workflow
187192

188-
| Aspect | Current (Direct Push) | With Auto-Merge PR |
189-
|--------|----------------------|-------------------|
190-
| Protection bypassed? | ✅ Yes (pushes to main) | ❌ No (uses PR) |
191-
| Reviewable? | ❌ No audit trail | ✅ Yes (PR history) |
192-
| Can be blocked? | ❌ No way to stop | ✅ Yes (close PR) |
193-
| Status checks? | ❌ Skipped | ✅ Required |
193+
| Aspect | Current (Direct Push) | With Auto-Merge PR |
194+
| -------------------- | ----------------------- | ------------------- |
195+
| Protection bypassed? | ✅ Yes (pushes to main) | ❌ No (uses PR) |
196+
| Reviewable? | ❌ No audit trail | ✅ Yes (PR history) |
197+
| Can be blocked? | ❌ No way to stop | ✅ Yes (close PR) |
198+
| Status checks? | ❌ Skipped | ✅ Required |
194199

195200
**Security Improvement:** Moving to PR-based flow is MORE secure than current direct push.
196201

197202
### Bot Security
198203

199204
**github-actions[bot]** is a special system account:
205+
200206
- Tied to GitHub Actions service (not a user)
201207
- Cannot be compromised like PAT
202208
- Permissions limited by workflow file
@@ -211,6 +217,7 @@ Ensure build passes before merge:
211217
**When to use:** Need to bypass branch protection completely
212218

213219
**Setup:**
220+
214221
```yaml
215222
- name: Generate GitHub App Token
216223
id: generate-token
@@ -226,6 +233,7 @@ Ensure build passes before merge:
226233
```
227234

228235
**Why not recommended here:**
236+
229237
- Requires creating GitHub App
230238
- More complex setup
231239
- Overkill for this use case (no bypass needed)
@@ -235,6 +243,7 @@ Ensure build passes before merge:
235243
**When to use:** Never (bad practice)
236244

237245
**Why avoid:**
246+
238247
- Tied to user account (security risk)
239248
- Breaks if user leaves
240249
- Violates principle of least privilege
@@ -247,6 +256,7 @@ Ensure build passes before merge:
247256
**Before merging changes:**
248257

249258
1. **Test PR creation in feature branch:**
259+
250260
```bash
251261
git checkout -b test-monthly-reports-automerge
252262
# Make workflow changes
@@ -255,16 +265,19 @@ Ensure build passes before merge:
255265
```
256266

257267
2. **Verify PR created:**
268+
258269
```bash
259270
gh pr list --author "github-actions[bot]"
260271
```
261272

262273
3. **Check auto-merge enabled:**
274+
263275
```bash
264276
gh pr view <PR-NUMBER> --json autoMergeRequest
265277
```
266278

267279
4. **Monitor merge queue:**
280+
268281
```bash
269282
gh api repos/projectbluefin/documentation/branches/main/protection --jq '.merge_queue'
270283
```
@@ -275,6 +288,7 @@ Ensure build passes before merge:
275288

276289
**Rollback Plan:**
277290
If auto-merge fails, PR remains open and can be:
291+
278292
- Manually merged via GitHub UI
279293
- Closed and workflow re-run
280294
- Edited to fix issues before merge
@@ -297,7 +311,7 @@ on:
297311
298312
permissions:
299313
contents: write
300-
pull-requests: write # ← ADD THIS
314+
pull-requests: write # ← ADD THIS
301315
302316
jobs:
303317
generate-report:
@@ -320,7 +334,7 @@ jobs:
320334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
321335
run: npm run generate-report
322336
323-
- name: Create PR with auto-merge # ← REPLACE "Commit and push" step
337+
- name: Create PR with auto-merge # ← REPLACE "Commit and push" step
324338
run: |
325339
BRANCH="monthly-report/$(date +%Y-%m)"
326340
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)