-
Notifications
You must be signed in to change notification settings - Fork 2
testing remote workflow #66
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
base: main
Are you sure you want to change the base?
Conversation
|
Warning Rate limit exceeded@kans has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 53 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughUpdated a unit test in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
Comment |
8cee67d to
2efab9d
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
.github/workflows/ci.yamlis excluded by none and included by none
📒 Files selected for processing (1)
pkg/client/service_account_test.go(1 hunks)
ab9e643 to
7b5a037
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
.github/workflows/ci.yamlis excluded by none and included by none
📒 Files selected for processing (1)
pkg/client/service_account_test.go(1 hunks)
| name: "almost service account but different domain", | ||
| email: "test@serviceaccount.atlassian.org", | ||
| expected: false, | ||
| expected: true, | ||
| }, |
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.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Find the isServiceAccount function implementation
ast-grep --pattern $'func isServiceAccount($$$) $_ {
$$$
}'Repository: ConductorOne/baton-jira
Length of output: 249
Fix incorrect test expectation: email with .org domain should return false.
The isServiceAccount() implementation (pkg/client/client.go:37) checks: strings.HasSuffix(email, "@serviceaccount.atlassian.com"). This only accepts emails with the .com domain.
The test email test@serviceaccount.atlassian.org uses .org, so it will not match and isServiceAccount() returns false. The test expectation must be changed back to false, not true. The test case name "almost service account but different domain" correctly reflects this intent.
🤖 Prompt for AI Agents
In pkg/client/service_account_test.go around lines 44 to 47, the test case
"almost service account but different domain" incorrectly expects true for email
"test@serviceaccount.atlassian.org"; update the expected value to false so the
test aligns with isServiceAccount() which only matches
"@serviceaccount.atlassian.com". Ensure the test assertion uses the corrected
expected boolean.
pkg/client/service_account_test.go
Outdated
| }, | ||
| } | ||
|
|
||
| a := 2 |
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.
Remove the unused variable.
The local variable a is declared but never used. This is dead code that should be removed.
Apply this diff to remove the unused variable:
- a := 2📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| a := 2 |
🤖 Prompt for AI Agents
In pkg/client/service_account_test.go around line 49, there is an unused local
variable declaration "a := 2" that should be removed; delete that line so the
test file no longer contains the dead variable and re-run tests to ensure no
other references to "a" exist.
7b5a037 to
9e36515
Compare
Summary by CodeRabbit
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.