mirror of
https://github.com/CodelyTV/pr-size-labeler.git
synced 2025-02-20 12:02:49 -05:00
Co-authored-by: dom <dominik.meyer01@sap.com> Co-authored-by: Javier Ferrer <javier.mailserio@gmail.com>
24 lines
425 B
Bash
Executable file
24 lines
425 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
PR_SIZE_LABELER_HOME="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
PR_SIZE_LABELER_API="api.github.com"
|
|
|
|
if [ "$PR_SIZE_LABELER_HOME" == "/" ]; then
|
|
PR_SIZE_LABELER_HOME=""
|
|
fi
|
|
|
|
if [ ! -z "$8" ]; then
|
|
PR_SIZE_LABELER_API=$8
|
|
fi
|
|
|
|
export PR_SIZE_LABELER_HOME
|
|
export PR_SIZE_LABELER_API
|
|
|
|
bash --version
|
|
|
|
source "$PR_SIZE_LABELER_HOME/src/main.sh"
|
|
|
|
main "$@"
|
|
|
|
exit $?
|