getsentry / getsentry/sentry

CODEOWNERS file doesn't sync from GitLab Integration

Open
#64,345 5 comments 0 reactions 1 assignee Claimed by @vartec View on GitHub
Bug Product Area: Settings - Integrations
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### Environment

SaaS ([https://sentry.io/]())

### Steps to Reproduce

1. Follow [the docs]() to set up the GitLab integration
2. Add a repository to your GitLab integration in Sentry and set up code and user mappings
3. Go to your chosen project's settings > Ownership Rules > Import CODEOWNERS
4. In the same page, make sure to set "Prioritize Auto Assignment" to "Auto-assign to issue owner" and toggle on "Sync changes from CODEOWNERS"
5. Throw an error from your app that creates a new issue in Sentry

### Expected Result

The new issue is assigned to the user indicated by the CODEOWNERS file.

### Actual Result

No user is auto assigned to [the issue](). Upon further investigation, it looks like the CODEOWNERS file [appears synced]() but clicking on "View" brings up an empty file.

![image](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/0d09cb00-7664-4a61-8bcb-6e65119ebe52/739daae0-4d05-4643-996a-047bc0fe5e00?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi8wZDA5Y2IwMC03NjY0LTRhNjEtOGJjYi02ZTY1MTE5ZWJlNTIvNzM5ZGFhZTAtNGQwNS00NjQzLTk5NmEtMDQ3YmMwZmU1ZTAwIiwiaWF0IjoxNzY5MjEwNzY5LCJleHAiOjE4MDA3ODEzMjl9.lSZNScFmjENczrfj6Mesk32PFEDGUv2D8TnjDVBhgv0)

Clicking on "View in GitLab redirects to the correctly populated file.

![image](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/2658016d-7db3-4943-ba0c-254b133da9c2/07ca17c6-0435-48a3-ba1e-9e5d23b7ee54?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi8yNjU4MDE2ZC03ZGIzLTQ5NDMtYmEwYy0yNTRiMTMzZGE5YzIvMDdjYTE3YzYtMDQzNS00OGEzLWJhMWUtOWU1ZDIzYjdlZTU0IiwiaWF0IjoxNzY5MjEwNzY5LCJleHAiOjE4MDA3ODEzMjl9.DCT_9U6wqdRv4zoLaxJZAZQ-o_zN9Y2_3ZAEvGZHnxc)

This problem doesn't seem to occur with GitHub CODEOWNERS.

### Product Area

Settings - Integrations

### Link

*No response*

### DSN

*No response*

### Version

*No response*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.