Skip to content

Commit c12ea06

Browse files
authored
ci: improve workflow configuration and automation (#16)
- Capitalize workflow name from "main" to "Main" for consistency - Update workflow trigger references to use new capitalized name - Add "fix" npm script for automated linting with auto-fix - Update Renovate post-upgrade tasks to use new fix script - Update branch protection required status checks to include CodeQL - Improve Renovate semantic commit type rules for dependencies
1 parent 246c409 commit c12ea06

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
],
2020
postUpgradeTasks: {
21-
commands: ['bun install', 'bun run lint -- --fix || true'],
21+
commands: ['bun install', 'bun run fix'],
2222
executionMode: 'branch',
2323
},
2424
}

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ branches:
1111
protection:
1212
required_status_checks:
1313
strict: true
14-
contexts: [Build, Typecheck, Lint, Test, Release, Analyze, Renovate / Renovate]
14+
contexts: [Build, Typecheck, Lint, Test, Release, Analyze (typescript), CodeQL, Renovate / Renovate]
1515
enforce_admins: true
1616
required_pull_request_reviews: null
1717
restrictions: null

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: main
2+
name: Main
33

44
on:
55
push:

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
workflow_run:
2525
branches: [main]
2626
types: [completed]
27-
workflows: [main]
27+
workflows: [Main]
2828

2929
permissions:
3030
contents: read

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"test:all": "bun test",
2323
"typecheck": "tsc --noEmit",
2424
"lint": "biome check .",
25+
"fix": "bun run lint --fix",
2526
"prepublishOnly": "bun run build && bun run test"
2627
},
2728
"keywords": ["opencode", "plugin", "ai", "workflow", "engineering"],

0 commit comments

Comments
 (0)