Giter Site home page Giter Site logo

auxilia's People

Contributors

baranowb avatar gaol avatar istudens avatar rpelisse avatar soul2zimate avatar spyrkob avatar wolfc avatar xstefank avatar

Stargazers

 avatar  avatar  avatar

Watchers

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

auxilia's Issues

pr-merge failed to get OWNER and REPO in case of https git repository

Environment

  • Bash

Context

I am using pr-merge script to review PR in my local branch:

[๐ŸŽฉ lgao@lgao vertx-mail-client]$ git status
On branch review_pr_122
nothing to commit, working tree clean
[๐ŸŽฉ lgao@lgao vertx-mail-client]$ git remote -v
fork	[email protected]:gaol/vertx-mail-client.git (fetch)
fork	[email protected]:gaol/vertx-mail-client.git (push)
origin	https://github.com/vert-x3/vertx-mail-client (fetch)
origin	https://github.com/vert-x3/vertx-mail-client (push)
[๐ŸŽฉ lgao@lgao vertx-mail-client]$ /sources/jboss-set/auxilia/pr-merge origin 122
Merging 122 from origin onto review_pr_122
Retrieving PR information from https://api.github.com/repos///pulls/122...Done.
Git commit message will be: Merge pull request #122 from null null
Continue...

Both OWNER and REPO are null in case that the FETCH_URL starts with https

Failed to get PR metadata in case of relocated git repository

Some github repositories are relocated to another organization, which will lead to the getting PR metadata failure:

[๐ŸŽฉ lgao@lgao vertx]$ git status
On branch pulls/3228
nothing to commit, working tree clean
[๐ŸŽฉ lgao@lgao vertx]$ git remote -v
origin	https://github.com/eclipse/vert.x (fetch)
origin	https://github.com/eclipse/vert.x (push)
[๐ŸŽฉ lgao@lgao vertx]$ bash -x /sources/jboss-set/auxilia/pr-merge origin 3228
+ sanity_check
+ isJqInstalled
+ local jq_url=https://stedolan.github.io/jq
+ which jq
+ '[' 0 '!=' 0 ']'
+ isNetrcPresent
+ local netrc_file=/home/lgao/.netrc
+ '[' '!' -e /home/lgao/.netrc -o '!' -r /home/lgao/.netrc ']'
+ set -eo pipefail
+ '[' 2 '!=' 2 ']'
++ git rev-parse --abbrev-ref HEAD
+ readonly BRANCH=pulls/3228
+ BRANCH=pulls/3228
+ readonly REMOTE=origin
+ REMOTE=origin
+ readonly PR_ID=3228
+ PR_ID=3228
+ '[' -z origin ']'
+ '[' -z 3228 ']'
+ echo 'Merging 3228 from origin onto pulls/3228'
Merging 3228 from origin onto pulls/3228
++ git remote -v
++ grep '^origin[ ]*'
++ grep fetch
++ cut -f2
++ cut '-d ' -f1
+ readonly FETCH_URL=https://github.com/eclipse/vert.x
+ FETCH_URL=https://github.com/eclipse/vert.x
+ '[' -z https://github.com/eclipse/vert.x ']'
++ echo https://github.com/eclipse/vert.x
++ sed 's/\//:/g'
+ readonly URL_PARSE=https:::github.com:eclipse:vert.x
+ URL_PARSE=https:::github.com:eclipse:vert.x
+ readonly REPO_PART=vert.x
+ REPO_PART=vert.x
++ echo vert.x
++ sed s/.git//
+ readonly REPO=vert.x
+ REPO=vert.x
++ echo https:::github.com:eclipse:vert.x
++ sed s/:vert.x//
+ readonly URL_LEFT=https:::github.com:eclipse
+ URL_LEFT=https:::github.com:eclipse
+ readonly OWNER=eclipse
+ OWNER=eclipse
+ '[' -z eclipse -o -z vert.x ']'
+ readonly PR_GITHUB_API_URL=https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ PR_GITHUB_API_URL=https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ set -e
+ echo -n 'Retrieving PR information from https://api.github.com/repos/eclipse/vert.x/pulls/3228...'
Retrieving PR information from https://api.github.com/repos/eclipse/vert.x/pulls/3228...++ curl -s -n https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ readonly 'PULL={
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/1911523/pulls/3228",
  "documentation_url": "https://developer.github.com/v3/#http-redirects"
}'
+ PULL='{
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/1911523/pulls/3228",
  "documentation_url": "https://developer.github.com/v3/#http-redirects"
}'
++ grep 'Not Found'
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
+ '[' 0 -ne 0 -o '' '!=' '' ']'
+ echo Done.
Done.
+ set +e
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
++ jq -r .head.label
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
++ jq -r .title
+ readonly 'MSG=Merge pull request #3228 from null null'
+ MSG='Merge pull request #3228 from null null'
+ echo 'Git commit message will be: Merge pull request #3228 from null null'
Git commit message will be: Merge pull request #3228 from null null
+ echo -n Continue...
Continue...+ read _

Certificate for JDK

Create script that will automate cert generation and update of JDK store.

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.