typescriptgithubbotsgithub-apiprobot

How to edit files using (pro)bot on GitHub?


I'm building a GitHub bot using probot framework for editing the README.md of the repository but so far I could not find a way to edit files using probot and neither using any other GitHub bot framework.

So is it possible to edit files using bots on GitHub? If yes please give me some tutorial links or references.

For example I want to add a specific line to the end of README.md on every commit.


Solution

  • I think you can find some info in this Github issue: https://github.com/octokit/rest.js/issues/845#issuecomment-386108187

    If you need help to implement the details I think you can look for existing issues or discussions opened in Octokit repos: https://github.com/octokit/rest.js/discussions/categories/q-a

    Let me know if you still need help with that!