Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Fix 'branch' in zipdl Lambda code #48

Open
robwhelan opened this issue Oct 23, 2019 · 0 comments
Open

Fix 'branch' in zipdl Lambda code #48

robwhelan opened this issue Oct 23, 2019 · 0 comments

Comments

@robwhelan
Copy link

In the zipdl lambda source code, the branch is incorrectly set to a variable named branch_name which is different from other sources.

That means the archive_url is incorrectly constructed for github.

It should read as follows:

branch = event['body-json']['ref'].replace('refs/heads/', '')
archive_url = archive_url.replace('{archive_format}', 'zipball').replace('{/ref}', '/' + branch)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant