-
-
Notifications
You must be signed in to change notification settings - Fork 2
β¨ Open GitLab merge request page #15
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
Conversation
WalkthroughThe recent update introduces a new optional method Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- hosting_service/mod.ts (1 hunks)
- hosting_service/services/github_com.ts (1 hunks)
- hosting_service/services/gitlab_com.ts (1 hunks)
- pull_request_url.ts (6 hunks)
Additional comments: 5
hosting_service/mod.ts (1)
- 34-36: The addition of the
extractPullRequestIDmethod to theHostingServiceinterface is a valuable enhancement for extending pull request handling capabilities. It's important to ensure that implementing classes are aware of this new optional method and handle its absence appropriately.Consider adding documentation or guidelines for implementers on how to effectively utilize this new method, especially in cases where extracting a PR ID is not feasible or relevant.
hosting_service/services/github_com.ts (1)
- 54-59: The implementation of
extractPullRequestIDfor GitHub is well-aligned with the objectives of enhancing pull request handling. It's tailored to GitHub's merge commit message format, which is appropriate.Consider adding a comment detailing the expected format of the commit message this function is designed to parse. This can aid future maintainers in understanding the context and limitations of this implementation.
hosting_service/services/gitlab_com.ts (2)
- 44-51: The implementation of
getPullRequestURLfor GitLab correctly follows GitLab's merge request URL structure, enabling direct access to merge request pages.- 54-59: The implementation of
extractPullRequestIDfor GitLab is well-suited for parsing GitLab's specific merge request commit messages.Consider adding a comment detailing the expected format of the commit message this function is designed to parse. This can help future maintainers understand the specific context and limitations of this implementation.
pull_request_url.ts (1)
- 59-70: > π NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [45-83]
The integration of the
hostingServiceparameter intogetPullRequestContainsand the subsequent use of theextractPullRequestIDmethod are well-implemented, aligning with the PR's objectives to enhance pull request handling.It would be beneficial to add tests covering these changes to ensure the new functionality works as expected across different hosting services. Would you like assistance in creating these tests?
|
@kitagry CI was disabled and there was a lint issue so could you rebase from the current |
e5809eb to
3b28b95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- hosting_service/mod.ts (1 hunks)
- hosting_service/services/github_com.ts (1 hunks)
- hosting_service/services/gitlab_com.ts (1 hunks)
- pull_request_url.ts (6 hunks)
Files skipped from review as they are similar to previous changes (4)
- hosting_service/mod.ts
- hosting_service/services/github_com.ts
- hosting_service/services/gitlab_com.ts
- pull_request_url.ts
3b28b95 to
d643548
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- hosting_service/mod.ts (1 hunks)
- hosting_service/services/github_com.ts (1 hunks)
- hosting_service/services/gitlab_com.ts (1 hunks)
- pull_request_url.ts (6 hunks)
Files skipped from review as they are similar to previous changes (4)
- hosting_service/mod.ts
- hosting_service/services/github_com.ts
- hosting_service/services/gitlab_com.ts
- pull_request_url.ts
|
Hmm, snapshot test is not correct π€ If you don't mind, I will rewrite exact value test instead of snapshot test. Do you think about this? |
What do you mean "not correct"? Did you update snapshot? |
|
I'm sorry, I misunderstand π I'll update snapshot. π |
d643548 to
2339c8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
hosting_service/__snapshots__/mod_test.ts.snapis excluded by:!**/*.snap
Files selected for processing (4)
- hosting_service/mod.ts (1 hunks)
- hosting_service/services/github_com.ts (1 hunks)
- hosting_service/services/gitlab_com.ts (1 hunks)
- pull_request_url.ts (6 hunks)
Files skipped from review as they are similar to previous changes (4)
- hosting_service/mod.ts
- hosting_service/services/github_com.ts
- hosting_service/services/gitlab_com.ts
- pull_request_url.ts
|
Hi @lambdalisue . Could you review this? |
|
Thanks π |
Add GitLab pull request URL
Summary by CodeRabbit
pull_request_url.tscode to incorporate the newhostingServiceparameter for extracting Pull Request IDs.