From fda08658527ba7a6e1bc142904df19cb56b8006a Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Thu, 2 Sep 2021 12:40:34 -0400 Subject: [PATCH] Add changelog generator and initial changelog --- CHANGELOG.md | 19 +++++++++++++++ changelog/.changelogignore | 2 ++ changelog/README.md | 4 ++++ changelog/changelog-head.md | 11 +++++++++ changelog/changelog-tail.md | 9 +++++++ changelog/generate-changelog.sh | 40 +++++++++++++++++++++++++++++++ changelog/items/bugs-fixed/.init | 0 changelog/items/key-updates/.init | 0 changelog/items/other/.init | 0 9 files changed, 85 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 changelog/.changelogignore create mode 100644 changelog/README.md create mode 100644 changelog/changelog-head.md create mode 100644 changelog/changelog-tail.md create mode 100755 changelog/generate-changelog.sh create mode 100644 changelog/items/bugs-fixed/.init create mode 100644 changelog/items/key-updates/.init create mode 100644 changelog/items/other/.init diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..05d9dbcd --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/changelog/.changelogignore b/changelog/.changelogignore new file mode 100644 index 00000000..32b56faa --- /dev/null +++ b/changelog/.changelogignore @@ -0,0 +1,2 @@ +.init +.DS_Store \ No newline at end of file diff --git a/changelog/README.md b/changelog/README.md new file mode 100644 index 00000000..e182e7c6 --- /dev/null +++ b/changelog/README.md @@ -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. \ No newline at end of file diff --git a/changelog/changelog-head.md b/changelog/changelog-head.md new file mode 100644 index 00000000..b58b2d50 --- /dev/null +++ b/changelog/changelog-head.md @@ -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: diff --git a/changelog/changelog-tail.md b/changelog/changelog-tail.md new file mode 100644 index 00000000..5bf35a67 --- /dev/null +++ b/changelog/changelog-tail.md @@ -0,0 +1,9 @@ + + +## August 9th, 2021: +### v0.1.1 +Monthly release + +## March 24th, 2021: +### v0.1.0 +Initial versioned release diff --git a/changelog/generate-changelog.sh b/changelog/generate-changelog.sh new file mode 100755 index 00000000..81c5ab4f --- /dev/null +++ b/changelog/generate-changelog.sh @@ -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 diff --git a/changelog/items/bugs-fixed/.init b/changelog/items/bugs-fixed/.init new file mode 100644 index 00000000..e69de29b diff --git a/changelog/items/key-updates/.init b/changelog/items/key-updates/.init new file mode 100644 index 00000000..e69de29b diff --git a/changelog/items/other/.init b/changelog/items/other/.init new file mode 100644 index 00000000..e69de29b