Skip to content

fix(timeline): pass read filters as data#1635

Open
jbetala7 wants to merge 1 commit into
garrytan:mainfrom
jbetala7:oss/fix-timeline-read-quoted-branch
Open

fix(timeline): pass read filters as data#1635
jbetala7 wants to merge 1 commit into
garrytan:mainfrom
jbetala7:oss/fix-timeline-read-quoted-branch

Conversation

@jbetala7
Copy link
Copy Markdown
Contributor

Fixes #1634

What changed

  • Pass gstack-timeline-read filter values through environment variables instead of interpolating shell arguments into the inline Bun program.
  • Parse the limit from env with a positive-integer fallback.
  • Add a regression test for branch names containing single quotes.

Why

gstack-timeline-read --branch "feature/o'hare" could break the generated JavaScript source, and stderr was suppressed, so the command returned empty output even when matching events existed.

Testing

  • bun test --timeout 20000 test/timeline.test.ts
  • Manual repro: recorded an event on feature/o'hare and confirmed gstack-timeline-read --branch "feature/o'hare" returns it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gstack-timeline-read drops branch filters containing apostrophes

1 participant