Skip to content

Commit

Permalink
Merge pull request #32 from gh-conf/ssh-support
Browse files Browse the repository at this point in the history
Ssh support
  • Loading branch information
arshadkazmi42 authored Jul 10, 2022
2 parents 4a22703 + a531a90 commit 3183567
Show file tree
Hide file tree
Showing 8 changed files with 270 additions and 200 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: arshadkazmi42
26 changes: 26 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gh-conf-parse

[![Build](https://img.shields.io/travis/com/gh-conf/gh-conf-parse.svg)](https://travis-ci.com/gh-conf/gh-conf-parse/)
[![Build](https://github.com/gh-conf/gh-conf-parse/actions/workflows/nodejs.yml/badge.svg)](https://github.com/gh-conf/gh-conf-parse/actions/workflows/nodejs.yml)
[![Github Repo Size](https://img.shields.io/github/repo-size/gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse)
[![LICENSE](https://img.shields.io/npm/l/@gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse/LICENSE)
[![NPM Downloads](https://img.shields.io/npm/dt/@gh-conf/gh-conf-parse.svg)](https://www.npmjs.com/package/@gh-conf/gh-conf-parse)
Expand Down
3 changes: 3 additions & 0 deletions lib/user-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const userRepo = (currentPath) => {

// removing .git suffix from github url in config
currRepo = currRepo.replace('.git', '');
if (!currRepo.startsWith('https://')) {
currRepo = currRepo.split(':')[1];
}

const currRepoData = currRepo.split('/');
return {
Expand Down
Loading

0 comments on commit 3183567

Please sign in to comment.