This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
docs : Automate release notes #410
Merged
jodh-intel
merged 1 commit into
clearcontainers:master
from
jcvenegas:jcvenegas/automate-release-notes
Aug 16, 2017
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Copyright (c) 2017 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#!/bin/bash | ||
|
||
script_dir=$(dirname "$0") | ||
|
||
source "${script_dir}/../versions.txt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file gets everywhere! 😄 |
||
from_commit="$1" | ||
new_release="$2" | ||
|
||
usage(){ | ||
echo "Usage $0 <commit/tag> [new-release-version]" | ||
echo "commit/tag: will be used as start point to get release notes" | ||
echo "new-release: new release version that will have the " | ||
exit -1 | ||
} | ||
|
||
if [ -z "$from_commit" ]; then | ||
usage | ||
fi | ||
|
||
git fetch --tags | ||
|
||
if [ -z "$new_release" ] ;then | ||
runtime_version=$(cat "${script_dir}/../VERSION") | ||
else | ||
runtime_version="${new_release}" | ||
fi | ||
|
||
if git describe --exact-match --tags HEAD 2> /dev/null ;then | ||
commit_id="$(git describe --exact-match --tags HEAD)" | ||
else | ||
commit_id="$(git rev-parse HEAD)" | ||
fi | ||
|
||
|
||
|
||
changes(){ | ||
echo "## Changes" | ||
git log --merges "$from_commit"..HEAD | awk '/Merge pull/{getline; getline;print }' | \ | ||
while read -r pr | ||
do | ||
echo "- ${pr}" | ||
done | ||
|
||
echo "" | ||
|
||
echo "## Shortlog" | ||
for cr in $(git log --merges "$from_commit"..HEAD | grep 'Merge:' | awk '{print $2".."$3}'); | ||
do | ||
git log --oneline "$cr" | ||
done | ||
} | ||
|
||
limitations(){ | ||
grep -P '^###\s|^####\s|See issue' "${script_dir}/limitations.md" | ||
} | ||
|
||
cat << EOT | ||
# Release ${runtime_version} | ||
|
||
$(changes) | ||
|
||
## Compatibility with Docker | ||
Clear Containers ${runtime_version} is compatible with Docker ${docker_version} | ||
## OCI Runtime Specification | ||
Clear Containers ${runtime_version} support the OCI Runtime Specification [${oci_spec_version}][ocispec] | ||
|
||
## Clear Linux Containers image | ||
Clear Containers ${runtime_version} requires at least Clear Linux containers image [${clear_vm_image_version}][clearlinuximage] | ||
|
||
## Clear Linux Containers Kernel | ||
Clear Containers ${runtime_version} requires at least Clear Linux Containers kernel [${clear_container_kernel}][kernel] | ||
|
||
## Installation | ||
- [Ubuntu][ubuntu] | ||
- [Fedora][fedora] | ||
- [Developers][developers] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (not related to this PR [yet], but it'll be nice to get CentOS/RHEL added here when #372 lands). |
||
|
||
|
||
## Issues & limitations | ||
|
||
$(limitations) | ||
More information [Limitations][limitations] | ||
|
||
[clearlinuximage]: https://download.clearlinux.org/releases/${clear_vm_image_version}/clear/clear-${clear_vm_image_version}-containers.img.xz | ||
[kernel]: https://github.com/clearcontainers/linux/tree/${clear_container_kernel} | ||
[ocispec]: https://github.com/opencontainers/runtime-spec/releases/tag/${oci_spec_version} | ||
[limitations]: https://github.com/clearcontainers/runtime/blob/${commit_id}/docs/limitations.md | ||
[ubuntu]: https://github.com/clearcontainers/runtime/blob/${commit_id}/docs/ubuntu-installation-guide.md | ||
[fedora]: https://github.com/clearcontainers/runtime/blob/${commit_id}/docs/fedora-installation-guide.md | ||
[developers]: https://github.com/clearcontainers/runtime/blob/${commit_id}/docs/developers-clear-containers-install.md | ||
|
||
EOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
cc_agent_version=0fca1509afbaa18c5a0ddf213f2e377c7b87dcc7 | ||
#Clear Containers image from https://download.clearlinux.org/releases/ | ||
clear_vm_image_version=16910 | ||
#Kernel configuration and patches from https://github.com/clearcontainers/linux | ||
clear_container_kernel=cc-linux-4.9.35 | ||
#Docker suported version: | ||
docker_version=v17.06-ce | ||
#Supported OCI spec: https://github.com/opencontainers/runtime-spec/releases | ||
oci_spec_version=v1.0.0-rc5 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added