mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-24 05:12:24 +02:00
Remove unstable/unused Github project support (#8891)
* Remove unstable/unused Github project support Signed-off-by: Andrey Sobolev <haiodo@gmail.com> * Fix unused file Signed-off-by: Andrey Sobolev <haiodo@gmail.com> --------- Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -4,24 +4,12 @@
|
||||
import { ActivityMessage, ActivityMessageViewlet } from '@hcengineering/activity'
|
||||
import { Attachment } from '@hcengineering/attachment'
|
||||
import { Person } from '@hcengineering/contact'
|
||||
import {
|
||||
PersonId,
|
||||
AnyAttribute,
|
||||
AttachedDoc,
|
||||
Class,
|
||||
Data,
|
||||
Doc,
|
||||
Hyperlink,
|
||||
Markup,
|
||||
Mixin,
|
||||
Ref,
|
||||
Timestamp
|
||||
} from '@hcengineering/core'
|
||||
import { AttachedDoc, Class, Data, Doc, Hyperlink, Markup, Mixin, PersonId, Ref, Timestamp } from '@hcengineering/core'
|
||||
import { Asset, IntlString, Metadata, Plugin, plugin } from '@hcengineering/platform'
|
||||
import { Preference } from '@hcengineering/preference'
|
||||
import task, { ProjectTypeDescriptor, TaskStatusFactory, TaskTypeDescriptor } from '@hcengineering/task'
|
||||
import { ToDo } from '@hcengineering/time'
|
||||
import { Component, Issue, Milestone, Project } from '@hcengineering/tracker'
|
||||
import { Component, Issue, Project } from '@hcengineering/tracker'
|
||||
import { AnyComponent } from '@hcengineering/ui'
|
||||
import { PaletteColorIndexes } from '@hcengineering/ui/src/colors'
|
||||
|
||||
@@ -456,59 +444,16 @@ export interface GithubUserInfo extends Doc {
|
||||
avatarUrl?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface GithubFieldMapping {
|
||||
// Platform field
|
||||
_id: Ref<AnyAttribute>
|
||||
name: string
|
||||
_class: Ref<Class<Doc>>
|
||||
|
||||
// Github information
|
||||
githubId: string // It could be fieldName or fieldId
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface GithubProjectSyncData {
|
||||
// Project NodeId
|
||||
projectNodeId?: string
|
||||
projectNumber?: number
|
||||
|
||||
githubProjectName?: string
|
||||
|
||||
// Mapping of all fields in this project.
|
||||
mappings: GithubFieldMapping[]
|
||||
|
||||
// Update mapping
|
||||
githubUpdatedAt?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*
|
||||
* Mixin to ordinary project, to allow github repository mapping into it.
|
||||
*/
|
||||
export interface GithubProject extends Project, GithubProjectSyncData {
|
||||
export interface GithubProject extends Project {
|
||||
integration: Ref<GithubIntegration>
|
||||
|
||||
// A list of mapped repositories we synchronized into this project.
|
||||
repositories: Ref<GithubIntegrationRepository>[]
|
||||
|
||||
// Mixin to store all github custom attributes in
|
||||
mixinClass: Ref<Class<GithubIssue>>
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*
|
||||
* Mixin for milestone to represent a github project for it.
|
||||
*/
|
||||
export interface GithubMilestone extends Milestone, GithubProjectSyncData {
|
||||
// A link to github project.
|
||||
url: Hyperlink
|
||||
}
|
||||
|
||||
export interface GithubPullRequestReviewThread extends Doc {
|
||||
@@ -566,7 +511,6 @@ export default plugin(githubId, {
|
||||
mixin: {
|
||||
GithubIssue: '' as Ref<Mixin<GithubIssue>>,
|
||||
GithubProject: '' as Ref<Mixin<GithubProject>>,
|
||||
GithubMilestone: '' as Ref<Mixin<GithubMilestone>>,
|
||||
GithubComponent: '' as Ref<Mixin<GithubComponent>>,
|
||||
GithubUser: '' as Ref<Mixin<GithubUser>>,
|
||||
GithubTodo: '' as Ref<Mixin<GithubTodo>>
|
||||
|
||||
Reference in New Issue
Block a user