Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
hyperframes/scripts/changelog-weekly.test.ts at main · bidaningu/hyperframes · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
bidaningu
hyperframes
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
hyperframes
/
scripts
/
changelog-weekly.test.ts
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
117 lines (104 loc) · 3.78 KB
main
Breadcrumbs
hyperframes
/
scripts
/
changelog-weekly.test.ts
Copy path
Top
File metadata and controls
Code
Blame
117 lines (104 loc) · 3.78 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import
assert
from
"node:assert/strict"
;
import
{
describe
,
it
}
from
"node:test"
;
import
{
createWeeklyDraft
,
parseWeeklyOptions
,
weeklyPacketPaths
}
from
"./changelog-weekly.ts"
;
import
{
parseCommit
,
type
RawCommit
}
from
"./draft-changelog.ts"
;
function
commit
(
subject
:
string
)
{
const
raw
:
RawCommit
=
{
sha
:
"1234567890abcdef1234567890abcdef12345678"
,
shortSha
:
"1234567"
,
author
:
"Test Author"
,
subject
,
}
;
return
{
...
parseCommit
(
raw
)
,
date
:
"2026-06-03"
,
}
;
}
describe
(
"weekly changelog arguments"
,
(
)
=>
{
it
(
"parses date range and write flags"
,
(
)
=>
{
assert
.
deepEqual
(
parseWeeklyOptions
(
[
"--from"
,
"2026-06-01"
,
"--to=2026-06-07"
,
"--write"
,
"--force"
]
)
,
{
from
:
"2026-06-01"
,
to
:
"2026-06-07"
,
write
:
true
,
force
:
true
,
}
,
)
;
}
)
;
}
)
;
describe
(
"weekly changelog rendering"
,
(
)
=>
{
it
(
"creates docs, source, Discord, and X drafts"
,
(
)
=>
{
const
draft
=
createWeeklyDraft
(
{
from
:
"2026-06-01"
,
to
:
"2026-06-07"
,
write
:
false
,
force
:
false
,
}
,
[
commit
(
"feat(cli): add render hints (#42)"
)
,
commit
(
"fix: repair playback"
)
]
,
)
;
assert
.
match
(
draft
.
docsUpdate
,
/
l
a
b
e
l
=
"
W
e
e
k
o
f
J
u
n
e
1
,
2
0
2
6
"
/
)
;
assert
.
match
(
draft
.
weeklyNotes
,
/
H
y
p
e
r
F
r
a
m
e
s
w
e
e
k
l
y
d
i
g
e
s
t
-
J
u
n
e
1
,
2
0
2
6
-
J
u
n
e
7
,
2
0
2
6
/
)
;
assert
.
match
(
draft
.
discordDraft
,
/
T
h
i
s
w
e
e
k
'
s
h
i
g
h
l
i
g
h
t
s
:
/
)
;
assert
.
match
(
draft
.
xDraft
,
/
F
u
l
l
u
p
d
a
t
e
:
T
O
D
O
a
d
d
d
o
c
s
l
i
n
k
/
)
;
}
)
;
it
(
"keeps internal and editorial-only changes out of top highlights"
,
(
)
=>
{
const
draft
=
createWeeklyDraft
(
{
from
:
"2026-06-01"
,
to
:
"2026-06-07"
,
write
:
false
,
force
:
false
,
}
,
[
commit
(
"feat(docs): add changelog release workflow (#41)"
)
,
commit
(
"fix(cli): validate cloud render input (#42)"
)
,
commit
(
"chore: update generated baselines (#43)"
)
,
]
,
)
;
assert
.
match
(
draft
.
discordDraft
,
/
C
L
I
:
V
a
l
i
d
a
t
e
c
l
o
u
d
r
e
n
d
e
r
i
n
p
u
t
/
)
;
assert
.
doesNotMatch
(
draft
.
discordDraft
,
/
D
o
c
s
:
A
d
d
c
h
a
n
g
e
l
o
g
r
e
l
e
a
s
e
w
o
r
k
f
l
o
w
/
)
;
assert
.
doesNotMatch
(
draft
.
docsUpdate
,
/
U
p
d
a
t
e
g
e
n
e
r
a
t
e
d
b
a
s
e
l
i
n
e
s
/
)
;
}
)
;
it
(
"terminates generated bullets so consecutive items are not read as one sentence"
,
(
)
=>
{
const
draft
=
createWeeklyDraft
(
{
from
:
"2026-06-01"
,
to
:
"2026-06-07"
,
write
:
false
,
force
:
false
,
}
,
[
commit
(
"feat(cli): add render hints (#42)"
)
,
commit
(
"fix: repair playback"
)
]
,
)
;
const
bullets
=
draft
.
docsUpdate
.
split
(
"\n"
)
.
filter
(
(
line
)
=>
line
.
startsWith
(
"- "
)
)
;
assert
.
ok
(
bullets
.
length
>
0
)
;
// Every bullet ends a sentence, so a reader (or an RSS feed) does not run
// consecutive list items together into one giant run-on sentence.
bullets
.
forEach
(
(
bullet
)
=>
assert
.
ok
(
bullet
.
endsWith
(
"."
)
,
`unterminated bullet:
${
bullet
}
`
)
)
;
const
commitBullets
=
bullets
.
filter
(
(
bullet
)
=>
bullet
.
includes
(
"/commit/"
)
)
;
assert
.
ok
(
commitBullets
.
length
>
0
)
;
commitBullets
.
forEach
(
(
bullet
)
=>
assert
.
ok
(
bullet
.
endsWith
(
")."
)
)
)
;
}
)
;
it
(
"stamps the writing bar into drafts that a human has to rewrite"
,
(
)
=>
{
const
draft
=
createWeeklyDraft
(
{
from
:
"2026-06-01"
,
to
:
"2026-06-07"
,
write
:
false
,
force
:
false
,
}
,
[
commit
(
"fix: repair playback"
)
]
,
)
;
for
(
const
text
of
[
draft
.
docsUpdate
,
draft
.
weeklyNotes
,
draft
.
discordDraft
,
draft
.
xDraft
]
)
{
assert
.
match
(
text
,
/
S
t
y
l
e
b
a
r
:
k
e
e
p
s
e
n
t
e
n
c
e
s
u
n
d
e
r
2
5
w
o
r
d
s
/
)
;
}
}
)
;
it
(
"uses predictable packet paths from the week ending date"
,
(
)
=>
{
assert
.
deepEqual
(
weeklyPacketPaths
(
"2026-06-07"
)
,
{
weeklyNotes
:
"updates/weekly/2026-06-07.md"
,
discordDraft
:
"updates/social/2026-06-07.discord.md"
,
xDraft
:
"updates/social/2026-06-07.x.md"
,
}
)
;
}
)
;
}
)
;
You can’t perform that action at this time.