Giter Site home page Giter Site logo

gitea-buildkite-connector's People

Contributors

techknowlogick avatar valkum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

valkum a-dyar

gitea-buildkite-connector's Issues

buildkitehook.py has problems with git https links

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]

license ?

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.