[GRASS-git] [OSGeo/grass] 4705cc: g.extension: get branch from version (#1700)

Stefan Blumentrath noreply at github.com
Wed Jul 21 07:33:37 PDT 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 4705cc5b422cbd63abe6c8da0d917ebe957395d5
      https://github.com/OSGeo/grass/commit/4705cc5b422cbd63abe6c8da0d917ebe957395d5
  Author: Stefan Blumentrath <stefan.blumentrath at gmx.de>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M scripts/g.extension/g.extension.py

  Log Message:
  -----------
  g.extension: get branch from version (#1700)

* branch from version

* black

* address review, flake8

* get branch from github API

* handle branch=None

* handle branch=None better

* black/flake8

* cleanup after code review

* update from code review

* try orgs and users

* use repo API

* pass propper API URL

* defaults for get_github_branches, fix l-flag, updates from code review

* abandon github API due to rate limits

* version over default

* use URLError

* use urlparse

* use urlparse

* use get_default_branch for gitlab

* fix keyword issue with urlopen

* global GIT_URL, get_default update




More information about the grass-commit mailing list