Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gebijia-project-kb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bos-project-kb
gebijia-project-kb
Commits
7817faf2
Commit
7817faf2
authored
Sep 16, 2026
by
杨欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue: 新建 ISS-GEB-020 OA抓取超账期订单需显示超额信息
parent
04155d1e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
160 additions
and
0 deletions
+160
-0
fix_head.py
issues-ledger/fix_head.py
+34
-0
ISS-GEB-020.md
issues-ledger/issues/ISS-GEB-020.md
+32
-0
reset_and_create.py
issues-ledger/reset_and_create.py
+94
-0
No files found.
issues-ledger/fix_head.py
0 → 100644
View file @
7817faf2
import
subprocess
,
os
git_root
=
r"F:\实施项目\KB-戈碧迦项目\gebijia-project-kb"
# Check current branch
print
(
"=== Current Branch ==="
)
r
=
subprocess
.
run
([
"git"
,
"branch"
,
"--show-current"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Branch: '{r.stdout.strip()}'"
)
# Check if detached
r
=
subprocess
.
run
([
"git"
,
"status"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Status: {r.stdout[:300]}"
)
# Switch to master
print
(
"
\n
=== Switch to master ==="
)
r
=
subprocess
.
run
([
"git"
,
"checkout"
,
"master"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Checkout: {r.stdout.strip()[:200]}"
)
# Pull latest
print
(
"
\n
=== Pull latest ==="
)
r
=
subprocess
.
run
([
"git"
,
"pull"
,
"--rebase"
,
"origin"
,
"master"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Pull: {r.stdout.strip()[:200]}"
)
# Check if ISS-GEB-020 exists on master
print
(
"
\n
=== Check ISS-GEB-020 on master ==="
)
iss020
=
os
.
path
.
join
(
git_root
,
"issues-ledger"
,
"issues"
,
"ISS-GEB-020.md"
)
if
os
.
path
.
exists
(
iss020
):
print
(
"ISS-GEB-020 exists on master"
)
else
:
print
(
"ISS-GEB-020 does NOT exist on master, need to cherry-pick or recreate"
)
# Check git log
r
=
subprocess
.
run
([
"git"
,
"log"
,
"--oneline"
,
"-5"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"
\n
Log:
\n
{r.stdout}"
)
issues-ledger/issues/ISS-GEB-020.md
0 → 100644
View file @
7817faf2
---
id
:
ISS-GEB-020
project
:
gebijia项目
title
:
OA抓取超账期订单需显示超额信息
raised_dept
:
项目组
raised_by
:
xin.yang
owner
:
刘欣媛 <xinyuan.liu@boscloud.cn>
owner_history
:
-
{
from
:
xin.yang
,
to
:
刘欣媛 <xinyuan.liu@boscloud.cn>
,
by
:
xin.yang
,
date
:
2026-09-16
,
reason
:
新建指派
}
system
:
SAP
registered
:
2026-09-16
category
:
开发需求
priority
:
高
sap_status
:
未开始
acceptance
:
NA
plan_date
:
"
2026-09-30"
developer
:
"
"
evidence
:
[]
attachments
:
[]
source
:
新建
linked
:
[]
---
# ISS-GEB-020 OA抓取超账期订单需显示超额信息
## 问题描述
销售订单下达时,OA抓取超账期订单,需要显示"超账期天数、超额金额"技术问题。
## 当前方案
## 进展日志
-
2026-09-16 · xin.yang ·
[
新建
]
· 创建问题;sap_status=未开始, acceptance=NA;owner=xin.yang→刘欣媛
<xinyuan.liu@boscloud.cn>
(新建指派)
issues-ledger/reset_and_create.py
0 → 100644
View file @
7817faf2
import
subprocess
,
os
,
re
git_root
=
r"F:\实施项目\KB-戈碧迦项目\gebijia-project-kb"
issues_dir
=
os
.
path
.
join
(
git_root
,
"issues-ledger"
,
"issues"
)
# Step 1: Abort any ongoing rebase
print
(
"=== Step 1: Abort rebase ==="
)
subprocess
.
run
([
"git"
,
"rebase"
,
"--abort"
],
cwd
=
git_root
,
capture_output
=
True
)
# Step 2: Reset to remote master
print
(
"
\n
=== Step 2: Reset to remote master ==="
)
subprocess
.
run
([
"git"
,
"fetch"
,
"origin"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
r
=
subprocess
.
run
([
"git"
,
"reset"
,
"--hard"
,
"origin/master"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Reset: {r.stdout.strip()[:200]}"
)
# Step 3: Verify remote issues
print
(
"
\n
=== Step 3: Verify remote issues ==="
)
for
f
in
sorted
(
os
.
listdir
(
issues_dir
)):
if
f
.
endswith
(
".md"
):
path
=
os
.
path
.
join
(
issues_dir
,
f
)
with
open
(
path
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
as
fh
:
c
=
fh
.
read
()
m_id
=
re
.
search
(
r"id:\s*(\S+)"
,
c
)
m_title
=
re
.
search
(
r"title:\s*(.*)"
,
c
)
print
(
f
" {f}: id={m_id.group(1) if m_id else '?'}"
)
# Step 4: Check max ID
print
(
"
\n
=== Step 4: Find max ID ==="
)
max_id
=
0
for
f
in
os
.
listdir
(
issues_dir
):
if
f
.
startswith
(
"ISS-GEB-"
)
and
f
.
endswith
(
".md"
):
m
=
re
.
match
(
r"ISS-GEB-(\d+)"
,
f
)
if
m
:
num
=
int
(
m
.
group
(
1
))
if
num
>
max_id
:
max_id
=
num
print
(
f
"Max ID: ISS-GEB-{max_id:03d}"
)
# Step 5: Create new issue with next ID
next_id
=
max_id
+
1
print
(
f
"
\n
=== Step 5: Create ISS-GEB-{next_id:03d} ==="
)
issue_content
=
f
"""---
id: ISS-GEB-{next_id:03d}
project: gebijia项目
title: OA抓取超账期订单需显示超额信息
raised_dept: 项目组
raised_by: xin.yang
owner: 刘欣媛 <xinyuan.liu@boscloud.cn>
owner_history:
- {{from: xin.yang, to: 刘欣媛 <xinyuan.liu@boscloud.cn>, by: xin.yang, date: 2026-09-16, reason: 新建指派}}
system: SAP
registered: 2026-09-16
category: 开发需求
priority: 高
sap_status: 未开始
acceptance: NA
plan_date: "2026-09-30"
developer: ""
evidence: []
attachments: []
source: 新建
linked: []
---
# ISS-GEB-{next_id:03d} OA抓取超账期订单需显示超额信息
## 问题描述
销售订单下达时,OA抓取超账期订单,需要显示"超账期天数、超额金额"技术问题。
## 当前方案
## 进展日志
- 2026-09-16 · xin.yang · [新建] · 创建问题;sap_status=未开始, acceptance=NA;owner=xin.yang→刘欣媛 <xinyuan.liu@boscloud.cn>(新建指派)
"""
new_path
=
os
.
path
.
join
(
issues_dir
,
f
"ISS-GEB-{next_id:03d}.md"
)
with
open
(
new_path
,
"w"
,
encoding
=
"utf-8"
)
as
f
:
f
.
write
(
issue_content
)
print
(
f
"ISS-GEB-{next_id:03d} created"
)
# Step 6: Commit and push
print
(
"
\n
=== Step 6: Git commit and push ==="
)
subprocess
.
run
([
"git"
,
"add"
,
"-A"
],
cwd
=
issues_dir
,
capture_output
=
True
)
r
=
subprocess
.
run
([
"git"
,
"commit"
,
"-m"
,
f
"issue: 新建 ISS-GEB-{next_id:03d} OA抓取超账期订单需显示超额信息"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Commit: {r.stdout.strip()[:200]}"
)
r
=
subprocess
.
run
([
"git"
,
"push"
,
"origin"
,
"master"
],
cwd
=
git_root
,
capture_output
=
True
,
encoding
=
"utf-8"
,
errors
=
"replace"
)
print
(
f
"Push returncode: {r.returncode}"
)
if
r
.
returncode
==
0
:
print
(
f
"Push: {r.stdout.strip()[:200]}"
)
else
:
print
(
f
"Push error: {r.stderr.strip()[:300]}"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment