Repository navigation
fix(lint): guard provider merge member calls - #1635
Merged
SaulMoro merged 1 commit intoOct 31, 2026
Merged
Conversation
SaulMoro
approved these changes
Oct 31, 2026
SaulMoro
left a comment
Collaborator
There was a problem hiding this comment.
This was generated by AI during triage.
Approving. teamai/no-provider-merge now flags member .merge() and .accept() calls, which closes that part of the gap left when the old scan moved into lint. The plugin flags the pattern on this head and not on main, the repository has no existing hits, and lint is green.
- [P3 nit] The member check also matches a property read and a schema
.merge(); no provider code does either today. - [P2 non-blocking, not from this PR] Identifiers are matched exactly (
^(?:auto_?merge|merge_when_pipeline_succeeds|mergePullRequest)$), so names such asenablePullRequestAutoMergestill pass, while string literals are matched as substrings. I'm noting it on #1590 rather than asking for it here.
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
teamai/no-provider-merge also rejects member .merge() and .accept() calls in provider and workflow delivery code. Closes Tencent#1602
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to the maintainer feedback on #1602 after #1630 merged the broader provider-merge migration.
teamai/no-provider-mergealready rejects merge command literals and auto-merge identifiers in provider and workflow-delivery code. This PR also rejects direct non-computed member calls such as:octokit.pulls.merge(...)mergeRequest.accept()The guard remains scoped to
src/providers/andsrc/workflow/pr-delivery.ts.Verification
npm run typecheck: passedgit diff --check: passednpm run lintran Oxlint successfully with 0 warnings / 0 errors, then failed in the unrelated, already-stale documentation checks on this main snapshot (generated tool-support and workflow-guide assertions). This PR does not touch documentation or the check script.Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.
Closes #1602