From ee5429d5aa0b554c9fa736b1831bce9cb46db1ea Mon Sep 17 00:00:00 2001
From: Matthew Thompson <matthew.thompson@nasa.gov>
Date: Mon, 22 Mar 2021 12:13:00 -0400
Subject: [PATCH] Updates to fix CI. Add changelog enforcer

Also, try and fill in the CHANGELOG
---
 .circleci/config.yml                     |  1 -
 .github/workflows/changelog-enforcer.yml | 15 +++++++
 CHANGELOG.md                             | 54 +++++++++++++++++++++++-
 CMakeLists.txt                           |  2 +-
 4 files changed, 68 insertions(+), 4 deletions(-)
 create mode 100644 .github/workflows/changelog-enforcer.yml

diff --git a/.circleci/config.yml b/.circleci/config.yml
index cc90e4d5..0cbd3efe 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -68,7 +68,6 @@ jobs:
           name: "Mepo clone external repos"
           command: |
             cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm
-            git checkout feature/wjamieson/GOCART_legacy_changes
             mepo clone
             mepo develop GEOSgcm_GridComp GEOSgcm_App
             mepo status
diff --git a/.github/workflows/changelog-enforcer.yml b/.github/workflows/changelog-enforcer.yml
new file mode 100644
index 00000000..1512d085
--- /dev/null
+++ b/.github/workflows/changelog-enforcer.yml
@@ -0,0 +1,15 @@
+name: "Enforce Changelog"
+on:
+  pull_request:
+      types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
+
+jobs:
+  # Enforces the update of a changelog file on every pull request 
+  changelog:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: dangoslen/changelog-enforcer@v2
+      with:
+        changeLogPath: 'CHANGELOG.md'
+        skipLabels: 'Skip Changelog,0 diff trivial'
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb786244..f4d17e4c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,13 +9,63 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Changed
 
-- Switched StrTemplate from using the one provided by `GMAO_MPEU` to one provided by `MAPL`
+- Updated `CODEOWNERS` to reflect changes in staffing
+- Updated `components.yaml` for latest MAPL
+
+### Fixed
+
+- Fixes to CMake to build with UFS and with no Baselibs
+- Fixed return code handling
+- Fixed uninitialized rc in Cubic in process library
+
+### Removed
+
+### Added
+
+## [1.0.1] - 2021-03-22
+
+### Fixed
+
+- Corrected CircleCI configuration
+- Added CHANGELOG enforcer
+
+## [1.0.0] - 2021-03-17
+
+This release of GOCART is aimed at moving GOCART from GEOSchem_GridComp to its own repository. At the moment the only code here that is verified as correct is the "GOCART Legacy" code which is code that came from GEOSchem_GridComp v1.4.3.
+
+To use this release, you need to use GEOSchem_GridComp v1.4.4 which has the changes necessary to move GOCART Legacy to this separate repository.
+
+Identical in code to v1.0.0-beta.1
  
+## [1.0.0-beta.1] - 2021-03-01
+
+### Changed
+
+- Pull in updates from `develop`. In GEOSgcm setup, this is zero-diff for both GOCART actual and climatological (e.g., not GOCART2G).
+
+## [1.0.0-beta] - 2021-02-23
+
+### Added
+
+- Added GOCART legacy source code which is been pulled out of the GEOSchem_GridComp v1.4.2.
+
+## [0.9.1] - 2020-09-29
+
+### Changed
+
+- Switched StrTemplate from using the one provided by `GMAO_MPEU` to one provided by `MAPL`
+
 ### Fixed
 
+- Fixed bugs in the process library
 - Bug with how some optional `rc` arguments where handled in the Process Library.
  
-### Removed
 ### Added
 
 - CircleCI configuration added
+ 
+## [0.9.0] - 2020-09-03
+
+### Added
+
+- Initial release of GOCART repository
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eef75416..9859c7ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ cmake_policy (SET CMP0054 NEW)
 
 project (
         GOCART
-        VERSION 1.0.0
+        VERSION 1.0.1
         LANGUAGES Fortran CXX C)  # Note - CXX is required for ESMF
 
 if ("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")