-
Notifications
You must be signed in to change notification settings - Fork 0
Setup an experimental SMACS repository to allow tooling scripts testing #19
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: develop
Are you sure you want to change the base?
Conversation
./gradlew clean build | ||
./gradlew build |
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.
the clean
task is unnecessary and will slow down build time
@@ -38,6 +38,7 @@ fragment IssueFragment on Issue { | |||
# No need to get all pages as issues don't realistically have >100 | |||
connectedPrs(first: 5) { | |||
nodes { | |||
id |
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.
PR id is needed to add / remove a connection to an issue
src/main/kotlin/zenhub/Pipeline.kt
Outdated
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.
the pipeline ids were hardcoded to our main zenhub board, which was problematic when we wanted to switch to using the test board for e2e / integration tests. ideally our github-zenhub-sdk code is agnostic to which board is being used, so this has been moved to ziro-cli
@Test | ||
fun whenGetIssuesByPipelineThenAtLeastZeroIssues() { | ||
val issues = zenHubClient.getIssuesByPipeline(Pipeline.MERGE_READY) | ||
|
||
if (issues.isNotEmpty()) { | ||
assertTrue(issues[0].issueFragment.number > 0) | ||
} else { | ||
assertNotNull(issues) | ||
} | ||
} | ||
|
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.
this test isn't really usefull... it's not even a unit test (not fully mocked)
No description provided.