@@ -156,21 +156,23 @@ export const GithubInstallCommand = cmd({
156156 step2 =
157157 "Configure OIDC in AWS - https://docs.github.com/en/actions/how-tos/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services"
158158 } else {
159- const url = `https://github.com/organizations/${ app . owner } /settings/secrets/actions`
160- const env = providers [ provider ] . env
161- const envStr =
162- env . length === 1
163- ? `\`${ env [ 0 ] } \` secret`
164- : `\`${ [ env . slice ( 0 , - 1 ) . join ( "\`, \`" ) , ...env . slice ( - 1 ) ] . join ( "\` and \`" ) } \` secrets`
165- step2 = `Add ${ envStr } for ${ providers [ provider ] . name } - ${ url } `
159+ step2 = [
160+ ` 2. Add the following secrets in org or repo (${ app . owner } /${ app . repo } ) settings` ,
161+ "" ,
162+ ...providers [ provider ] . env . map ( ( e ) => ` - ${ e } ` ) ,
163+ ] . join ( "\n" )
166164 }
167165
168166 prompts . outro (
169167 [
170168 "Next steps:" ,
171- ` 1. Commit "${ WORKFLOW_FILE } " file and push` ,
172- ` 2. ${ step2 } ` ,
173- " 3. Learn how to use the GitHub agent - https://docs.opencode.ai/docs/github/getting-started" ,
169+ "" ,
170+ ` 1. Commit the \`${ WORKFLOW_FILE } \` file and push` ,
171+ step2 ,
172+ "" ,
173+ " 3. Go to a GitHub issue and comment `/oc summarize` to see the agent in action" ,
174+ "" ,
175+ " Learn more about the GitHub agent - https://opencode.ai/docs/github/#usage-examples" ,
174176 ] . join ( "\n" ) ,
175177 )
176178 }
@@ -320,6 +322,7 @@ jobs:
320322 contains(github.event.comment.body, '/opencode')
321323 runs-on: ubuntu-latest
322324 permissions:
325+ contents: read
323326 id-token: write
324327 steps:
325328 - name: Checkout repository
@@ -457,8 +460,9 @@ export const GithubRunCommand = cmd({
457460 `${ response } \n\nCloses #${ issueId } ${ footer ( { image : true } ) } ` ,
458461 )
459462 await updateComment ( `Created PR #${ pr } ${ footer ( { image : true } ) } ` )
463+ } else {
464+ await updateComment ( `${ response } ${ footer ( { image : true } ) } ` )
460465 }
461- await updateComment ( `${ response } ${ footer ( { image : true } ) } ` )
462466 }
463467 } catch ( e : any ) {
464468 exitCode = 1
0 commit comments