Skip to content

Commit

Permalink
action.yml: include explained patch
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Nov 29, 2023
1 parent 5fa7bd4 commit 35ab54d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,23 @@ runs:
with:
script: |
const { default: explainPatch } = await import('${{ github.action_path }}/src/openaiExplainPatch.js')
console.log(process.env)
console.log(await explainPatch({
const watermark = `\n\nWatermark: puLL-Merge - ${process.env.GITHUB_REPOSITORY}@${process.env.PRNUM}`
const patchExplained = await explainPatch({
openaiKey: process.env.OPENAI_API_KEY,
github: github,
repo: process.env.GITHUB_REPOSITORY,
prnum: process.env.PRNUM}))
prnum: process.env.PRNUM});
patchExplained += watermark;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: patchExplained
});
console.log('rerun')
console.log('implement me')

0 comments on commit 35ab54d

Please sign in to comment.