Compare commits
2
Commits
43e4b9788a
...
a82e0a8f10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a82e0a8f10 | ||
|
|
d1864c7030 |
@@ -43,7 +43,6 @@ def handle_event(request: GiteaRequest):
|
|||||||
commit_msg = request.head_commit['message']
|
commit_msg = request.head_commit['message']
|
||||||
repo_url = request.repository['clone_url']
|
repo_url = request.repository['clone_url']
|
||||||
branch_name = request.ref.split('/')[-1]
|
branch_name = request.ref.split('/')[-1]
|
||||||
logging.debug()
|
|
||||||
# stop early if asked
|
# stop early if asked
|
||||||
if commit_msg.lower().startswith('[skip ci]'):
|
if commit_msg.lower().startswith('[skip ci]'):
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|||||||
@@ -28,5 +28,6 @@ def load_runner_script(path: Path) -> RunnerScript:
|
|||||||
with open(path, 'r') as fh:
|
with open(path, 'r') as fh:
|
||||||
script = yaml.safe_load(fh)
|
script = yaml.safe_load(fh)
|
||||||
runner_script = RunnerScript.parse_obj(script)
|
runner_script = RunnerScript.parse_obj(script)
|
||||||
|
logging.debug('finished')
|
||||||
return runner_script
|
return runner_script
|
||||||
|
|
||||||
Reference in New Issue
Block a user