techknowlogick / gitea-buildkite-connector Goto Github PK
View Code? Open in Web Editor NEWConnect Gitea & Buildkite
License: MIT License
Connect Gitea & Buildkite
License: MIT License
When buildkite sends a repo link in the https form e.g. https://server.tld/owner/repo.git
The splitting does not work correctly and you end up with
repo_1 = //server.tld/owner/repo.git
repo_2 = ['', '', 'server.tld', 'owner', 'repo.git']
This results in empty owner and and repo_clean vars.
Maybe checking for http
at the start of the string and then apply a different parsing?
if repo.startswith('http'):
repo_1 = repo.split("://")[1]
repo_2 = repo_1.split("/")
owner = repo_2[1]
if repo_2[2].endswith('.git'):
repo_clean = repo_2[2][:-4]
else:
repo_clean = repo_2[2]
else:
repo_1 = repo.split(":")[1]
repo_2 = repo_1.split("/")
owner = repo_2[0]
repo_clean = repo_2[1][:-4]
I'd like to potentially use this, but I can't find any license under which it is allowed to be used.
Would it be possible to add one ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.