Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ repositories {
}

apply plugin: 'com.android.application'
apply plugin: 'com.apollographql.android'

if (isPlaystore) {
apply plugin: 'io.fabric'
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
android:exported="false"
android:theme="@style/BottomSheetLightTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activities.ReviewChangesActivity"
android:exported="false"
android:theme="@style/BottomSheetLightTheme"
android:windowSoftInputMode="stateHidden" />
<activity android:name=".activities.FileViewerActivity"
android:exported="false"
android:configChanges="orientation|screenSize" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mutation AddPullRequestReviewCommentMutation(
$pullRequestReviewId: ID!,
$commitOID: GitObjectID,
$body: String!,
$path: String,
$position: Int,
$inReplyTo: ID
) {
addPullRequestReviewComment(input: {
pullRequestReviewId: $pullRequestReviewId,
commitOID: $commitOID,
body: $body,
path: $path,
position: $position,
inReplyTo: $inReplyTo
}) {
comment {
body
}
}
}
13 changes: 13 additions & 0 deletions app/src/main/graphql/com/gh4a/AddPullRequestReviewMutation.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mutation AddPullRequestReviewMutation(
$pullRequestId: ID!,
$comments: [DraftPullRequestReviewComment]!
) {
addPullRequestReview(input: {
pullRequestId: $pullRequestId,
comments: $comments
}) {
pullRequestReview {
id
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
query PullRequestPendingReviewQuery(
$owner: String!,
$repo: String!,
$prNumber: Int!
) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
id
reviews(states: PENDING, first: 1) {
nodes {
id
}
}
}
}
}
Loading