Merge pull request #1124 from SkynetLabs/sevey/add-changelog
Add changelog generator and initial changelog
This commit is contained in:
commit
df32997101
|
@ -0,0 +1,19 @@
|
|||
Version Scheme
|
||||
--------------
|
||||
Skynet Webportal uses the following versioning scheme, vX.X.X
|
||||
- First Digit signifies a major (compatibility breaking) release
|
||||
- Second Digit signifies a major (non compatibility breaking) release
|
||||
- Third Digit signifies a minor or patch release
|
||||
|
||||
Version History
|
||||
---------------
|
||||
|
||||
Latest:
|
||||
|
||||
## August 9th, 2021:
|
||||
### v0.1.1
|
||||
Monthly release
|
||||
|
||||
## March 24th, 2021:
|
||||
### v0.1.0
|
||||
Initial versioned release
|
|
@ -0,0 +1,2 @@
|
|||
.init
|
||||
.DS_Store
|
|
@ -0,0 +1,4 @@
|
|||
# Changelog Generator
|
||||
|
||||
For usage of changelog generator please see [readme](https://gitlab.com/NebulousLabs/changelog-generator/-/blob/master/README.md) in Changelog Generator
|
||||
repository.
|
|
@ -0,0 +1,11 @@
|
|||
Version Scheme
|
||||
--------------
|
||||
Skynet Webportal uses the following versioning scheme, vX.X.X
|
||||
- First Digit signifies a major (compatibility breaking) release
|
||||
- Second Digit signifies a major (non compatibility breaking) release
|
||||
- Third Digit signifies a minor or patch release
|
||||
|
||||
Version History
|
||||
---------------
|
||||
|
||||
Latest:
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
|
||||
## August 9th, 2021:
|
||||
### v0.1.1
|
||||
Monthly release
|
||||
|
||||
## March 24th, 2021:
|
||||
### v0.1.0
|
||||
Initial versioned release
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Generate CHANGELOG.md from changelog directory
|
||||
# Requires:
|
||||
# - curl installed
|
||||
|
||||
# Config
|
||||
|
||||
main_version='v1.0.1'
|
||||
export main_filename='generate-changelog-main.sh'
|
||||
export main_url="https://gitlab.com/NebulousLabs/changelog-generator/-/raw/${main_version}/${main_filename}"
|
||||
export temp_dir="${HOME}/.nebulous/changelog-generator"
|
||||
export main_path=${temp_dir}/${main_filename}
|
||||
|
||||
# Set working dir to script location
|
||||
pushd $(dirname "$0") > /dev/null
|
||||
|
||||
# If executed in 'changelog-generator' repo, do not use the older released
|
||||
# version, use the latest local version
|
||||
repo_dir="$(basename ${PWD%/*})"
|
||||
if [[ "${repo_dir}" == "changelog-generator" ]]
|
||||
then
|
||||
# Call the latest local main script
|
||||
echo "Executing the latest local version of the main script"
|
||||
export local_execution=true
|
||||
chmod +x ../${main_filename}
|
||||
../${main_filename} "$@"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Download main script to temp dir
|
||||
mkdir -p ${temp_dir}
|
||||
curl --show-error --fail -o ${main_path} ${main_url}
|
||||
|
||||
# Execute downloaded main script passing arguments to the main script
|
||||
chmod +x ${main_path}
|
||||
${main_path} "$@"
|
||||
|
||||
popd > /dev/null
|
Reference in New Issue