Skip to content

Commit 11f3eb3

Browse files
ppminamin
andauthored
Develop (#14)
* chore: regular update * feat: add four market features(oi, lsratio, funding rate, category) * chore: fix ci changelog repeat --------- Co-authored-by: min <[email protected]>
1 parent 6807616 commit 11f3eb3

File tree

3 files changed

+6
-62
lines changed

3 files changed

+6
-62
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,19 @@ jobs:
9797
run: |
9898
# 使用 semantic release 生成的 changelog
9999
if [ -f "CHANGELOG.md" ]; then
100-
# 提取当前版本的 changelog 内容
101-
CHANGELOG=$(awk "/## v${{ steps.release.outputs.version }}/{flag=1; next} /## v/{flag=0} flag" CHANGELOG.md)
100+
# 提取当前版本的 changelog 内容,避免重复
101+
CHANGELOG=$(awk "/## v${{ steps.release.outputs.version }}/{flag=1; next} /## v/{flag=0} flag && !/^$/" CHANGELOG.md | head -20)
102102
if [ -z "$CHANGELOG" ]; then
103103
# 如果没有找到版本特定的内容,尝试提取第一个版本块
104-
CHANGELOG=$(awk '/## v/{if(first){exit} first=1; next} first' CHANGELOG.md)
104+
CHANGELOG=$(awk '/## v/{if(first){exit} first=1; next} first && !/^$/' CHANGELOG.md | head -20)
105105
fi
106106
else
107107
CHANGELOG="No changelog available"
108108
fi
109109
110+
# 清理可能的重复条目
111+
CHANGELOG=$(echo "$CHANGELOG" | awk '!seen[$0]++')
112+
110113
echo "changelog<<EOF" >> $GITHUB_OUTPUT
111114
echo "$CHANGELOG" >> $GITHUB_OUTPUT
112115
echo "EOF" >> $GITHUB_OUTPUT
@@ -132,14 +135,3 @@ jobs:
132135
"repository": "${{ github.repository }}",
133136
"release_url": "https://github.com/${{ github.repository }}/releases/tag/v${{ steps.release.outputs.version }}"
134137
}
135-
136-
- name: Create PR to develop
137-
if: steps.release.outputs.released == 'true'
138-
env:
139-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140-
run: |
141-
gh pr create \
142-
--base develop \
143-
--head main \
144-
--title "chore(release): sync v${{ steps.release.outputs.version }} from main to develop" \
145-
--body "This PR syncs the latest release from the main branch back to develop."

CHANGELOG.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,25 @@
66

77
### Bug Fixes
88

