Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Fix wrong command name
Browse files Browse the repository at this point in the history
  • Loading branch information
masutaka committed Feb 16, 2019
1 parent 6aefefa commit 52f88cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ find_project_id() {

case "$_PROJECT_TYPE" in
org)
_ORG_NAME=$(echo "$_PROJECT_URL" | gsed -e 's@https://github.com/orgs/\([^/]\+\)/projects/[0-9]\+@\1@')
_ORG_NAME=$(echo "$_PROJECT_URL" | sed -e 's@https://github.com/orgs/\([^/]\+\)/projects/[0-9]\+@\1@')
_ENDPOINT="https://api.github.com/orgs/$_ORG_NAME/projects"
;;
user)
_USER_NAME=$(echo "$_PROJECT_URL" | gsed -e 's@https://github.com/users/\([^/]\+\)/projects/[0-9]\+@\1@')
_USER_NAME=$(echo "$_PROJECT_URL" | sed -e 's@https://github.com/users/\([^/]\+\)/projects/[0-9]\+@\1@')
_ENDPOINT="https://api.github.com/users/$_USER_NAME/projects"
;;
repo)
Expand Down

0 comments on commit 52f88cd

Please sign in to comment.