File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 19
19
CURRENT_FILE = Path (__file__ )
20
20
ROOT = CURRENT_FILE .parents [1 ]
21
21
CHANGELOG_PATH = ROOT / 'CHANGELOG.md'
22
+ LIBRARY_FILE_PATH = ROOT / 'src/Curl/Curl.php'
22
23
23
24
# TODO: Adjust number of recent pull requests to include likely number of
24
25
# pull requests since the last release.
@@ -153,7 +154,7 @@ def main():
153
154
'<!-- CHANGELOG_PLACEHOLDER -->\n \n {}' .format (release_content ),
154
155
)
155
156
print (new_content [:800 ])
156
- # CHANGELOG_PATH.write_text(new_content)
157
+ CHANGELOG_PATH .write_text (new_content )
157
158
158
159
# Raise error if any pull request is missing a semantic version change type.
159
160
if pulls_missing_semver_label :
@@ -164,5 +165,14 @@ def main():
164
165
for pull in pulls_missing_semver_label )))
165
166
raise Exception (error_message )
166
167
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
+
167
177
if __name__ == '__main__' :
168
178
main ()
You can’t perform that action at this time.
0 commit comments