9-
- Change default export path structure
10-
([`9cda028`](https://github.com/ppmina/Xdata/commit/9cda0282d6bfeee822c805de13f04be0995ebe93))
11-
129
- Change default export path structure ([#11](https://github.com/ppmina/Xdata/pull/11),
1310
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
1411

15-
- Enhance universe definition and market data service
16-
([`5f280f9`](https://github.com/ppmina/Xdata/commit/5f280f922792d07ec7d2c037c5860542f41d7e01))
17-
1812
- Enhance universe definition and market data service
1913
([#11](https://github.com/ppmina/Xdata/pull/11),
2014
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
2115

22-
- Fix date to ts in storagedb
23-
([`9b5b7d3`](https://github.com/ppmina/Xdata/commit/9b5b7d3320fd4c063b5f4b22592252af1ce8e522))
24-
2516
- Fix date to ts in storagedb ([#11](https://github.com/ppmina/Xdata/pull/11),
2617
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
2718

28-
- Fix pytest
29-
([`b128dc2`](https://github.com/ppmina/Xdata/commit/b128dc2a3bad23cf3b693ce0d118132c204c0612))
30-
3119
- Fix pytest ([#11](https://github.com/ppmina/Xdata/pull/11),
3220
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
3321

34-
- Fix some olg bugs
35-
([`62ddeea`](https://github.com/ppmina/Xdata/commit/62ddeea6461d1f76b8895f3f16aec6e167cc2556))
36-
3722
- Fix some olg bugs ([#11](https://github.com/ppmina/Xdata/pull/11),
3823
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
3924

40-
- Make three demo working fine
41-
([`3cb76cc`](https://github.com/ppmina/Xdata/commit/3cb76ccece32637714cf09f264ac6c54b398ef9d))
42-
4325
- Make three demo working fine ([#11](https://github.com/ppmina/Xdata/pull/11),
4426
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
4527

46-
- Readme to latest
47-
([`3817eb4`](https://github.com/ppmina/Xdata/commit/3817eb46903de46db4b1c36da2713f50ccc01917))
48-
4928
- Readme to latest ([#11](https://github.com/ppmina/Xdata/pull/11),
5029
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
5130

@@ -55,15 +34,9 @@
5534
([#13](https://github.com/ppmina/Xdata/pull/13),
5635
[`c2294ea`](https://github.com/ppmina/Xdata/commit/c2294ead8f4a3b1c50d5e282238254a258671ed7))
5736

58-
- Add top_ratio feature replace top_k
59-
([`f1e0ccf`](https://github.com/ppmina/Xdata/commit/f1e0ccff4b60aea3df39b4b06794f9d89400d2ee))
60-
6137
- Add top_ratio feature replace top_k ([#11](https://github.com/ppmina/Xdata/pull/11),
6238
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
6339

64-
- New feature( universe define and download data)
65-
([`fdaf46c`](https://github.com/ppmina/Xdata/commit/fdaf46cd9e80f9a1a7eeccdee5c02b1c6f8a2db6))
66-
6740
- New feature( universe define and download data) ([#11](https://github.com/ppmina/Xdata/pull/11),
6841
[`41dea5e`](https://github.com/ppmina/Xdata/commit/41dea5e650bb742aab88e3ac107f532b081ec750))
6942

@@ -255,21 +228,13 @@
255228
- Fix version problem
256229
([`ed20e4f`](https://github.com/ppmina/Xdata/commit/ed20e4fff4f52a70fb3b92fdb60f582fac26fca5))
257230

258-
- Fix version problem
259-
([`545c070`](https://github.com/ppmina/Xdata/commit/545c0702d153523717609eeaef937fee308abc90))
260-
261231
### Features
262232

263233
- Aaa ([`e907a99`](https://github.com/ppmina/Xdata/commit/e907a9991d33f2c1481dba9096e03832c9adc681))
264234

265-
- Aaa ([`b1ec053`](https://github.com/ppmina/Xdata/commit/b1ec053ecf289cf1136c45c33b9d0ee04308b586))
266-
267235
- New thing
268236
([`2d26c85`](https://github.com/ppmina/Xdata/commit/2d26c85339df374be4ad1fa87481646cfbb5a90d))
269237

270-
- New thing
271-
([`797c3ca`](https://github.com/ppmina/Xdata/commit/797c3ca032bd403c92035fb86a1b2223a24dc968))
272-
273238

274239
## v0.1.1 (2025-01-01)
275240

@@ -281,21 +246,12 @@
281246
- Fix some problems
282247
([`ba1c211`](https://github.com/ppmina/Xdata/commit/ba1c2116eb37c47fcda58796defe8216cfb3a702))
283248

284-
- Fix some problems
285-
([`a49f271`](https://github.com/ppmina/Xdata/commit/a49f271330e7731674c4f4a1fe71ca96740b955c))
286-
287-
- Fix some problems
288-
([`0b9d046`](https://github.com/ppmina/Xdata/commit/0b9d0464a26438b429bb350c5265f11b9a9a015f))
289-
290249
- Fix version problem
291250
([`ed10d5a`](https://github.com/ppmina/Xdata/commit/ed10d5a64c4faae0c5bd88223f43545b45103bc4))
292251

293252
- **ci**: Fix ci problems
294253
([`9faffab`](https://github.com/ppmina/Xdata/commit/9faffab7e0dc7e989cfe2186063f9f4454db4847))
295254

296-
- **ci**: Fix ci problems
297-
([`bbfe98d`](https://github.com/ppmina/Xdata/commit/bbfe98d6a3126ba348dbc6208eb0b16d136cf3a5))
298-
299255
### Chores
300256

301257
- **release**: Test
@@ -314,9 +270,6 @@
314270
- Add some storege fuc and pypi publish
315271
([`2484f61`](https://github.com/ppmina/Xdata/commit/2484f61d8c59b421f1ddf3b716b250f13a2fd865))
316272

317-
- Add some storege fuc and pypi publish
318-
([`7b4b0b1`](https://github.com/ppmina/Xdata/commit/7b4b0b1fff0b341b8c3a0a86c429332f4e921be0))
319-
320273
- Consructed some ability
321274
([`33a7c65`](https://github.com/ppmina/Xdata/commit/33a7c65eb530a1f9244bb111fe761a1c67d3bb5b))
322275

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ major_on_zero = false
5151

5252
[tool.semantic_release.changelog]
5353
changelog_file = "CHANGELOG.md"
54-
template_dir = "templates"
5554
exclude_commit_patterns = [
5655
"^chore",
5756
"^ci",

0 commit comments

Comments
 (0)