mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-05 15:52:47 +02:00
Organization renaming: replace all https://github.com/vector-im
by https://github.com/element-hq
This commit is contained in:
@@ -36,7 +36,7 @@ if (requiresChangelog) {
|
||||
const changelogFiles = editedFiles.filter(file => file.startsWith("changelog.d/"))
|
||||
|
||||
if (changelogFiles.length == 0) {
|
||||
warn("Please add a changelog. See instructions [here](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog)")
|
||||
warn("Please add a changelog. See instructions [here](https://github.com/element-hq/element-android/blob/develop/CONTRIBUTING.md#changelog)")
|
||||
} else {
|
||||
const validTowncrierExtensions = [
|
||||
"bugfix",
|
||||
@@ -47,7 +47,7 @@ if (requiresChangelog) {
|
||||
"wip",
|
||||
]
|
||||
if (!changelogFiles.every(file => validTowncrierExtensions.includes(file.split(".").pop()))) {
|
||||
fail("Invalid extension for changelog. See instructions [here](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog)")
|
||||
fail("Invalid extension for changelog. See instructions [here](https://github.com/element-hq/element-android/blob/develop/CONTRIBUTING.md#changelog)")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,6 +125,6 @@ if (github.requested_reviewers.users.length == 0 && !pr.draft) {
|
||||
// Check that translations have not been modified by developers
|
||||
if (user != "RiotTranslateBot") {
|
||||
if (editedFiles.some(file => file.endsWith("strings.xml") && !file.endsWith("values/strings.xml"))) {
|
||||
fail("Some translation files have been edited. Only user `RiotTranslateBot` (i.e. translations coming from Weblate) is allowed to do that.\nPlease read more about translations management [in the doc](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#internationalisation).")
|
||||
fail("Some translation files have been edited. Only user `RiotTranslateBot` (i.e. translations coming from Weblate) is allowed to do that.\nPlease read more about translations management [in the doc](https://github.com/element-hq/element-android/blob/develop/CONTRIBUTING.md#internationalisation).")
|
||||
}
|
||||
}
|
||||
|
@@ -27,12 +27,12 @@ echo "Will install the application on device ${serialNumber} with arch ${arch}"
|
||||
|
||||
# Artifact URL
|
||||
echo
|
||||
read -p "Artifact url (ex: https://github.com/vector-im/element-android/suites/9293388174/artifacts/435942121)? " artifactUrl
|
||||
read -p "Artifact url (ex: https://github.com/element-hq/element-android/suites/9293388174/artifacts/435942121)? " artifactUrl
|
||||
|
||||
## Example of default value for Gplay
|
||||
#artifactUrl=${artifactUrl:-https://github.com/vector-im/element-android/suites/9293388174/artifacts/435942121}
|
||||
#artifactUrl=${artifactUrl:-https://github.com/element-hq/element-android/suites/9293388174/artifacts/435942121}
|
||||
## Example of default value for FDroid
|
||||
# artifactUrl=${artifactUrl:-https://github.com/vector-im/element-android/suites/9293388174/artifacts/435942119}
|
||||
# artifactUrl=${artifactUrl:-https://github.com/element-hq/element-android/suites/9293388174/artifacts/435942119}
|
||||
|
||||
artifactId=$(echo ${artifactUrl} | rev | cut -d'/' -f1 | rev)
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
########
|
||||
# This script build the Jitsi library with LIBRE_BUILD flag.
|
||||
# Following instructions from here https://github.com/jitsi/jitsi-meet/tree/master/android#build-and-use-your-own-sdk-artifactsbinaries
|
||||
# It then export the library in a maven repository, that we host here https://github.com/vector-im/jitsi_libre_maven
|
||||
# It then export the library in a maven repository, that we host here https://github.com/element-hq/jitsi_libre_maven
|
||||
|
||||
# exit on any error
|
||||
set -e
|
||||
|
@@ -65,7 +65,7 @@ if args.verbose:
|
||||
print(args)
|
||||
|
||||
# Split the artifact URL to get information
|
||||
# Ex: https://github.com/vector-im/element-android/suites/9293388174/artifacts/435942121
|
||||
# Ex: https://github.com/element-hq/element-android/suites/9293388174/artifacts/435942121
|
||||
artifactUrl = args.artifactUrl
|
||||
if not artifactUrl.startswith('https://github.com/'):
|
||||
print("❌ Invalid parameter --artifactUrl %s. Must start with 'https://github.com/'" % artifactUrl)
|
||||
|
@@ -204,7 +204,7 @@ printf -v versionMinor2Digits "%02d" ${versionMinor}
|
||||
printf -v versionPatch2Digits "%02d" ${versionPatch}
|
||||
fastlaneFile="4${versionMajor2Digits}${versionMinor2Digits}${versionPatch2Digits}0.txt"
|
||||
fastlanePathFile="./fastlane/metadata/android/en-US/changelogs/${fastlaneFile}"
|
||||
printf "Main changes in this version: TODO.\nFull changelog: https://github.com/vector-im/element-android/releases" > ${fastlanePathFile}
|
||||
printf "Main changes in this version: TODO.\nFull changelog: https://github.com/element-hq/element-android/releases" > ${fastlanePathFile}
|
||||
|
||||
read -p "I have created the file ${fastlanePathFile}, please edit it and press enter when it's done."
|
||||
git add ${fastlanePathFile}
|
||||
@@ -266,7 +266,7 @@ else
|
||||
fi
|
||||
|
||||
printf "\n================================================================================\n"
|
||||
printf "Wait for the GitHub action https://github.com/vector-im/element-android/actions/workflows/build.yml?query=branch%%3Amain to build the 'main' branch.\n"
|
||||
printf "Wait for the GitHub action https://github.com/element-hq/element-android/actions/workflows/build.yml?query=branch%%3Amain to build the 'main' branch.\n"
|
||||
read -p "After GHA is finished, please enter the artifact URL (for 'vector-gplay-release-unsigned'): " artifactUrl
|
||||
|
||||
printf "\n================================================================================\n"
|
||||
@@ -359,7 +359,7 @@ adb -d install ${apkPath}
|
||||
read -p "Please run the APK on your phone to check that the upgrade went well (no init sync, etc.). Press enter when it's done."
|
||||
|
||||
printf "\n================================================================================\n"
|
||||
githubCreateReleaseLink="https://github.com/vector-im/element-android/releases/new?tag=v${version}&title=Element%20Android%20v${version}&body=${changelogUrlEncoded}"
|
||||
githubCreateReleaseLink="https://github.com/element-hq/element-android/releases/new?tag=v${version}&title=Element%20Android%20v${version}&body=${changelogUrlEncoded}"
|
||||
printf "Creating the release on gitHub.\n"
|
||||
printf -- "Open this link: %s\n" ${githubCreateReleaseLink}
|
||||
printf "Then\n"
|
||||
@@ -369,7 +369,7 @@ read -p ". Press enter when it's done. "
|
||||
|
||||
printf "\n================================================================================\n"
|
||||
printf "Message for the Android internal room:\n\n"
|
||||
message="@room Element Android ${version} is ready to be tested. You can get it from https://github.com/vector-im/element-android/releases/tag/v${version}. Please report any feedback here. Thanks!"
|
||||
message="@room Element Android ${version} is ready to be tested. You can get it from https://github.com/element-hq/element-android/releases/tag/v${version}. Please report any feedback here. Thanks!"
|
||||
printf "${message}\n\n"
|
||||
|
||||
if [[ -z "${elementBotToken}" ]]; then
|
||||
|
Reference in New Issue
Block a user