Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ Sentry is the debugging platform that helps every developer detect, trace, and f
- [Code](https://github.com/getsentry/sentry)
- [Transifex](https://explore.transifex.com/getsentry/sentry/) (Translate
Sentry\!)

asdfas
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally committed test text in README

Low Severity

Random text asdfas was added to the end of the README.md file. This appears to be test/debug content that was accidentally included, especially given the PR title "chore: This is a test". This meaningless text will be visible to anyone viewing the repository's README.

Fix in Cursor Fix in Web

15 changes: 14 additions & 1 deletion src/sentry/integrations/github/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,20 @@ def __call__(self, event: Mapping[str, Any], **kwargs: Any) -> None:

repos = repos.all()

for repo in repos.exclude(status=ObjectStatus.HIDDEN):
repos_to_process = repos.exclude(status=ObjectStatus.HIDDEN)
if not repos_to_process.exists():
logger.info(
"github.webhook.no_repository_for_event",
extra={
"event_type": github_event.value,
"repository_id": event.get("repository", {}).get("id"),
"repository_full_name": event.get("repository", {}).get("full_name"),
"action": event.get("action"),
},
)
return

for repo in repos_to_process:
self.update_repo_data(repo, event)
self._handle(
github_event=github_event,
Expand Down
4 changes: 2 additions & 2 deletions src/sentry/seer/code_review/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def extract_github_info(
"github_actor_id": None,
}

repository = event.get("repository", {})
repository = event.get("repository") or {}
if repository:
if owner := repository.get("owner", {}).get("login"):
if owner := (repository.get("owner") or {}).get("login"):
result["github_owner"] = owner
if repo_name := repository.get("name"):
result["github_repo_name"] = repo_name
Expand Down
Loading