Skip to content

Commit 0ee0295

Browse files
committed
Add 'app' input example into github_fork.py
1 parent 8c0155d commit 0ee0295

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/github_forks/github_forks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ def stream_events(self, inputs, ew):
124124
owner = input_item["owner"]
125125
repo_name = input_item["repo_name"]
126126

127+
# Hint: API auth required?, get a secret from passwords.conf
128+
# self.service.namespace["app"] = input_item["__app"]
129+
# api_token = self.service.storage_passwords["github_api_token"].clear_password
130+
127131
# Get the fork count from the Github API
128132
repo_url = "https://api.github.com/repos/%s/%s" % (owner, repo_name)
129133
response = urllib2.urlopen(repo_url).read()

0 commit comments

Comments
 (0)