Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan a news bot which listens to commit messages from research repo and generate news note on the research website if the commits start with word "Major: " #42

Open
drskalman opened this issue Jul 2, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@drskalman
Copy link
Contributor

This was discussed during the retreat. This is my proposal, maybe it can be done simpler, maybe Makeadoc already has something for it but if not this is one way of doing it:

  • The bot should run somewhere (where?) listen on some port for github hook event and needs read and write access to the research repo. (It should be defined as an OAuth or Github app)

    • The bot should be called by the commit comment webhook:
      https://developer.github.com/v3/activity/events/types/#commitcommentevent

    • When the bot receives the POST request from github, it

    • check if its body have word "Major: "

    • pull the research repo.

    • delete the last line from research/doc/news.md.

    • drop "Major: " and add the rest of the commit as the first line.

    • Push to the research repo.

@drskalman drskalman added the enhancement New feature or request label Jul 2, 2019
@fgimenez
Copy link
Contributor

fgimenez commented Jul 2, 2019

Nice thanks for putting this together! :)

Looks very good but I think we don't need to have the bot running, all the described actions can be run as a CI job that runs in parallel with the existent ones on merges to master, WDYT?

@drskalman
Copy link
Contributor Author

You are right, I underestimated the power of the CI script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants