feat(examples): add Jira + OpenCode sample workflow#502
Merged
sergeyklay merged 2 commits intomainfrom Apr 26, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
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.mdsample workflow (Jira tracker + OpenCode agent) with hooks and prompt template. - Extend
cmd/sortie/sample_workflow_test.goto 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 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 theopencode:extension block (model,dangerously_skip_permissions,disable_autocompact) against whatinternal/agent/opencode/command.goreads 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 addsTestSampleWorkflowOpenCodeExtensionto validate theopencode:extension block fields,agent.kind, andtracker.kindat load time.