Skip to content

Commit be387cd

Browse files
committed
Revert "[TEMP] Change synchronization script to remove rows"
This reverts commit 643bb829d1b476cae02928f9a7c2d16171a3e127.
1 parent cad62f5 commit be387cd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

libcxx/utils/synchronize_csv_status_files.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,18 @@ def sync_csv(rows: List[Tuple], from_github: List[PaperInfo]) -> List[Tuple]:
335335
def main():
336336
libcxx_root = pathlib.Path(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
337337

338+
# Extract the list of PaperInfos from issues we're tracking on Github.
339+
print("Loading all issues from Github")
340+
gh_command_line = ['gh', 'project', 'item-list', LIBCXX_CONFORMANCE_PROJECT, '--owner', 'llvm', '--format', 'json', '--limit', '9999999']
341+
project_info = json.loads(subprocess.check_output(gh_command_line))
342+
from_github = [PaperInfo.from_github_issue(i) for i in project_info['items']]
343+
338344
for filename in CSV_FILES_TO_SYNC:
339-
print(f"Updating {filename}")
345+
print(f"Synchronizing {filename} with Github issues")
340346
file = libcxx_root / 'docs' / 'Status' / filename
341347
csv = load_csv(file)
342-
for row in csv:
343-
del row[5]
344-
write_csv(file, csv)
348+
synced = sync_csv(csv, from_github)
349+
write_csv(file, synced)
345350

346351
if __name__ == '__main__':
347352
main()

0 commit comments

Comments
 (0)