Skip to content

Commit

Permalink
status check
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Oct 17, 2024
1 parent b0f9982 commit 664b4ce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tools/pycafe/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

pr.create_issue_comment("Foo bar")

# # Define the deployment status
# state = "success" # Options: 'error', 'failure', 'pending', 'success'
# description = "Test out this PR on a PyCafe environment"
# context = "PyCafe"

# # Create the status on the commit
# commit = repo.get_commit(commit_sha)
# commit.create_status(state=state)#, target_url=url, description=description, context=context)
# print(f"Deployment status added to commit {commit_sha}")
# Define the deployment status
state = "success" # Options: 'error', 'failure', 'pending', 'success'
description = "Test out this PR on a PyCafe environment"
context = "PyCafe"

# Create the status on the commit
commit = repo.get_commit(commit_sha)
commit.create_status(state=state)#, target_url=url, description=description, context=context)
print(f"Deployment status added to commit {commit_sha}")

0 comments on commit 664b4ce

Please sign in to comment.