Skip to content

Commit

Permalink
fix: pullrequest posthook message (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico <rainbowstack@gmail.com>
  • Loading branch information
bluebrown authored Aug 26, 2024
1 parent f158a7e commit 71283eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/builtin/starlark/posthook.ado-pr@v1.star
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main(repo, src_branch, dest_branch, title, body, changes, warnings):
print("hook: pr failed: base=" + src_branch + " head=" + dest_branch + " repo=" + repo)
return res.body()

print("github pr created: " + res.json()["url"])
print("pull request created: " + res.json()["url"])
return None

def get_org_proj_repo(url):
Expand Down
2 changes: 1 addition & 1 deletion plugin/builtin/starlark/posthook.gitea-pr@v1.star
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def main(repo, src_branch, dest_branch, title, body, changes, warnings):
print("hook: pr failed: " + url)
return res.body()

print("gitea pr created: " + res.json()["url"])
print("pull request created: " + res.json()["url"])
return None
2 changes: 1 addition & 1 deletion plugin/builtin/starlark/posthook.github-pr@v1.star
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def main(repo, src_branch, dest_branch, title, body, changes, warnings):
print("hook: pr failed: " + url)
return res.body()

print("github pr created: " + res.json()["url"])
print("pull request created: " + res.json()["url"])
return None
4 changes: 2 additions & 2 deletions testdata/kobold.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ decoder = "builtin.dstribution@v1"
[[pipeline]]
name = "azure-devops-stage"
channels = ["ado"]
repo_uri = "$ADO_HOST/kobold-test.git?ref=main&pkg=stage"
repo_uri = "$ADO_HOST/kobold-test?ref=main&pkg=stage"

[[pipeline]]
name = "azure-devops-prod"
channels = ["ado"]
repo_uri = "$ADO_HOST/kobold-test.git?ref=main&pkg=prod"
repo_uri = "$ADO_HOST/kobold-test?ref=main&pkg=prod"
dest_branch = "kobold"
post_hook = "builtin.ado-pr@v1"

0 comments on commit 71283eb

Please sign in to comment.