You've already forked wakapi-readme-stats
docs and default env file updated
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
INPUT_WAKATIME_API_KEY=YOUR_WAKATIME_API_KEY
|
||||
INPUT_GH_TOKEN=YOUR_GITHUB_TOKEN_KEY
|
||||
INPUT_PUSH_BRANCH_NAME=main
|
||||
INPUT_PULL_BRANCH_NAME=main
|
||||
INPUT_SECTION_NAME=waka
|
||||
INPUT_SHOW_TIMEZONE=True
|
||||
INPUT_SHOW_PROJECTS=True
|
||||
|
||||
@@ -77,9 +77,10 @@ class GitHubManager:
|
||||
@staticmethod
|
||||
def branch(requested_branch: str) -> str:
|
||||
"""
|
||||
Gets name of branch to commit to specified by environmental variables.
|
||||
It is the default branch (regularly, 'main' or 'master') or a branch specified by user.
|
||||
Gets requested branch name or the default branch name if requested branch wasn't found.
|
||||
The default branch name is regularly, 'main' or 'master'.
|
||||
|
||||
:param requested_branch: Requested branch name.
|
||||
:returns: Commit author.
|
||||
"""
|
||||
return GitHubManager.REMOTE.default_branch if requested_branch == "" else requested_branch
|
||||
|
||||
Reference in New Issue
Block a user