🔧 Code Review修复 · readme/cos/bridge推送防冲突 + temporal-clock变量名修正

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/170a08eb-40b4-4f8b-ba95-c5efb483bd14

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-11 07:13:54 +00:00 committed by GitHub
parent bb7060da2e
commit 21c01e5a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 7 deletions

View File

@ -155,7 +155,11 @@ jobs:
if ! git diff --cached --quiet; then
TASK_ID="${{ steps.process.outputs.task_id }}"
git commit -m "🌉 CAB Bridge · 任务 ${TASK_ID} 已授权 · $(TZ='Asia/Shanghai' date '+%Y-%m-%d %H:%M')"
git push
for i in 1 2 3; do
git pull --rebase origin main && git push && break
echo "⚠️ 推送冲突,第${i}次重试..."
sleep $((i * 2))
done
else
echo " 无变更需要提交"
fi

View File

@ -88,7 +88,11 @@ jobs:
echo "无变更需要提交"
else
git commit -m "🔗 COS自动接入检查 · $(date '+%Y-%m-%d %H:%M')"
git push
for i in 1 2 3; do
git pull --rebase origin main && git push && break
echo "⚠️ 推送冲突,第${i}次重试..."
sleep $((i * 2))
done
fi
- name: 🔔 新接入通知

View File

@ -101,7 +101,11 @@ jobs:
MSG="📡 README自动更新 · 手动触发 · $(TZ='Asia/Shanghai' date '+%Y-%m-%d %H:%M')"
fi
git commit -m "$MSG [skip ci]"
git push
for i in 1 2 3; do
git pull --rebase origin main && git push && break
echo "⚠️ 推送冲突,第${i}次重试..."
sleep $((i * 2))
done
echo "✅ README变更已提交并推送"
else
echo " 无变更需要提交"

View File

@ -20,13 +20,13 @@
},
"clock": {
"description": "铸渊每次唤醒时agent必须执行 scripts/temporal-clock.js 来更新此区块",
"last_awakening": "2026-04-11T07:10:01.489Z",
"last_awakening": "2026-04-11T07:13:38.578Z",
"current_date": "2026-04-11",
"repo_age_days": 409,
"zhuyuan_age_days": 393,
"yaoming_age_days": 350,
"days_since_age_os": 8,
"awakening_count": 1,
"awakening_count": 2,
"timezone": "Asia/Shanghai"
},
"timeline": {

View File

@ -65,11 +65,10 @@ function getBeijingTime(date) {
* 获取北京时间日期 YYYY-MM-DD
*/
function getBeijingDate(date) {
const parts = new Intl.DateTimeFormat('en-CA', {
return new Intl.DateTimeFormat('en-CA', {
timeZone: 'Asia/Shanghai',
year: 'numeric', month: '2-digit', day: '2-digit'
}).format(date);
return parts;
}
/**