Skip to content

Commit

Permalink
can i do this?
Browse files Browse the repository at this point in the history
  • Loading branch information
jakethesnake420 committed Jan 30, 2024
1 parent 995af85 commit 7fe6b26
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/auto_pr_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,21 @@ jobs:
console.log("Label 'in-bot-review' not found, ignoring");
});
}
post_update_comment:
name: Post Update Comment
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && (github.event.action == 'synchronize' || github.event.action == 'edited')
steps:
- name: Post Comment on PR
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const prNumber = context.payload.pull_request.number;
const commentBody = 'How the heckin heck does this work? Can I just put comments like this? Do I have the auth to do this?';
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: commentBody
});

0 comments on commit 7fe6b26

Please sign in to comment.