Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(AIP 133-135): fix false positive in 133-135 #1335

Merged
merged 2 commits into from
Feb 16, 2024
Merged

fix(AIP 133-135): fix false positive in 133-135 #1335

merged 2 commits into from
Feb 16, 2024

Conversation

andrei-scripniciuc
Copy link
Contributor

When a resource name Operation, the linter assumes that any method returning google.longrunning.Operation is actually returning the resource type: https://github.com/googleapis/api-linter/blob/main/rules/aip0133/aip0133.go#L52C1-L61C2

This change ignores the heuristic that assumes the response message contains the resource name, if the response is google.longrunning.Operation.

@andrei-scripniciuc andrei-scripniciuc requested a review from a team as a code owner February 16, 2024 00:48
@andrei-scripniciuc andrei-scripniciuc changed the title fix[AIP 133-135]: fix false positive in 133-135 fix(AIP 133-135): fix false positive in 133-135 Feb 16, 2024
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

rules/internal/utils/type_name.go Outdated Show resolved Hide resolved
Co-authored-by: Noah Dietz <noahdietz@users.noreply.github.com>
@andrei-scripniciuc andrei-scripniciuc enabled auto-merge (squash) February 16, 2024 16:34
@andrei-scripniciuc andrei-scripniciuc merged commit d79af9c into googleapis:main Feb 16, 2024
6 checks passed
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.

2 participants