We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be656f7 commit abca6f1Copy full SHA for abca6f1
make/repo.mk
@@ -9,8 +9,8 @@ GIT_COMMIT := $(shell git rev-parse "HEAD^{commit}")
9
export GIT_TAG ?= $(shell git describe --tags "$(GIT_COMMIT)^{commit}" --match v* --abbrev=0 2>/dev/null)
10
export GIT_CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
11
12
-export GITHUB_ORG := $(notdir $(realpath $(dir $(REPO_ROOT))))
13
-export GITHUB_REPOSITORY := $(notdir $(REPO_ROOT))
+export GITHUB_ORG := $(shell gh repo view --jq '.owner.login' --json owner)
+export GITHUB_REPOSITORY := $(shell gh repo view --jq '.name' --json name)
14
15
ifneq ($(shell git status --porcelain 2>/dev/null; echo $$?), 0)
16
export GIT_TREE_STATE := dirty
0 commit comments