Skip to content

Commit cf325b3

Browse files
ci: fix ci and add dependabot and conventional commits
1 parent bb10ac5 commit cf325b3

File tree

4 files changed

+82
-2
lines changed

4 files changed

+82
-2
lines changed

.github/dependabot.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for Go modules
4+
- package-ecosystem: "gomod"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "09:00"
10+
open-pull-requests-limit: 10
11+
reviewers:
12+
- "speakeasy-api/maintainers"
13+
assignees:
14+
- "speakeasy-api/maintainers"
15+
commit-message:
16+
prefix: "deps"
17+
prefix-development: "deps"
18+
include: "scope"
19+
labels:
20+
- "dependencies"
21+
- "go"
22+
groups:
23+
# Group patch and minor updates together
24+
go-minor-patch:
25+
patterns:
26+
- "*"
27+
update-types:
28+
- "minor"
29+
- "patch"
30+
# Keep major updates separate for careful review
31+
go-major:
32+
patterns:
33+
- "*"
34+
update-types:
35+
- "major"
36+
37+
# Enable version updates for GitHub Actions
38+
- package-ecosystem: "github-actions"
39+
directory: "/"
40+
schedule:
41+
interval: "weekly"
42+
day: "monday"
43+
time: "09:00"
44+
open-pull-requests-limit: 5
45+
reviewers:
46+
- "speakeasy-api/maintainers"
47+
assignees:
48+
- "speakeasy-api/maintainers"
49+
commit-message:
50+
prefix: "ci"
51+
include: "scope"
52+
labels:
53+
- "dependencies"
54+
- "github-actions"
55+
groups:
56+
github-actions:
57+
patterns:
58+
- "*"

.github/workflows/commits.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Validate Conventional Commits
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
- ready_for_review
11+
12+
jobs:
13+
build:
14+
name: Conventional Commits
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: webiny/[email protected]
19+
- uses: amannn/[email protected]
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

mise-tasks/fmt-check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -euo pipefail
44
echo "🔍 Checking Go code formatting..."
55

66
# Check if any files need formatting
7-
UNFORMATTED=$(go fmt ./... 2>&1 || true)
7+
# Only capture stdout (actual formatting output), let stderr (dependency downloads) go to terminal
8+
UNFORMATTED=$(go fmt ./... 2>/dev/null || true)
89

910
if [ -n "$UNFORMATTED" ]; then
1011
echo "❌ The following files are not properly formatted:"

openapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<p align="center">
3-
<img width="200px" alt="OpenAPI" src="https://github.com/user-attachments/assets/ded936d5-3fd9-439f-925a-a2959735b71a">
3+
<img width="200px" alt="OpenAPI" src="https://github.com/user-attachments/assets/555a0899-5719-42ee-b4b1-ece8d1d812ea">
44
</p>
55
<h1 align="center"><b>OpenAPI Parser</b></h1>
66
<p align="center">An API for working with <a href="https://spec.openapis.org/oas/v3.1.1">OpenAPI documents</a> including: read, walk, create, mutate, validate, and upgrade

0 commit comments

Comments
 (0)