Skip to content

Commit 2e81098

Browse files
authored
chore: update github example script
1 parent 49edd5a commit 2e81098

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/run_sync_to_destination_wo_cache.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818

1919

2020
def get_my_source() -> ab.Source:
21+
# Create a token here: https://github.com/settings/tokens
22+
# Then export as env var `GITHUB_PERSONAL_ACCESS_TOKEN`
2123
github_pat = ab.get_secret("GITHUB_PERSONAL_ACCESS_TOKEN")
22-
assert str(github_pat)
24+
assert str(github_pat), "Could not locate Github PAT"
2325
source = ab.get_source(
2426
"source-github",
2527
config={
@@ -28,7 +30,6 @@ def get_my_source() -> ab.Source:
2830
"personal_access_token": github_pat,
2931
},
3032
},
31-
# streams=["issues"],
3233
)
3334
source.check()
3435
source.select_streams(["issues"])

0 commit comments

Comments
 (0)