-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation CreateIssuePrConnection($input: CreateIssuePrConnectionInput!) { | ||
createIssuePrConnection(input: $input) { | ||
clientMutationId | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation DeleteIssuePrConnection($input: DeleteIssuePrConnectionInput!) { | ||
deleteIssuePrConnection(input: $input) { | ||
clientMutationId | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. PR id is needed to add / remove a connection to an issue |
||
number | ||
state | ||
htmlUrl | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package zenhub | ||
|
||
import kotlin.test.assertEquals | ||
import kotlin.test.assertNotNull | ||
import kotlin.test.assertTrue | ||
import org.junit.jupiter.api.Test | ||
|
||
|
@@ -15,17 +14,6 @@ class ZenHubClientTest { | |
assertEquals(18004, issue?.issueFragment?.number) | ||
} | ||
|
||
@Test | ||
fun whenGetIssuesByPipelineThenAtLeastZeroIssues() { | ||
val issues = zenHubClient.getIssuesByPipeline(Pipeline.MERGE_READY) | ||
|
||
if (issues.isNotEmpty()) { | ||
assertTrue(issues[0].issueFragment.number > 0) | ||
} else { | ||
assertNotNull(issues) | ||
} | ||
} | ||
|
||
Comment on lines
-18
to
-28
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) |
||
@Test | ||
fun whenGetReleasesForValidRepoThenAtLeastOneRelease() { | ||
val releases = zenHubClient.getReleases(DEFAULT_GITHUB_REPOSITORY_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.
the
clean
task is unnecessary and will slow down build time