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

Feat: implement wakapi compatibility #256

Closed
wants to merge 2 commits into from

Conversation

MeerBiene
Copy link

@MeerBiene MeerBiene commented Jan 15, 2022

fixes #220

@@ -29,6 +29,7 @@
listReg = f"{START_COMMENT}[\\s\\S]+{END_COMMENT}"

waka_key = os.getenv('INPUT_WAKATIME_API_KEY')
waka_url = os.getenv('INPUT_WAKATIME_URL', "https://wakatime.com")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as you can see, for now the environmental variables defaults are defined in action.yml. I understand your will to add defaults here (I hope to do it one day as well), but for now I guess it would be much cooler to put it into action.yml.

@@ -239,6 +239,8 @@ CSS 2 repos █░░░░░░░░░░░░░░░░

`IGNORED_REPOS` flag can be set to `"waka-readme-stats, my-first-repo"` (just an example) to ignore some repos you don’t want to be counted

`WAKATIME_API_URL` flag can be set if you are hosting your own wakatime compliant backend like [wakapi](https://github.com/muety/wakapi). You only have to supply your base url like so `https://wakapi.dev`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should shouw that this is an example link, changing it to something like https://your-own-wakapi.dev? Don't you think so?

@@ -98,7 +99,6 @@
get_profile_traffic = Template("""/repos/$owner/$repo/traffic/popular/referrers""")
truthy = ['true', '1', 't', 'y', 'yes']


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this change is vital. Also it breaks pep.

@pseusys
Copy link
Collaborator

pseusys commented Mar 1, 2023

Closing the PR as it appears to be stale

@pseusys pseusys closed this Mar 1, 2023
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.

FEAT: Support Wakapi
2 participants