Add changelog generator and initial changelog

This commit is contained in:
Matthew Sevey 2021-09-02 12:40:34 -04:00
parent d22acae141
commit fda0865852
No known key found for this signature in database
GPG Key ID: 9ADDD344F13057F6
9 changed files with 85 additions and 0 deletions

19
CHANGELOG.md Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@
.init
.DS_Store

4
changelog/README.md Normal file
View File

@ -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.

View File

@ -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:

View File

@ -0,0 +1,9 @@
## August 9th, 2021:
### v0.1.1
Monthly release
## March 24th, 2021:
### v0.1.0
Initial versioned release

40
changelog/generate-changelog.sh Executable file
View File

@ -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

View File

View File

View File