Skip to content

Commit

Permalink
Refactor to use CHANGELOG constant
Browse files Browse the repository at this point in the history
  • Loading branch information
4-20ma committed Sep 26, 2016
1 parent 2bcb1d4 commit 887a3b9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ DOXYFILE = 'Doxyfile'
GITHUB_USERNAME = '4-20ma'
GITHUB_REPO = 'I2cDiscreteIoExpander'
HEADER_FILE = "#{GITHUB_REPO}.h"
CHANGELOG_FILE = 'CHANGELOG.md'
CHANGELOG = 'CHANGELOG'
CHANGELOG_FILE = "#{CHANGELOG}.md"
PROPERTIES_FILE = 'library.properties'
VERSION_FILE = Version.version_file('').basename.to_s

Expand All @@ -58,11 +59,11 @@ task :info do
$ rake version:bump:major # or
edit 'VERSION' file directly
- Prepare release date, 'CHANGELOG.md' file, documentation:
- Prepare release date, '#{CHANGELOG_FILE}' file, documentation:
$ rake prepare
- Review changes to 'CHANGELOG.md' file
- Review changes to '#{CHANGELOG_FILE}' file
This file is assembled using git commit messages; review for completeness.
- Review html documentation files
Expand Down Expand Up @@ -145,8 +146,8 @@ namespace :prepare do
config.bug_labels = ['Type: Bug']
config.bug_prefix = 'BUG FIXES'
config.future_release = "v#{Version.current.to_s}"
config.header = "# #{GITHUB_REPO} CHANGELOG"
config.include_labels = ['CHANGELOG']
config.header = "# #{GITHUB_REPO} #{CHANGELOG}"
config.include_labels = [CHANGELOG]
config.merge_prefix = 'OTHER' # e.g. 'Type: Maintenance'
config.project = GITHUB_REPO
config.user = GITHUB_USERNAME
Expand Down

0 comments on commit 887a3b9

Please sign in to comment.