Skip to content

feat(examples): add Jira + OpenCode sample workflow#502

Merged
sergeyklay merged 2 commits intomainfrom
feat/opencode-sample-workflow
Apr 26, 2026
Merged

feat(examples): add Jira + OpenCode sample workflow#502
sergeyklay merged 2 commits intomainfrom
feat/opencode-sample-workflow

Conversation

@sergeyklay
Copy link
Copy Markdown
Member

🎯 Scope & Context

Type: Feat

Intent: Adds examples/WORKFLOW.opencode.md, a ready-to-copy sample workflow pairing the Jira tracker with the OpenCode CLI agent. Companion to the OpenCode adapter (#476) and published alongside the existing Claude Code, Copilot, and Codex examples.

Related Issues: Closes #479

🧭 Reviewer Guide

Complexity: Low

Entry Point

examples/WORKFLOW.opencode.md — the new sample file. Review the opencode: extension block (model, dangerously_skip_permissions, disable_autocompact) against what internal/agent/opencode/command.go reads from passthrough config, and confirm the hooks match the Jira + Codex pattern.

Sensitive Areas

  • cmd/sortie/sample_workflow_test.go: extends four existing test functions and adds TestSampleWorkflowOpenCodeExtension to validate the opencode: extension block fields, agent.kind, and tracker.kind at load time.

⚠️ Risk Assessment

  • Breaking Changes: No breaking changes
  • Migrations/State: No migrations or state changes

@sergeyklay sergeyklay requested a review from serghei-dev as a code owner April 26, 2026 20:23
Copilot AI review requested due to automatic review settings April 26, 2026 20:23
@sergeyklay sergeyklay added the area:agent-adapter Agent interface, Claude Code adapter, Copilot adapter, mock label Apr 26, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Adds a new ready-to-copy sample workflow for running Sortie against Jira using the OpenCode CLI agent, and extends the sample-workflow test suite to ensure the example loads/renders and contains expected config keys.

Changes:

  • Add examples/WORKFLOW.opencode.md sample workflow (Jira tracker + OpenCode agent) with hooks and prompt template.
  • Extend cmd/sortie/sample_workflow_test.go to load/render the new sample and assert key OpenCode extension fields.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
examples/WORKFLOW.opencode.md New Jira + OpenCode sample workflow including hooks, agent config, and prompt template.
cmd/sortie/sample_workflow_test.go Adds coverage to ensure the new sample workflow loads, renders, and includes expected opencode extension settings.

Comment thread examples/WORKFLOW.opencode.md
@sergeyklay sergeyklay merged commit 46d7800 into main Apr 26, 2026
5 checks passed
@sergeyklay sergeyklay deleted the feat/opencode-sample-workflow branch April 26, 2026 20:42
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sortie Roadmap Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent-adapter Agent interface, Claude Code adapter, Copilot adapter, mock

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Write sample WORKFLOW.md for Jira + OpenCode CLI

3 participants