Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Umer Farooq <[email protected]>
  • Loading branch information
lablnet committed Feb 7, 2024
1 parent b48d6c8 commit a9b3154
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lambda/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ def lambda_handler(event, context):
for item in response['Items']:
job_id = item['job_id']
prnum = item['prnum']
repo_owner = item['repo_owner']
repo_name = item['repo_name']

print("job_id", job_id)
print("prnum", prnum)
print("repo_owner", repo_owner)
print("repo_name", repo_name)

# Call the API to get the status and data
url = os.environ['API_URL']
Expand Down Expand Up @@ -65,6 +70,7 @@ def lambda_handler(event, context):
)

# Call GitHub webhook api.
# build the url @TODO
url = os.environ['WEBHOOK_API_URL']
GitHub_Token = os.environ['GITHUB_TOKEN']
http = urllib3.PoolManager()
Expand Down

0 comments on commit a9b3154

Please sign in to comment.