Change missing project and column to an error
This commit is contained in:
parent
b3805d65e3
commit
883f800b96
2 changed files with 4 additions and 4 deletions
4
dist/src/create_or_update_pull_request.py
vendored
4
dist/src/create_or_update_pull_request.py
vendored
|
@ -20,7 +20,7 @@ def create_project_card(github_repo, project_name, project_column_name, pull_req
|
||||||
break
|
break
|
||||||
|
|
||||||
if not project:
|
if not project:
|
||||||
print("::warning::Project not found. Unable to create project card.")
|
print("::error::Project not found. Unable to create project card.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Locate the column by name
|
# Locate the column by name
|
||||||
|
@ -31,7 +31,7 @@ def create_project_card(github_repo, project_name, project_column_name, pull_req
|
||||||
break
|
break
|
||||||
|
|
||||||
if not column:
|
if not column:
|
||||||
print("::warning::Project column not found. Unable to create project card.")
|
print("::error::Project column not found. Unable to create project card.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create a project card for the pull request
|
# Create a project card for the pull request
|
||||||
|
|
|
@ -20,7 +20,7 @@ def create_project_card(github_repo, project_name, project_column_name, pull_req
|
||||||
break
|
break
|
||||||
|
|
||||||
if not project:
|
if not project:
|
||||||
print("::warning::Project not found. Unable to create project card.")
|
print("::error::Project not found. Unable to create project card.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Locate the column by name
|
# Locate the column by name
|
||||||
|
@ -31,7 +31,7 @@ def create_project_card(github_repo, project_name, project_column_name, pull_req
|
||||||
break
|
break
|
||||||
|
|
||||||
if not column:
|
if not column:
|
||||||
print("::warning::Project column not found. Unable to create project card.")
|
print("::error::Project column not found. Unable to create project card.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create a project card for the pull request
|
# Create a project card for the pull request
|
||||||
|
|
Loading…
Reference in a new issue