some more minor little changes
This commit is contained in:
parent
14680c1746
commit
3e68945bfc
|
@ -79,10 +79,11 @@ def gitea_handle_repo_action():
|
||||||
["issues", "issue_comment"]
|
["issues", "issue_comment"]
|
||||||
)
|
)
|
||||||
|
|
||||||
return ''
|
|
||||||
elif repo_action == "deleted":
|
elif repo_action == "deleted":
|
||||||
github.delete_repo(repo_owner, repo_name)
|
github.delete_repo(repo_owner, repo_name)
|
||||||
|
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
@app.route("/bridge/endpoints/gitea/issue", methods=["POST"])
|
@app.route("/bridge/endpoints/gitea/issue", methods=["POST"])
|
||||||
def gitea_handle_issue_action():
|
def gitea_handle_issue_action():
|
||||||
|
@ -219,11 +220,11 @@ def gitea_handle_issue_action():
|
||||||
repo_owner,
|
repo_owner,
|
||||||
repo_name,
|
repo_name,
|
||||||
issue_number,
|
issue_number,
|
||||||
body,
|
comment_body,
|
||||||
)
|
)
|
||||||
|
|
||||||
elif event_type == "closed":
|
elif event_type == "closed":
|
||||||
github_close_issue_result = github.close_issue_by_number(
|
github.close_issue_by_number(
|
||||||
repo_owner,
|
repo_owner,
|
||||||
repo_name,
|
repo_name,
|
||||||
issue_number,
|
issue_number,
|
||||||
|
|
|
@ -183,11 +183,11 @@ class Gitea(WebgitClient):
|
||||||
repo_name,
|
repo_name,
|
||||||
),
|
),
|
||||||
json={
|
json={
|
||||||
|
"active": True,
|
||||||
"config": {
|
"config": {
|
||||||
"url": http_endpoint,
|
"url": http_endpoint,
|
||||||
"content_type": "json",
|
"content_type": "json",
|
||||||
},
|
},
|
||||||
"active": True,
|
|
||||||
"events": events,
|
"events": events,
|
||||||
"type": "gitea",
|
"type": "gitea",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue