Skip to content

Commit ba4f8e6

Browse files
committed
Stage changed files for commit
1 parent c655b7e commit ba4f8e6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/update_changelog.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
CURRENT_FILE = Path(__file__)
2020
ROOT = CURRENT_FILE.parents[1]
2121
CHANGELOG_PATH = ROOT / 'CHANGELOG.md'
22+
LIBRARY_FILE_PATH = ROOT / 'src/Curl/Curl.php'
2223

2324
# TODO: Adjust number of recent pull requests to include likely number of
2425
# pull requests since the last release.
@@ -153,7 +154,7 @@ def main():
153154
'<!-- CHANGELOG_PLACEHOLDER -->\n\n{}'.format(release_content),
154155
)
155156
print(new_content[:800])
156-
# CHANGELOG_PATH.write_text(new_content)
157+
CHANGELOG_PATH.write_text(new_content)
157158

158159
# Raise error if any pull request is missing a semantic version change type.
159160
if pulls_missing_semver_label:
@@ -164,5 +165,14 @@ def main():
164165
for pull in pulls_missing_semver_label)))
165166
raise Exception(error_message)
166167

168+
print('before:')
169+
print(local_repo.git.status())
170+
171+
local_repo.git.add(CHANGELOG_PATH)
172+
local_repo.git.add(LIBRARY_FILE_PATH)
173+
174+
print('after:')
175+
print(local_repo.git.status())
176+
167177
if __name__ == '__main__':
168178
main()

0 commit comments

Comments
 (0)