mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Fixing support for nested position arguments (#3246)
This commit is contained in:
parent
4544e9b299
commit
764459737c
@ -209,7 +209,8 @@ test:live:setup:
|
||||
when: always
|
||||
- if: $CI_COMMIT_BRANCH == "next" || $CI_COMMIT_BRANCH =~ /^pr-[0-9]+$/
|
||||
when: manual
|
||||
needs: []
|
||||
needs:
|
||||
- build
|
||||
allow_failure: false
|
||||
variables:
|
||||
GITLAB_PERSONAL_ACCESS_TOKEN: gitbeaker
|
||||
|
||||
@ -8,7 +8,7 @@ import type {
|
||||
Sudo,
|
||||
} from '../infrastructure';
|
||||
import type {
|
||||
DiscussionNotePositionSchema,
|
||||
DiscussionNotePositionOptions,
|
||||
DiscussionNoteSchema,
|
||||
DiscussionSchema,
|
||||
} from '../templates/ResourceDiscussions';
|
||||
@ -34,7 +34,7 @@ export interface CommitDiscussions<C extends boolean = false> extends ResourceDi
|
||||
commitId: number,
|
||||
body: string,
|
||||
options?: {
|
||||
position?: DiscussionNotePositionSchema;
|
||||
position?: DiscussionNotePositionOptions;
|
||||
commitId?: string;
|
||||
createdAt?: string;
|
||||
} & Sudo &
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import type { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
||||
import { ResourceDiscussions } from '../templates';
|
||||
import type {
|
||||
DiscussionNotePositionOptions,
|
||||
DiscussionNotePositionSchema,
|
||||
DiscussionNoteSchema,
|
||||
DiscussionSchema,
|
||||
@ -21,14 +22,14 @@ export interface MergeRequestDiscussionNoteSchema extends DiscussionNoteSchema {
|
||||
position?: DiscussionNotePositionSchema;
|
||||
}
|
||||
|
||||
export type DiscussionNotePositionOptions = DiscussionNotePositionSchema & {
|
||||
line_range?: {
|
||||
export type MergeRequestDiscussionNotePositionOptions = DiscussionNotePositionOptions & {
|
||||
lineRange?: {
|
||||
start?: {
|
||||
line_code: string;
|
||||
lineCode: string;
|
||||
type: 'new' | 'old';
|
||||
};
|
||||
end?: {
|
||||
line_code: string;
|
||||
lineCode: string;
|
||||
type: 'new' | 'old';
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user