Skip to content

Commit

Permalink
rename notes and fix pr title
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Feb 18, 2021
1 parent c033197 commit abe0fe2
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 5 deletions.
1 change: 1 addition & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
line-length: false
no-duplicate-heading: false
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# CHANGELOG

## Development

### Commits

## v0.1.0

### Notes

1. Create repository.
1. Add scripts.
1. Add release workflow.
1. Remove hard-coded variables.
1. Simplify script naming.
1. Create the autologs main executable.
1. Make autologs a standalone executable.

### Pull Requests

* [```pull/2```](https://github.com/ktmeaton/autologs/pull/2) Prelim Commit Documentation
* [```pull/1```](https://github.com/ktmeaton/autologs/pull/1) Installation Docs

### Commits

* [```c033197```](https://github.com/ktmeaton/autologs/commit/c033197) move new tag naming into release
* [```ce2fded```](https://github.com/ktmeaton/autologs/commit/ce2fded) fix pr dependency on max commits
* [```d058793```](https://github.com/ktmeaton/autologs/commit/d058793) fix ver vs tag typo
* [```81b58ac```](https://github.com/ktmeaton/autologs/commit/81b58ac) update release workflow
* [```3b83bad```](https://github.com/ktmeaton/autologs/commit/3b83bad) update install docs
* [```7e2c54f```](https://github.com/ktmeaton/autologs/commit/7e2c54f) rename ver to tag
* [```7c1cfa9```](https://github.com/ktmeaton/autologs/commit/7c1cfa9) fix changelog output file
* [```c22a475```](https://github.com/ktmeaton/autologs/commit/c22a475) add fetch depth of 0 to checkout
* [```853bc8c```](https://github.com/ktmeaton/autologs/commit/853bc8c) run commands to stdout and to file
* [```baebf25```](https://github.com/ktmeaton/autologs/commit/baebf25) add changelog usage docs
* [```efe7f5b```](https://github.com/ktmeaton/autologs/commit/efe7f5b) make autologs executable
* [```e47ae92```](https://github.com/ktmeaton/autologs/commit/e47ae92) fix uses typo
* [```3197dc0```](https://github.com/ktmeaton/autologs/commit/3197dc0) test 'test' workflow
* [```f2333e5```](https://github.com/ktmeaton/autologs/commit/f2333e5) test lint workflow
* [```8983082```](https://github.com/ktmeaton/autologs/commit/8983082) first lint with pre-commit
* [```60c8cda```](https://github.com/ktmeaton/autologs/commit/60c8cda) add release notes example
* [```365e6aa```](https://github.com/ktmeaton/autologs/commit/365e6aa) test markdown code rendering
* [```a945418```](https://github.com/ktmeaton/autologs/commit/a945418) Merge pull request #2 from ktmeaton/dev
* [```de3dd7f```](https://github.com/ktmeaton/autologs/commit/de3dd7f) start documenting commit usage
* [```1f05f16```](https://github.com/ktmeaton/autologs/commit/1f05f16) proper writing to output file
* [```f8c3eed```](https://github.com/ktmeaton/autologs/commit/f8c3eed) bugfix in repo PR url
* [```0915673```](https://github.com/ktmeaton/autologs/commit/0915673) Merge pull request #1 from ktmeaton/dev
* [```369d26b```](https://github.com/ktmeaton/autologs/commit/369d26b) installation docs
* [```656890c```](https://github.com/ktmeaton/autologs/commit/656890c) rename notes dev title
* [```46eaf8f```](https://github.com/ktmeaton/autologs/commit/46eaf8f) remove extension from autologs executable
* [```039e605```](https://github.com/ktmeaton/autologs/commit/039e605) make autologs executable
* [```0f17291```](https://github.com/ktmeaton/autologs/commit/0f17291) fix target logs and notes path
* [```e0333a7```](https://github.com/ktmeaton/autologs/commit/e0333a7) remove modular scripts
* [```b37fa89```](https://github.com/ktmeaton/autologs/commit/b37fa89) self-contained changelog run
* [```bc188e9```](https://github.com/ktmeaton/autologs/commit/bc188e9) self-contained release run
* [```6ebcc31```](https://github.com/ktmeaton/autologs/commit/6ebcc31) self contained commits run
* [```8a2b88c```](https://github.com/ktmeaton/autologs/commit/8a2b88c) functioning as submodules
* [```11a0400```](https://github.com/ktmeaton/autologs/commit/11a0400) work on positional parameters
* [```708d046```](https://github.com/ktmeaton/autologs/commit/708d046) implement help and version
* [```db2b13a```](https://github.com/ktmeaton/autologs/commit/db2b13a) create the autologs main executable
* [```c598952```](https://github.com/ktmeaton/autologs/commit/c598952) simplify script naming
* [```07fdd3d```](https://github.com/ktmeaton/autologs/commit/07fdd3d) remove hard coded var in release notes
* [```e000fd0```](https://github.com/ktmeaton/autologs/commit/e000fd0) remove hard coded variables
* [```c5aed92```](https://github.com/ktmeaton/autologs/commit/c5aed92) create repository
15 changes: 10 additions & 5 deletions autologs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ Release()
#------------------------------------
# Commits Header
echo "### Commits"
commits=`Commits ${OLD_TAG} ${NEW_TAG} ${MAX_COMMITS}`
echo
Commits ${OLD_TAG} ${NEW_TAG} ${MAX_COMMITS}
echo

if [[ $commits ]]; then
echo -e "$commits";
echo
fi
}

#------------------------------------------------------------------------------
Expand All @@ -217,7 +219,7 @@ Changelog()
cur_tag=${ARR_TAGS[$i_tag]}
#echo "Comparing $cur_tag to $prev_tag"
# Create release notes for the current tag
Release ${cur_tag} ${prev_tag} $MAX_COMMITS $NOTES_DIR
Release ${cur_tag} ${prev_tag} "all" $NOTES_DIR
prev_tag=$cur_tag
done
}
Expand Down Expand Up @@ -327,7 +329,10 @@ eval set -- "$PARAMS"
if [[ `git tag | wc -l` == '0' ]]; then
OLD_TAG=$FIRST_COMMIT
NEW_TAG="HEAD"
elif [[ `git tag | wc -l` == '1' ]]; then
fi

# If old and new are the same because there is only one tag
if [[ $OLD_TAG == $NEW_TAG && `git tag | wc -l` == '1' ]]; then
OLD_TAG=$FIRST_COMMIT
fi

Expand Down
File renamed without changes.

0 comments on commit abe0fe2

Please sign in to comment.