Skip to content

Commit

Permalink
update release note for 1.0.0.0-beta1 (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn authored Apr 27, 2021
1 parent e1d0c99 commit 4dff7ec
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/draft-release-notes-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ template: |
# Setting the formatting and sorting for the release notes body
name-template: Version (set version here)
change-template: '* $TITLE (#$NUMBER)'
change-template: '* $TITLE ([#$NUMBER]($URL))'
sort-by: merged_at
sort-direction: ascending
replacers:
Expand Down Expand Up @@ -36,6 +36,7 @@ categories:
- title: 'Maintenance'
labels:
- 'version compatibility'
- 'maintenance'
- title: 'Refactoring'
labels:
- 'refactor'
32 changes: 32 additions & 0 deletions release-notes/create_release_notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import os
import sys
import fileinput
import re

file_path = raw_input("Path to raw notes file (e.g., notes.md): ")
plugin_name = 'job-scheduler'
plugin_version = raw_input('Plugin version (x.x.x.x): ')
app = 'OpenSearch'
app_version = raw_input(app + ' compatibility version (x.x.x): ')

for line in fileinput.input(file_path, inplace=True):
# Add title & compatibility
if fileinput.isfirstline():
line = "## Version " + plugin_version + " Release Notes\n\n" \
"Compatible with " + app + " " + app_version + "\n"

# # Add link to PRs
# if '*' in line:
# start = line.find('#') + 1
# end = line.find(')', start)
# pr_num = line[start:end]
# line = re.sub(searchExp, "([#" + pr_num +
# "](" + link_prefix + pr_num + "))", line)
sys.stdout.write(line)

# Rename file to be consistent with ODFE standards
new_file_path = "opensearch." + plugin_name + ".release-notes-" + \
plugin_version + ".md"
os.rename(file_path, new_file_path)

print('\n\nDone!\n')
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Version 1.0.0.0-beta1 Release Notes

Compatible with OpenSearch 1.0.0

### Maintenance

* Migrate to OpenSearch ([#1](https://github.com/opensearch-project/job-scheduler/pull/1))

### Documentation

* Update licenses ([#3](https://github.com/opensearch-project/job-scheduler/pull/3))
* Go Public ([#2](https://github.com/opensearch-project/job-scheduler/pull/2))
* Add new license header ([#6](https://github.com/opensearch-project/job-scheduler/pull/6))

### Infrastructure
* Build and publish to maven local, enable CI ([#8](https://github.com/opensearch-project/job-scheduler/pull/8))
* Reset version to 1.0. ([#9](https://github.com/opensearch-project/job-scheduler/pull/9))
* Build against OpenSearch 1.0.0-alpha1. ([#11](https://github.com/opensearch-project/job-scheduler/pull/11))
* Rename plugin ([#14](https://github.com/opensearch-project/job-scheduler/pull/14))
* Run integration tests in CI + alpha2 ([#12](https://github.com/opensearch-project/job-scheduler/pull/12))

0 comments on commit 4dff7ec

Please sign in to comment.