I am trying to extend what I described here to automatic commenting on the latest PR I would create.
Here’s what I have done so far -
- Created this script that would create the comment with the PR and Issues GitHub APIs.
- Wrote this sample workflow that would execute that script to facilitate the commenting.
With this setup, the
create_pr_comment.py script is failing to get executed. -
It’s very weird to me that
requests is unavailable in standard Python setup. Or am I missing something out?
Edit: I was able to resolve the issue and I can now see automatic comments on the latest PR -
Is it possible to have a GitHub bot make this comment? I tried the following, but it did not work out -
pip install requests git config --global user.name github-actions[bot] git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com python create_pr_comment.py