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

Add a github notification feature #19

Merged
merged 10 commits into from
Apr 6, 2022
Merged

Conversation

scarlehoff
Copy link
Owner

Watching a repository with github is actually less than perfect. You can also not set office hours or filter exactly what notifications you do want.

With this component one can do for instance

pybliotecario --check_github_issues scarlehoff/pybliotecario

And you will get a message (in markdown) with the new issues and PR that have been created in the selected time frame (see below). The message will be formatted with the # number of the issue/PR, the title and a link to the issue/PR in github.

To select the time-frame you have to modify the pybliotecario.ini file.

[GITHUB]
token=<your github token>
since_hours=2

So you get only the issues that have appeared in the last 2 hours. Now you can set a "working hours cron job":

9 10,12,14,16,18,20 * * mon-fri /usr/local/bin/pybliotecario --check_github_issues scarlehoff/pybliotecario

TODO:

  • Documentation on how to get the token

@scarlehoff scarlehoff merged commit cf2518c into master Apr 6, 2022
@scarlehoff scarlehoff deleted the add_github_component branch April 6, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant