Commit c5367509 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Updating TS 103 120 readme

parent a2d696b1
Loading
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line


# TS 103 120 v1.22.1
TS 103 120 v1.22.1 agreed at LI#71 (Sophia Antipolis, FR), tagged as [spec/103120/1.22.1](https://forge.etsi.org/rep/li/schemas-definitions/-/tree/spec/103120/1.22.1/103120?ref_type=tags) and available [from the ETSI portal as a PDF](https://www.etsi.org/deliver/etsi_ts/103100_103199/103120/01.22.01_60/ts_103120v012201p.pdf)
.  
  
Includes the following CRs with Forge changes:
* TS 103120 CR121 - Takedowns ([MR 294](https://forge.etsi.org/rep/li/schemas-definitions/-/merge_requests/294)).
* TS 103 120 CR 119 - Selective IRI Delivery Policies ([MR 288](https://forge.etsi.org/rep/li/schemas-definitions/-/merge_requests/288)).
* TS 103 120 CR118 - Supporting encryption of outcome data ([MR 281](https://forge.etsi.org/rep/li/schemas-definitions/-/merge_requests/281)).

  
For all changes, including non-Forge changes, see the change history in the published specification.  


# TS 103 120 v1.21.1
TS 103 120 v1.21.1 agreed at LI#70 (New York, US), tagged as [spec/103120/1.21.1](https://forge.etsi.org/rep/li/schemas-definitions/-/tree/spec/103120/1.21.1/103120?ref_type=tags) and available [from the ETSI portal as a PDF](https://www.etsi.org/deliver/etsi_ts/103100_103199/103120/01.21.01_60/ts_103120v012101p.pdf)
.  
@@ -200,13 +213,6 @@ TS 103 120 v1.6.1 (2020-08-06) agreed at LI#54-e, tagged as [spec/103120/1.6.1](
No MR information in the Forge.


# TS 103 120 v1.6.1
TS 103 120 v1.6.1 (2020-08-06) agreed at LI#54-e, tagged as [spec/103120/1.6.1](https://forge.etsi.org/rep/li/schemas-definitions/-/tree/spec/103120/1.6.1/103120?ref_type=tags) and available [from the ETSI portal as a PDF](https://www.etsi.org/deliver/etsi_ts/103100_103199/103120/01.06.01_60/ts_103120v010601p.pdf)
.  
  
No MR information in the Forge.


# TS 103 120 v1.5.1
TS 103 120 v1.5.1 (2020-03-20) agreed at LI#53 (Sophia-Antipolis, 2020-02-04), tagged as [spec/103120/1.5.1](https://forge.etsi.org/rep/li/schemas-definitions/-/tree/spec/103120/1.5.1/103120?ref_type=tags) and available [from the ETSI portal as a PDF](https://www.etsi.org/deliver/etsi_ts/103100_103199/103120/01.05.01_60/ts_103120v010501p.pdf)
.  

utils/close_meeting.py

0 → 100644
+60 −0
Original line number Diff line number Diff line
from sys import argv
import gitlab
from rich.console import Console
from rich.table import Table
from pathlib import Path
from forgelib.scrapers.etsi import getSpecHistory

console = Console()

def rprint(s: str):
    console.print(s)

root_url = "https://forge.etsi.org/rep/"
project_number = 586


with console.status("Retrieving most recent merge request"):
    gl = gitlab.Gitlab(url = root_url)
    project = gl.projects.get(project_number)
    mr_list = project.mergerequests.list(target_branch = 'main', get_all = True)
    mr_list = [mr for mr in mr_list if mr.source_branch.startswith('meeting')]
    mr = mr_list[0]

meeting_name = mr.source_branch.split('/')[-1]
rprint(f"Most recent meeting branch is [yellow]{mr.source_branch}[/], MR !{mr.iid} ('{mr.title}')")

mr_dict = {}

with console.status(f"Retrieving MR/CRs considered at [yellow]{meeting_name}[/]"):
    mr_list = project.mergerequests.list(target_branch = mr.source_branch, get_all = True)
    mr_list = [mr for mr in mr_list if mr.source_branch.startswith('cr')]
    
    
    for mr in mr_list:
        spec = mr.source_branch.split('/')[1]
        cr = mr.source_branch.split('/')[2]
        if not (spec in mr_dict.keys()):
            mr_dict[spec] = []
        mr_dict[spec].append(mr)

for spec, mr_list in mr_dict.items():
    table = Table(show_header=False)
    table.add_column('MR', style="bright_blue")
    table.add_column('branch', style="yellow")
    table.add_column('CR', style="bright_cyan")
    table.add_column('title')
    table.add_column('status')

    for mr in mr_list:
        table.add_row(str(mr.iid), mr.source_branch, mr.source_branch.split('/')[2], mr.title, mr.state)
    rprint(f"\nChanges to [bright_green]TS {spec[0:3]} {spec[3:]}[/]")
    console.print(table)