mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #12893 from HadrienPatte/auto-update-issue-template-version
Auto update issue template version on new release
This commit is contained in:
commit
0437511931
@ -28,6 +28,7 @@ jellyfin_subprojects=(
|
|||||||
Emby.Naming/Emby.Naming.csproj
|
Emby.Naming/Emby.Naming.csproj
|
||||||
src/Jellyfin.Extensions/Jellyfin.Extensions.csproj
|
src/Jellyfin.Extensions/Jellyfin.Extensions.csproj
|
||||||
)
|
)
|
||||||
|
issue_template_file="./.github/ISSUE_TEMPLATE/issue report.yml"
|
||||||
|
|
||||||
new_version="$1"
|
new_version="$1"
|
||||||
new_version_sed="$( cut -f1 -d'-' <<<"${new_version}" )"
|
new_version_sed="$( cut -f1 -d'-' <<<"${new_version}" )"
|
||||||
@ -56,6 +57,9 @@ for subproject in ${jellyfin_subprojects[@]}; do
|
|||||||
sed -i "s|${old_version}|${new_version_sed}|g" ${subproject}
|
sed -i "s|${old_version}|${new_version_sed}|g" ${subproject}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Set the version in the GitHub issue template file
|
||||||
|
sed -i "s|${old_version}|${new_version_sed}|g" ${issue_template_file}
|
||||||
|
|
||||||
# Stage the changed files for commit
|
# Stage the changed files for commit
|
||||||
git add .
|
git add .
|
||||||
git status -v
|
git status -v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user