Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a2e73644
Commit
a2e73644
authored
Sep 21, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added convenient script for generating changelog draft.
parent
e25c56a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
generate_changelog.py
generate_changelog.py
+65
-0
No files found.
generate_changelog.py
0 → 100755
View file @
a2e73644
#!/usr/bin/env python
"""Generates a friendly list of changes per language since the last release."""
import
sys
import
os
class
Language
(
object
):
def
__init__
(
self
,
name
,
pathspec
):
self
.
name
=
name
self
.
pathspec
=
pathspec
languages
=
[
Language
(
"C++"
,
[
"':(glob)src/google/protobuf/*'"
,
"src/google/protobuf/compiler/cpp"
,
"src/google/protobuf/io"
,
"src/google/protobuf/util"
,
"src/google/protobuf/stubs"
,
]),
Language
(
"Java"
,
[
"java"
,
"javanano"
,
"src/google/protobuf/compiler/cpp"
,
]),
Language
(
"Python"
,
[
"javanano"
,
"src/google/protobuf/compiler/python"
,
]),
Language
(
"JavaScript"
,
[
"js"
,
"src/google/protobuf/compiler/js"
,
]),
Language
(
"PHP"
,
[
"php"
,
"src/google/protobuf/compiler/php"
,
]),
Language
(
"Ruby"
,
[
"ruby"
,
"src/google/protobuf/compiler/ruby"
,
]),
Language
(
"Csharp"
,
[
"csharp"
,
"src/google/protobuf/compiler/csharp"
,
]),
Language
(
"Objective C"
,
[
"objectivec"
,
"src/google/protobuf/compiler/objectivec"
,
]),
]
if
len
(
sys
.
argv
)
<
2
:
print
(
"Usage: generate_changelog.py <previous release>"
)
sys
.
exit
(
1
)
previous
=
sys
.
argv
[
1
]
for
language
in
languages
:
print
(
language
.
name
)
os
.
system
((
"git log --pretty=oneline --abbrev-commit
%
s...HEAD
%
s | "
+
"sed -e 's/^/ - /'"
)
%
(
previous
,
" "
.
join
(
language
.
pathspec
)))
print
(
""
)
print
(
"To view a commit on GitHub: "
+
"https://github.com/google/protobuf/commit/<commit id>"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment