Skip to content

Added workflow context start#33

Merged
allanhvam merged 3 commits intomainfrom
feat/workflow-context-start
Jan 12, 2026
Merged

Added workflow context start#33
allanhvam merged 3 commits intomainfrom
feat/workflow-context-start

Conversation

@allanhvam
Copy link
Copy Markdown
Owner

No description provided.

@allanhvam allanhvam requested a review from Copilot January 12, 2026 19:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds workflow context start time tracking and applies consistent code style formatting across the codebase by converting comma separators to semicolons in TypeScript type definitions and interfaces.

Changes:

  • Added start field to IWorkflowContext to track when workflows begin execution
  • Updated ESLint configuration to enforce semicolons and member delimiter style
  • Converted all type/interface property separators from commas to semicolons throughout the codebase

Reviewed changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/worker/IWorkflowContext.ts Added start: Date field to track workflow start time
src/worker/Worker.ts Refactored to populate workflowContext.start from workflow instance
src/tests/workflows/start.ts New test workflow that returns workflow ID and start time
src/tests/workflows.test.ts Added test case validating workflow start time tracking
src/tests/activities/get-workflow-start.ts New activity to retrieve workflow start time from context
eslint.config.js Updated ESLint config to enforce semicolons and member delimiter style
package.json Version bump to 0.6.0 and added devalue dev dependency
Multiple files Applied semicolon formatting to type/interface definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

});

void test("now", async () => {
void test("now superjson", async () => {
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name "now superjson" is ambiguous. Consider renaming to something more descriptive like "now workflow with superjson serializer" to clearly indicate what is being tested.

Suggested change
void test("now superjson", async () => {
void test("now workflow with superjson serializer", async () => {

Copilot uses AI. Check for mistakes.
assert.ok(instance.result instanceof Date, "Expected result to be Date");
});

void test("now devalue", async () => {
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name "now devalue" is ambiguous. Consider renaming to something more descriptive like "now workflow with devalue serializer" to clearly indicate what is being tested.

Suggested change
void test("now devalue", async () => {
void test("now workflow with devalue serializer", async () => {

Copilot uses AI. Check for mistakes.
@allanhvam allanhvam merged commit c75b888 into main Jan 12, 2026
1 check passed
@allanhvam allanhvam deleted the feat/workflow-context-start branch January 12, 2026 19:15
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.

2 participants