Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4f2e8b1
feat: sep onf into dirs
hnrobert Jul 26, 2026
2b97256
fix: bots use single config
hnrobert Jul 27, 2026
a69a4df
feat: implement config migration from legacy flat-file to subdirector…
hnrobert Jul 31, 2026
fe669d5
refactor: enhance migration logic to preserve comments and improve YA…
hnrobert Jul 31, 2026
420ae80
chore: redump json
hnrobert Jul 31, 2026
1fb677d
chore: update Go version to 1.23 and upgrade action versions in workf…
hnrobert Aug 1, 2026
196df1d
ci: upgrade action ver
hnrobert Aug 1, 2026
dcb0dc4
chore: migration goes first
hnrobert Aug 1, 2026
31dde4e
refactor: update event file handling and UI for event sets and defini…
hnrobert Aug 1, 2026
e3a150b
refactor: improve migration logic for legacy flat-file configs
hnrobert Aug 1, 2026
dbdbb38
fix: correct template variable usage for event actions
hnrobert Aug 1, 2026
3aa7ddb
fix: enhance template handling and migration logic for event payloads
hnrobert Aug 1, 2026
a227270
feat: add weight attribute to repo patterns and update related config…
hnrobert Aug 1, 2026
735a867
refactor: use patterns
hnrobert Aug 1, 2026
7b9ec7c
fix: enhance styling and layout for event set and definition forms
hnrobert Aug 2, 2026
d6c145f
feat: implement migration idempotency and enhance pattern handling in…
hnrobert Aug 12, 2026
c088fa0
feat: update page build and team add templates to include build statu…
hnrobert Aug 14, 2026
ace2d64
fix: bound webhook and dashboard memory usage
Nanaloveyuki Aug 17, 2026
4c9a5aa
Merge pull request #36 from Nanaloveyuki/fix/dashboard-log-memory
hnrobert Aug 17, 2026
296ca76
feat: increase max payload size to 25MB and improve webhook error log…
hnrobert Aug 17, 2026
b03fce0
docs: catch up & formatting
hnrobert Sep 4, 2026
ffeb4a9
feat: opt-in legacy config migration
hnrobert Sep 6, 2026
901ebe5
fix: update emoji
hnrobert Sep 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_style = space
indent_size = 4

[*.{ts,tsx,js,jsx,cjs,mjs,json,yaml,yml,md}]
indent_style = space
indent_size = 2

[*.md]
indent_size = 3
indent_style = space

[*.{c,cc,cpp,cxx,h,hpp}]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
6 changes: 3 additions & 3 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ inputs:
go-version:
description: "Go version to use"
required: false
default: "1.21"
default: "1.23"

runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: ${{ inputs.go-version }}

Expand All @@ -27,7 +27,7 @@ runs:
mkdir -p "${RUNNER_TEMP}/gomodcache_cache"

- name: Cache Go modules
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
${{ steps.cacheprep.outputs.cache_tmp }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Go with cache
uses: ./.github/actions/setup-go
with:
go-version: "1.21"
go-version: "1.23"

- name: Run tests
run: go test -v ./...
Expand All @@ -44,7 +44,7 @@ jobs:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set image tag
id: tag
Expand All @@ -57,17 +57,17 @@ jobs:
fi

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
provenance: false # Disable provenance to avoid unknown/unknown
sbom: false # Disable sbom to avoid unknown/unknown
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
tag: ${{ steps.create_tag.outputs.tag }}
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand All @@ -48,14 +48,14 @@ jobs:
if: always() && !cancelled() && !failure()
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ needs.create-tag.outputs.tag || github.ref }}

- name: Setup Go with cache
uses: ./.github/actions/setup-go
with:
go-version: "1.21"
go-version: "1.23"

- name: Run tests
run: go test -v ./...
Expand All @@ -70,14 +70,14 @@ jobs:
if: always() && !cancelled() && needs.test.result == 'success'
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ needs.create-tag.outputs.tag || github.ref }}

- name: Setup Go with cache
uses: ./.github/actions/setup-go
with:
go-version: "1.21"
go-version: "1.23"

- name: Get version
id: version
Expand All @@ -93,7 +93,7 @@ jobs:
run: go build -v -ldflags "-X main.Version=${{ steps.version.outputs.version }}" -o bin/feishu-github-tracker ./cmd/feishu-github-tracker

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: feishu-github-tracker-binary-${{ steps.version.outputs.version }}
path: bin/feishu-github-tracker
Expand All @@ -109,7 +109,7 @@ jobs:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ needs.create-tag.outputs.tag || github.ref }}

Expand All @@ -134,17 +134,17 @@ jobs:
echo "tags=${TAGS}" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
provenance: false
sbom: false
Expand All @@ -165,7 +165,7 @@ jobs:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ needs.create-tag.outputs.tag || github.ref }}
fetch-depth: 0
Expand All @@ -181,7 +181,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT

- name: Download binary artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: feishu-github-tracker-binary-${{ steps.version.outputs.version }}
path: ./release
Expand All @@ -208,7 +208,7 @@ jobs:
fi

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.version }}
name: Release ${{ steps.version.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
# 获取完整的 git 历史,以便进行分支操作
fetch-depth: 0
Expand Down
18 changes: 18 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"MD013": false,
"MD024": {
"siblings_only": true
},
"MD033": {
"allowed_elements": [
"details",
"summary",
"img",
"table",
"tr",
"td",
"br",
"kbd"
]
}
}
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"cython",
"delaycompress",
"demilestoned",
"dgst",
"dmypy",
"elif",
"endscript",
Expand All @@ -32,8 +33,10 @@
"GOOS",
"gopkg",
"healthcheck",
"hnrobert",
"htmlcov",
"htpasswd",
"incl",
"ipynb",
"ipython",
"labeled",
Expand Down Expand Up @@ -99,6 +102,7 @@
"spyderproject",
"spyproject",
"streamlit",
"subkey",
"surl",
"timezone",
"tmap",
Expand All @@ -109,19 +113,15 @@
"tval",
"tzdata",
"unlabeled",
"Upgraders",
"venv",
"vname",
"webassets",
"yourdomain",
"zoneinfo"
],
"markdownlint.config": {
"no-inline-html": false,
"first-line-h1": false,
"no-duplicate-heading": false
},
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"handler.go": "handler_*.go"
}
}
}
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- 遵循现有的代码风格
- 添加必要的测试
- 更新相关文档
- 默认配置示例在 `example-configs/`,按分文件布局组织:`patterns/`(每条仓库规则一个文件,含 `weight` 优先级)、`events/event_sets/` 与 `events/definitions/`、`templates/<语言>/<事件>.json`(`server.yaml` 与 `feishu-bots.yaml` 为单文件);改动配置行为时同步更新对应示例

4. **提交更改**

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM golang:1.21-alpine AS builder
FROM golang:1.23-alpine AS builder

# Install build dependencies
RUN apk add --no-cache git ca-certificates tzdata
Expand Down
Loading
Loading