Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Report Snapshot #9

Open
wants to merge 12 commits into
base: feat/338_WeeklyReportScript
Choose a base branch
from
Open
3 changes: 2 additions & 1 deletion .github/workflows/update_report_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Update Report Snapshot
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
# Every Friday at 18:00 Beijing time.
- cron: '0 10 * * 5'

jobs:
default:
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/snapshots/current.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/scripts/snapshots/prev.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/scripts/src/utils/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ProjectItem, createDiscussion, getOrganizationProjects, getProjectItems
import { assert } from './error'
import { ensureFileFolderExists } from './file'

const projectNames = ['CKB Explorer']
const projectNames = ['CKB Explorer', 'Neuron', 'Lumos']
const sortedStatusValues = [
'🆕 New',
'📫Hold On',
Expand All @@ -23,7 +23,7 @@ const currentFilepath = join(folder, 'current.json')
const prevFilepath = join(folder, 'prev.json')

export async function updateSnapshots() {
const projects = await getOrganizationProjects('Magickbase')
const projects = [...(await getOrganizationProjects('Magickbase')), ...(await getOrganizationProjects('ckb-js'))]
const filteredProjects = projects.filter(p => projectNames.includes(p.title))
assert(filteredProjects.length === projectNames.length)

Expand Down
Loading