Commit b8806a8cc706

Vincent Demeester <vincent@sbr.pm>
2026-02-02 21:30:05
fix: correct command format for copilot and opencode in gh-news-review
- copilot requires -p flag for non-interactive prompt mode - opencode requires 'run' subcommand for message execution
1 parent 9a4383d
Changed files (1)
pkgs
my
scripts
pkgs/my/scripts/bin/gh-news-review
@@ -122,7 +122,7 @@ claude)
 	fi
 	;;
 copilot)
-	AI_CMD="copilot"
+	AI_CMD="copilot -p"
 	# Note: copilot doesn't have a yolo/skip-permissions mode
 	;;
 pi)
@@ -132,7 +132,7 @@ pi)
 	fi
 	;;
 opencode)
-	AI_CMD="opencode"
+	AI_CMD="opencode run"
 	# Note: opencode doesn't have a yolo/skip-permissions mode
 	;;
 esac