diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8e6f556..aec749e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,6 +4,7 @@ A short description of the changes in this PR. ## Jira Issue ID +[DAS-XXXX](https://bugs.earthdata.nasa.gov/browse/DAS-XXXX) ## Local Test Steps diff --git a/README.md b/README.md index 462c337..792dc5b 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ updated: ## CI/CD: -The CI/CD for HyBIG is contained in GitHub workslofws in the +The CI/CD for HyBIG is contained in GitHub workflows in the `.github/workflows` directory: * `run_tests.yml` - A reusable workflow that builds the service and test Docker @@ -149,5 +149,5 @@ to update the semantic version tag at the end of the full Docker image name. You can reach out to the maintainers of this repository via email: * david.p.auty@nasa.gov -* matthew.savioe@colorado.edu +* matthew.savoie@colorado.edu * owen.m.littlejohns@nasa.gov diff --git a/bin/extract-release-notes.sh b/bin/extract-release-notes.sh index 1c87373..3da532c 100755 --- a/bin/extract-release-notes.sh +++ b/bin/extract-release-notes.sh @@ -7,18 +7,16 @@ # 2023-06-16: Created. # 2023-10-10: Copied from earthdata-varinfo repository to HOSS. # 2024-01-03: Copied from HOSS repository to the Swath Projector. -# 2024-01-23: Copied from Swath Projector repository to HyBIG. +# 2024-01-23: Copied and modified from Swath Projector repository to HyBIG. # ############################################################################### CHANGELOG_FILE="CHANGELOG.md" VERSION_PATTERN="^## v" -# Count number of versions in version file: -number_of_versions=$(grep -c "${VERSION_PATTERN}" ${CHANGELOG_FILE}) -if [ ${number_of_versions} -gt 1 ] -then - grep -B 9999 -m 2 "${VERSION_PATTERN}" ${CHANGELOG_FILE} | sed '$d' | sed '$d' -else - cat ${CHANGELOG_FILE} -fi +# Read the file and extract text between the first two occurrences of the +# VERSION_PATTERN +result=$(awk "/$VERSION_PATTERN/{c++; if(c==2) exit;} c==1" "$CHANGELOG_FILE") + +# Print the result +echo "$result" | grep -v "^#"