Skip to content

Commit

Permalink
Add 'app' input example into github_fork.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Jan 7, 2022
1 parent 40efe72 commit 0f65cd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/github_forks/bin/github_forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def stream_events(self, inputs, ew):
owner = input_item["owner"]
repo_name = input_item["repo_name"]

# Hint: API auth required?, get a secret from passwords.conf
# self.service.namespace["app"] = input_item["__app"]
# api_token = self.service.storage_passwords["github_api_token"].clear_password

# Get the fork count from the Github API
jsondata = _get_github_repos(owner, repo_name)
fork_count = jsondata["forks_count"]
Expand Down

0 comments on commit 0f65cd7

Please sign in to comment.