Skip to content

Conversation

@satazor
Copy link
Contributor

@satazor satazor commented Jun 11, 2022

This pull-request adds support for git remotes using https. Inside github actions remote urls are all https:// by default.

const [, repo, owner] = 'https://github.com/uphold/github-changelog-generator'.match(/github\.com[:/]([^/]+)\/(.+?)(?:\.git)?$/);

console.log(repo, '|', owner);
// uphold | github-changelog-generator
const [, repo, owner] = 'git@github.com:uphold/github-changelog-generator.git'.match(/github\.com[:/]([^/]+)\/(.+?)(?:\.git)?$/);

console.log(repo, '|', owner);
// uphold | github-changelog-generator

@satazor satazor force-pushed the bugfix/support-http-remote branch 2 times, most recently from 9c99394 to a2ba15f Compare June 11, 2022 14:51
@satazor satazor force-pushed the bugfix/support-http-remote branch from a2ba15f to 3c0d0cd Compare June 12, 2022 10:24
@satazor satazor force-pushed the bugfix/support-http-remote branch from 3c0d0cd to 7ca0c7f Compare June 12, 2022 10:29
@diogotorres97 diogotorres97 merged commit 4c7ee5e into master Jun 12, 2022
@diogotorres97 diogotorres97 deleted the bugfix/support-http-remote branch June 12, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants