From c3c6700f172931935dde295365bd56bd82166f14 Mon Sep 17 00:00:00 2001 From: natct Date: Tue, 29 Oct 2024 18:04:22 +0100 Subject: [PATCH 1/2] feat: add `.editorconfig` --- .editorconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..669640d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +tab_width = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true From 72f5daf6a79b9f2a63eb572dab43469646011f6c Mon Sep 17 00:00:00 2001 From: natct Date: Tue, 29 Oct 2024 17:44:34 +0100 Subject: [PATCH 2/2] feat: cleaunp script --- forgejo-release.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/forgejo-release.sh b/forgejo-release.sh index be7de5a..70c57cf 100755 --- a/forgejo-release.sh +++ b/forgejo-release.sh @@ -43,9 +43,12 @@ ensure_tag() { upload_release() { local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /') - local releasetype - ( $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ) && export releasetype="--prerelease" && echo "Uploading as Pre-Release" - test ${releasetype+false} || echo "Uploading as Stable" + if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ; then + releasetype="--prerelease" + echo "Uploading as Pre-Release" + else + echo "Uploading as Stable" + fi ensure_tag anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g') if ! $BIN_DIR/tea release create $assets --repo $REPO --note "$RELEASENOTES" --tag $TAG --title "$TITLE" --draft ${releasetype} >& $TMP_DIR/tea.log ; then