mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 04:31:00 -05:00
Merge pull request 'remove extra token argument from API' (#27) from earl-warren/setup-forgejo:wip-api into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/27 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
commit
f959b290ec
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ function api() {
|
||||||
path=$1
|
path=$1
|
||||||
shift
|
shift
|
||||||
token=$1
|
token=$1
|
||||||
|
shift
|
||||||
|
|
||||||
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
|
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue