generated from admin/template
This commit is contained in:
@@ -106,8 +106,16 @@ jobs:
|
|||||||
line_number=$(echo "$location" | cut -d: -f2)
|
line_number=$(echo "$location" | cut -d: -f2)
|
||||||
column_number=$(echo "$location" | cut -d: -f3)
|
column_number=$(echo "$location" | cut -d: -f3)
|
||||||
|
|
||||||
# Убираем префикс workspace/owner/repo/ если он есть
|
# Убираем любые префиксы до корня репозитория
|
||||||
file_clean=$(echo "$file" | sed -E 's|^workspace/[^/]+/[^/]+/||')
|
# Обрабатываем варианты:
|
||||||
|
# /workspace/owner/repo/path
|
||||||
|
# workspace/owner/repo/path
|
||||||
|
# /path
|
||||||
|
# path
|
||||||
|
file_clean=$(echo "$file" | sed -E 's|^(/)?workspace/[^/]+/[^/]+/||')
|
||||||
|
|
||||||
|
# Если всё ещё начинается со слэша, убираем его
|
||||||
|
file_clean=$(echo "$file_clean" | sed 's|^/||')
|
||||||
|
|
||||||
repo_url="${{ gitea.server_url }}/${{ gitea.repository }}"
|
repo_url="${{ gitea.server_url }}/${{ gitea.repository }}"
|
||||||
sha="${{ gitea.sha }}"
|
sha="${{ gitea.sha }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user