Virtual4087/Tree2Hope

Implement automatic commenting when an issue or pr is opened

Closed this issue · 5 comments

Build an automated commenting system using Github Actions that responds to new issues and pull requests in the project repository. This will improve communication and engagement with contributors, making it easier to provide acknowledgments, guidance, or relevant information whenever there's new activity.

Sample message whenever the issue is raised:

Thank you [author's name] for bringing up this issue to help enhance our project even further! We'll review it soon. 🙌❤️

Sample message whenever a pull request is opened:

Thank you for opening a pull request [author's name]. We'll will review it as soon as possible 🙌❤️

Ensure that the message mentions the author of the issue.

You can take reference from this repo.

This seems fun. Assign me this task

To https://github.com/Preetraj2002/Tree2Hope.git
! [remote rejected] issue_26 -> issue_26 (refusing to allow a Personal Access Token to create or update workflow .github/workflows/auto-comment.yaml without workflow scope)
error: failed to push some refs to 'https://github.com/Preetraj2002/Tree2Hope.git'

This is the error that i am facing can you please guide me @Virtual4087

@Preetraj2002 that's an error regarding Github token of the repo which only I have access to. I would recommend you to create a private repo by yourself to test the workflow. That way, you can include your own Github token from your repository and test the workflow. If the workflow works fine, copy the contents of your workflow in your fork and open a pr.

Note: when making a pr make sure that you remove your actual Github token and use something else as a placeholder. If you don't know how to create a Github token, you can google it or even find tutorials on youtube.

You can test the workflow by opening issues and prs in your own repo. If a bot replies to it, then it's working fine.