From df78c10d4ac955be561075d623fc1cd7ebffdbfe Mon Sep 17 00:00:00 2001 From: TheKoenig <74304748+TheKoenig@users.noreply.github.com> Date: Sun, 17 Oct 2021 19:04:29 +0200 Subject: [PATCH 1/2] fix: remote URL for GitHub server (#72) The hard coded part `github.com` in the GIT remote URL does not work on GitHub enterprise instances. Please use instead the build in variable `GITHUB_SERVER_URL` and remove the `https://` prefix. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ce2dd73..e29be31 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,7 +20,7 @@ fi DESTINATION_BRANCH="${INPUT_DESTINATION_BRANCH:-"master"}" # Github actions no longer auto set the username and GITHUB_TOKEN -git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY" +git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@${GITHUB_SERVER_URL#https://}/$GITHUB_REPOSITORY" # Pull all branches references down locally so subsequent commands can see them git fetch origin '+refs/heads/*:refs/heads/*' --update-head-ok From 5ba2c80b97c87b9174c1548141b7acd80f6376e1 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 17 Oct 2021 13:07:12 -0400 Subject: [PATCH 2/2] docs: add TheKoenig as a contributor for code (#73) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 5f7200c..82af232 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -128,6 +128,15 @@ "contributions": [ "code" ] + }, + { + "login": "TheKoenig", + "name": "TheKoenig", + "avatar_url": "https://avatars.githubusercontent.com/u/74304748?v=4", + "profile": "https://github.com/TheKoenig", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index e52fd55..8e12410 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # GitHub Pull Request -[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-) A GitHub Action for creating pull requests. @@ -123,6 +123,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
Atsushi Watanabe

🐛 💻
Christopher Keele

💻
Rachael Sewell

💻 +
TheKoenig

💻