MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / github_action_context_lines

Function github_action_context_lines

crates/opencode-cli/src/main.rs:4271–4281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4269}
4270
4271fn github_action_context_lines() -> Vec<String> {
4272 vec![
4273 "<github_action_context>".to_string(),
4274 "You are running as a GitHub Action. Important:".to_string(),
4275 "- Git push and PR creation are handled AUTOMATICALLY by the opencode infrastructure after your response".to_string(),
4276 "- Do NOT include warnings or disclaimers about GitHub tokens, workflow permissions, or PR creation capabilities".to_string(),
4277 "- Do NOT suggest manual steps for creating PRs or pushing code - this happens automatically".to_string(),
4278 "- Focus only on the code changes and your analysis/response".to_string(),
4279 "</github_action_context>".to_string(),
4280 ]
4281}
4282
4283fn build_prompt_data_for_issue(
4284 owner: &str,

Callers 2

build_prompt_data_for_prFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected