-
-
Notifications
You must be signed in to change notification settings - Fork 723
feat(github): format-offline label #910
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
Conversation
A new offline label feature for github module. If the request toward github is not successfull, now it is possible to change the displayed value via format-offline which works as the same way as format. Signed-off-by: kokan <peter.kokai@balabit.com>
|
Looks good. Will do some testing in the next few days, but I think this is ready to merge |
|
I am using it since and I had no issue with it (This patch also applied: #911). |
|
Sorry, I didn't have time yet. I'll try to get to it soon |
patrick96
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a segmentation fault at line 103, whenever format-offline is either not specified or does not contain <label-offline>
|
Thanks for the feedback, I'll try to debug it later this week. |
|
Hey @Kokan do you still plan on working on this? If not, we can add it to our own backlog and fix the last issue ourselves, I don't think it would be too bad. |
|
I do not think I am going to fix it soon, as I am not using currently polybar. |
|
Alright. We'll try to finish this when we get time for it. |
|
@patrick96 I tried to debug this and cannot reproduce the segfault anymore after rebasing onto current master. If I for one think this is sane behaviour and in working condition after a rebase. |
|
Hey @kronn, I just did a rebase and recompiled and am still getting the segfault. Here is the config I used: [bar/example]
modules-left = gh
[module/gh]
type = internal/github
token = EDIT: The behavior you described is indeed sane were it not for the segfault ;) |
A new offline label feature for github module.
If the request toward github is not successfull,
now it is possible to change the displayed value via
format-offline which works as the same way as format.