Skip to content

Do not early return when no relevant code owner exists#40

Merged
orta merged 3 commits intoOSS-Docs-Tools:masterfrom
saschanaz:patch-1
Apr 28, 2024
Merged

Do not early return when no relevant code owner exists#40
orta merged 3 commits intoOSS-Docs-Tools:masterfrom
saschanaz:patch-1

Conversation

@saschanaz
Copy link
Copy Markdown
Contributor

Fixes #39

I'd like to have a test but this doesn't really fit into the existing unit tests.

@saschanaz
Copy link
Copy Markdown
Contributor Author

saschanaz commented Jun 20, 2023

The tests pass locally, what does it mean by unexpected token? How can it happen? 🤔

@orta
Copy link
Copy Markdown
Collaborator

orta commented Jun 21, 2023

Hah, no idea about that jest error - maybe a weird npx issue?

I think I'd prefer if the label code just moves up above the return instead, mainly so that it's still really obvious that it's not going to accidentally do any work in the fn if no users are found

@saschanaz
Copy link
Copy Markdown
Contributor Author

saschanaz commented Jun 21, 2023

I think I'd prefer if the label code just moves up above the return instead, mainly so that it's still really obvious that it's not going to accidentally do any work in the fn if no users are found

Isn't it obvious as the code still returns inside if (!ownersWhoHaveAccessToAllFilesInPR.length)?

@orta
Copy link
Copy Markdown
Collaborator

orta commented Apr 28, 2024

👍🏻

@orta orta merged commit 7c66472 into OSS-Docs-Tools:master Apr 28, 2024
@saschanaz saschanaz deleted the patch-1 branch April 28, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The maintainer assignation doesn't happen if there's no relevant code owner at all

2 participants