Snippets

Tim Pettersen Download commit as ZIP Bitbucket add-on

Created by Tim Pettersen last modified

This Bitbucket add-on adds a Download as ZIP link to each commit in your repository.

screenshot of link

To install the add-on, click the URL below and follow the prompts:

https://bitbucket.org/site/addons/authorize?descriptor_uri=https://bitbucket.org/!api/2.0/snippets/tpettersen/78Ajj/master/files/connect.json&redirect_uri=https://bitbucket.org/snippets/tpettersen/78Ajj

You will be redirected back to this page after installation.

Then browse to any commit on any Bitbucket repository and click the Download as ZIP link! (You should see a link on this commit, for example: https://bitbucket.org/tpettersen/run-bucket-run/commits/HEAD)

Note that this is a "personal" add-on, so the link will only be visible to the user (or team) that installed the add-on.

{
    "key": "download-commit-as-zip",
    "name": "Download commit as ZIP",
    "description": "Adds a \"Download as ZIP\" link to the commits page on Bitbucket",
    "baseUrl": "https://bitbucket.org",
    "modules": {
        "webItems": [{
            "key": "download-link",
            "url": "https://bitbucket.org/{repo_path}/get/{commit_hash}.zip",
            "name": {
                "value": "Download as ZIP"
            },
            "location": "org.bitbucket.commit.summary.actions",
            "params": {
                "auiIcon": "aui-iconfont-down"
            }
        }],
        "oauthConsumer": {
            "clientId": "WaLh6mhKdRUDpVcXAH"
        }
    },
    "scopes": ["team"],
    "contexts": ["personal"]
}

Comments (4)

  1. Zafer özkel

    O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O. O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O. O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O .O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O. O.O.O.O.O.O.O.O.O rssfeeds.usatoday.com/~/t/0/0/mmajunkie/~https:/bestagario.org/www.researchgate.net/deref/http://bestagario.orghobby.idnes.cz/peruanske-palive-papricky-rocoto-dlz-/redir.aspx?url=http%3A%2F%2Fbestagario.orgoptimize.viglink.com/page/pmv?url=https://bestagario.orgtrello.com/add-card?source=mode=popup&name=click%2Bhere&desc=http%3A%2F%2Fbestagario.orgsound2sense.archiveweb.mus.cam.ac.uk/?URL=bestagario.orgfeeds.businessinsider.com.au/~/t/0/0/businessinsideraustralia/~https:/bestagario.org/www.astro.wisc.edu/?URL=https%3A%2F%2Fbestagario.orgimages.google.com/url?sa=t&url=https%3A%2F%2Fbestagario.orgm.odnoklassniki.ru/dk?st.cmd=outLinkWarning&st.rfn=https%3A%2F%2Fbestagario.org%2Fwww.jobzone.ny.gov/views/jobzone/leaving_site.jsf?id=304&url=https%3A%2F%2Fbestagario.orgtvtropes.org/pmwiki/no_outbounds.php?o=https%3A%2F%2Fbestagario.org%2Frssfeeds.freep.com/~/t/0/_/freep/home/~/https:/bestagario.org/community.acer.com/en/home/leaving/bestagario.orgredirects.tradedoubler.com/utm/td_redirect.php?td_keep_old_utm_value=1&tduid=991a03343b6089cca9cbe799f011b89c&url=https%3A%2F%2Fbestagario.orgfcaw.library.umass.edu/goto/https:/bestagario.org/guru.sanook.com/?URL=https%3A%2F%2Fbestagario.org%2Fblog.ss-blog.jp/_pages/mobile/step/index?u=https://bestagario.orgold.post-gazette.com/pets/redir.asp?url=https%3A%2F%2Fbestagario.org%2Faccounts.cancer.org/login?redirectURL=https://bestagario.orgwww.fhwa.dot.gov/reauthorization/reauexit.cfm?link=https%3A%2F%2Fbestagario.orgsitereport.netcraft.com/?URL=https%3A%2F%2Fbestagario.org%2Fgo.onelink.me/v1xd?pid=Patch&c=Mobile%20Footer&af_web_dp=https%3A%2F%2Fbestagario.org%2Fprofiles.newsmax.com/sso/signup.aspx?ReturnURL=https%3A%2F%2Fbestagario.org%2Fdomain.opendns.com/bestagario.orgapp.feedblitz.com/f/f.fbz?track=https%3A%2F%2Fbestagario.orgjump.5ch.net/?bestagario.orgdol.deliver.ifeng.com/c?z=ifeng&la=0&si=2&cg=1&c=1&ci=2&or=7549&l=28704&bg=28703&b=37275&u=https%3A%2F%2Fbestagario.orgfeeds.gizmodo.com.au/~/t/0/0/gizmodoaustralia/~/https:/bestagario.org/www.etis.ford.com/externalURL.do?url=https%3A%2F%2Fbestagario.org%2Fid.telstra.com.au/register/crowdsupport?gotoURL=https%3A%2F%2Fbestagario.org%2Ffeeds.hanselman.com/~/t/0/0/scotthanselman/~https:/bestagario.org/bbs.pku.edu.cn/v2/jump-to.php?url=https%3A%2F%2Fbestagario.org%2Fdaemon.indapass.hu/http/session_request?redirect_to=https%3A%2F%2Fbestagario.org&partner_id=bloghuuk.advfn.com/ct.php?ct=OTk1OTg=&redir=https%3A%2F%2Fbestagario.org%2Fimages-fames.b-cdn.net/spai/w_1920+q_lossy+ret_img/https:/bestagario.org/rssfeeds.wfaa.com/~/t/0/0/wfaa/local/~https:/bestagario.org/rssfeeds.khou.com/~/t/0/0/khou/sports/~https:/bestagario.org/extras.seattlepi.com/redirect.php?url=https%3A%2F%2Fbestagario.org%2Fmember.yam.com/EDM_CLICK.aspx?EDMID=7948&EMAIL=qqbuyme.cosmo925@blogger.com&CID=103443&EDMURL=https%3A%2F%2Fbestagario.org%2Fgleam.io/zyxKd-INoWr2EMzH?l=http%3A%2F%2Fbestagario.orgwww.justjaredjr.com/flagcomment.php?cl=10842755&el=https%3A%2F%2Fbestagario.orgwww.edaily.co.kr/_template/popup/t_popup_click.asp?Mrseq=830&MrT=https%3A%2F%2Fbestagario.org%2Fssl.cosme.net/cosme/asp/buy/buy0002.asp?rurl=https%3A%2F%2Fbestagario.org%2Fwww.google.tn/url?sa=t&url=https%3A%2F%2Fbestagario.orgrssfeeds.wkyc.com/~/t/0/0/wkyc/news/~https:/bestagario.org/www2.ogs.state.ny.us/help/urlstatusgo.html?url=https://bestagario.orgfeeds.kotaku.com.au/~/t/0/0/kotakuaustralia/~/https:/bestagario.org/aquaculture.seagrant.uaf.edu/click-thru.html?id=151&url=https%3A%2F%2Fbestagario.org%2Fscanmail.trustwave.com/?c=8510&d=4qa02KqxZJadHuhFUvy7ZCUfI_2L10yeH0EeBz7FGQ&u=https%3A%2F%2Fbestagario.orgrssfeeds.13newsnow.com/~/t/0/0/wvec/local/~https:/bestagario.org/scribd.page.link/?amv=9.1.0&apn=com.scribd.app.reader0&ibi=com.scribd.iscribd&imv=9.1.1&isi=542557212&link=https%3A%2F%2Fbestagario.org%2Fforums.thesims.com/en_uS/home/leaving/bestagario.orgposts.google.com/url?sa=t&url=https%3A%2F%2Fbestagario.org%2Fxat.com/web_gear/chat/linkvalidator.php?link=https%3A%2F%2Fbestagario.orgadvisor.wmtransfer.com/SiteDetails.aspx?url=bestagario.orgwww.nordbayern.de/logoutservlet?logout_referer=https%3A%2F%2Fbestagario.org%2Fwww.bad.org.uk/for-the-public/patient-information-leaflets/androgenetic-alopecia/?showmore=1&returnlink=https%3A%2F%2Fbestagario.org%2Frssfeeds.kens5.com/~/t/0/0/business/~https:/bestagario.org/%2Fwww.winnipegfreepress.com/s?action=doLogout&rurl=http%3A%2F%2Fbestagario.orgfjb.kaskus.co.id/redirect?url=https%3A%2F%2Fbestagario.org%2Fpantip.com/l/https:%E0%B8%AF%E0%B9%91%E0%B8%AF%E0%B8%AF%E0%B9%91%E0%B8%AFbestagario.org%2F/3918rssfeeds.wbir.com/~/t/0/0/wbir/local_news/~https:/bestagario.org/innuityweb.myregisteredsite.com/admin/membership_agreement.php?partnerID=3185&domain=bestagario.orgfeeds.lifehacker.com.au/~/t/0/0/lifehackeraustralia/~/https:/bestagario.org/www.london.umb.edu/?URL=https%3A%2F%2Fbestagario.org%2Fwww.fito.nnov.ru/go.php?url=https%3A%2F%2Fbestagario.orgwww.vreddiehgdl.cucsh.udg.mx/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https%3A%2F%2Fbestagario.org%2F&nid=126passport-us.bignox.com/sso/logout?service=https%3A%2F%2Fbestagario.org%2Fwww.talgov.com/Main/exit.aspx?url=https%3A%2F%2Fbestagario.orgf5.glitch.me/proxy/https%3A%2F%2Fbestagario.org%2Fsc.hkexnews.hk/TuniS/bestagario.org/www.curseforge.com/linkout?remoteUrl=https%3A%2F%2Fbestagario.org%2Fclient.paltalk.com/client/webapp/client/External.wmt?url=http%3A%2F%2Fbestagario.orgtools.folha.com.br/print?url=https%3A%2F%2Fbestagario.orges.catholic.net/ligas/ligasframe.phtml?liga=https%3A%2F%2Fbestagario.org%2Fwww.interempresas.net/estadisticas/r.asp?idsector=129&e=221083&c=195&d=https%3A%2F%2Fbestagario.org%2Fsinp.msu.ru/ru/ext_link?url=https%3A%2F%2Fbestagario.org%2Frssfeeds.mycentraljersey.com/~/t/0/0/bridgewater/home/~https:/bestagario.org/sherlock.scribblelive.com/r?u=bestagario.orggeomorphology.irpi.cnr.it/map-services/android-guide/@@reset-optout?came_from=https%3A%2F%2Fbestagario.org%2Fceskapozice.lidovky.cz/redir.aspx?url=http%3A%2F%2Fbestagario.orgtrack.effiliation.com/servlet/effi.redir?id_compteur=22157233&effi_id=leparfroid244&url=https%3A%2F%2Fbestagario.org%2Fwww.spiritfanfiction.com/link?l=https%3A%2F%2Fbestagario.orgfeeds.osce.org/~/t/0/0/oscelatestnews/~https:/bestagario.org/%2Fwww.omnigroup.com/omnifocus/?URL=bestagario.orgreelgood.com/https:/bestagario.org/www.triathlon.org/?URL=bestagario.org/stmassey.f2s.com/?URL=https%3A%2F%2Fbestagario.org%2Fmisc.symbaloo.com/redirect.php?network=tradetracker&campaignID=480&url=https%3A%2F%2Fbestagario.org%2Frd.alice.it/r3/redir.asp?URL=https%3A%2F%2Fbestagario.org%2Farctic.nyheter24.se/rdb/nyheter24_eed6ad4b451f2fb8193922f832bc91ed/5?url=https%3A%2F%2Fbestagario.org%2Fams.ceu.edu/optimal/optimal.php?url=https%3A%2F%2Fbestagario.org%2Fwww.meetme.com/apps/redirect/?url=bestagario.org/clients1.google.tk/url?q=https%3A%2F%2Fbestagario.orgwww.aaronsw.com/2002/display.cgi?t=%3Ca+href=https%3A%2F%2Fbestagario.orgwww.kichink.com/home/issafari?uri=https%3A%2F%2Fbestagario.org%2Flaw.spbu.ru/aboutfaculty/teachers/teacherdetails/a7fb1dbb-e9f3-4fe9-91e9-d77a53b8312c.aspx?returnurl=https%3A%2F%2Fbestagario.orgenseignants.flammarion.com/Banners_Click.cfm?ID=86&URL=bestagario.org/odmp.org/link?url=https%3A%2F%2Fbestagario.org%2Fwww.swrve.com/?URL=bestagario.orgsc.hkex.com.hk/TuniS/bestagario.org/redir.speedbit.com/redir.asp?id=8030&urldirect=https%3A%2F%2Fbestagario.orgmitsui-shopping-park.com/lalaport/iwata/redirect.html?url=https%3A%2F%2Fbestagario.org%2Fmarketplace.salisburypost.com/AdHunter/salisburypost/Home/EmailFriend?url=https%3A%2F%2Fbestagario.org%2Fwww.popcouncil.org/scripts/leaving.asp?URL=http%3A%2F%2Fbestagario.orgnou-rau.uem.br/nou-rau/zeus/auth.php?back=https%3A%2F%2Fbestagario.org%2F&go=x&code=x&unit=xredirect.camfrog.com/redirect/?url=https%3A%2F%2Fbestagario.org%2Fdavidbyrne.com/?URL=bestagario.orgfeeds.ligonier.org/~/t/0/0/ligonierministriesblog/~/https:/bestagario.org/feeds.gty.org/~/t/0/0/gtyblog/~/https:/bestagario.org/foro.infojardin.com/proxy.php?link=https%3A%2F%2Fbestagario.orgwww.ppa.com/?URL=bestagario.orgimaginingourselves.globalfundforwomen.org/pb/External.aspx?url=https%3A%2F%2Fbestagario.org%2Fshorefire.com/?URL=bestagario.orgtimberlinelodge.com/?URL=bestagario.orgwww.earth-policy.org/?URL=bestagario.org/chtbl.com/track/118167/bestagario.org/wfc2.wiredforchange.com/dia/track.jsp?v=2&c=hdorrh%2BHcDlQ%2BzUEnZU5qlfKZ1Cl53X6&url=https%3A%2F%2Fbestagario.orgwww.cheapassgamer.com/redirect.php?url=https%3A%2F%2Fbestagario.orgregister.scotland.org/Subscribe/WidgetSignup?url=http%3A%2F%2Fbestagario.orginterpals.net/url_redirect.php?href=https%3A%2F%2Fbestagario.org%2Fmyemma.com/?URL=bestagario.orgintellectualventures.com/?URL=bestagario.orgfooyoh.com/wcn.php?url=https%3A%2F%2Fbestagario.org%2Flinabanner.jobstreet.com/redirect.asp?bid=23996&track=0&uid=&url=https%3A%2F%2Fbestagario.org%2Fwww.usich.gov/?URL=bestagario.orgwww.sunvalley.com/?URL=bestagario.orgipb.ac.id/lang/s/ID?url=https%3A%2F%2Fbestagario.org%2Fmoshtix.com.au/v2/ForceDesktopView?callingURL=https%3A%2F%2Fbestagario.org%2Ftapestry.tapad.com/tapestry/1?ta_partner_id=950&ta_redirect=https%3A%2F%2Fbestagario.org%2Fwww.chuys.com/?URL=bestagario.organalytics.bluekai.com/site/16231?phint=event=click&phint=campaign=BRAND-TAB&phint=platform=search&done=bestagario.orgshop.wki.it/shared/sso/sso.aspx?sso=G7OBN320AS3T48U0ANSN3KMN22&url=https%3A%2F%2Fbestagario.org%2Fwww.kunstsammlung.de/?URL=bestagario.orgwww.malcolmturnbull.com.au/?URL=bestagario.orgsc.sie.gov.hk/TuniS/bestagario.org/ref.webhostinghub.com/scripts/click.php?ref_id=nichol54&desturl=https%3A%2F%2Fbestagario.org%2Fthewomens.org.au/?URL=bestagario.orgwww.hockney.com/?URL=bestagario.orgwww.ch7.com/?URL=bestagario.orgwww.asma.org/impakredirect.aspx?url=bestagario.org/www.venez.fr/error.fr.html?id=1&uri=https%3A%2F%2Fbestagario.org%2Fwww.octranspo.com/en/about-us/confederation-line-1-website?URL=bestagario.orglogin.mephi.ru/login?allow_anonymous=true&service=https%3A%2F%2Fbestagario.org%2Fww4.cef.es/trk/r.emt?h=bestagario.org/cientec.or.cr/ligas-externas/redir.phtml?link=bestagario.org/fr.grepolis.com/start/redirect?url=https%3A%2F%2Fbestagario.org%2Farchives.midweek.com/?URL=https%253A%252F%252Fbestagario.org/www.ahewar.org/links/dform.asp?url=https%3A%2F%2Fbestagario.org%2Flogin.aup.edu/cas/login?service=https%3A%2F%2Fbestagario.org%2F/&gateway=truewww.sitesimilar.net/bestagario.orgyumi.rgr.jp/puku-board/kboard.cgi?mode=res_html&owner=proscar&url=bestagario.org/intranet.canadabusiness.ca/?URL=bestagario.org/sc.devb.gov.hk/TuniS/bestagario.org/anonym.to/?http%3A%2F%2Fbestagario.org/www.ait.ie/?URL=bestagario.orgnews.url.google.com/url?q=https%3A%2F%2Fbestagario.orgm.ok.ru/dk?st.cmd=outLinkWarning&st.rfn=https%3A%2F%2Fbestagario.org%2F  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P  P P P P P P P  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P  P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.