Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Noahnc committed Oct 27, 2023
1 parent 87782fd commit 48b8e29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/action_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "GitHub Action integration test"
permissions:
contents: write
pull-requests: write
repository-projects: read

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion infrapatch/action/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main(debug: bool, default_registry_domain: str, registry_secrets_string: str
raise Exception(f"Error pushing to remote: {result.stderr}")

token = Auth.Token(github_token)
github = Github(token)
github = Github(auth=token)
repo = github.get_repo(repository_name)
pull = repo.get_pulls(state='open', sort='created', base=head_branch, head=target_branch)
if pull.totalCount != 0:
Expand Down

0 comments on commit 48b8e29

Please sign in to comment.