Complete gitea issue creation API function
This commit is contained in:
@@ -23,9 +23,10 @@ class GiteaConnector:
|
||||
"title": title,
|
||||
"body": content,
|
||||
"assignees": ["fred.boniface"],
|
||||
"labels": ["bug", "urgent"],
|
||||
"labels": [261],
|
||||
}
|
||||
|
||||
print(f"URL: {url}")
|
||||
response = requests.post(url, headers=self.header, json=issue_data)
|
||||
if response.status_code == 201:
|
||||
print("Succesfully creates issue: ", response.json())
|
||||
|
||||
@@ -34,7 +34,7 @@ def filter_timetable_entries(diagram_entries):
|
||||
## Checks OwlBoard API for existing PIS codes and whether they match
|
||||
def check_and_validate_against_owlboard(train_entries):
|
||||
ob_client = client.OwlBoardClient("https://owlboard.info", os.getenv("OWLBOARD_KEY"))
|
||||
gitea_client = GiteaConnector("https://git.fjla.uk/api/v1/repos/owlboard/data", "fred.boniface", os.getenv("GITEA_PASS"))
|
||||
gitea_client = GiteaConnector("https://git.fjla.uk/api/v1/repos/owlboard/data/", "fred.boniface", os.getenv("GITEA_PASS"))
|
||||
|
||||
output = []
|
||||
for train_entry in train_entries:
|
||||
|
||||
Reference in New Issue
Block a user