You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

alm-integration.ts 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2022 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. import { Dict } from './types';
  21. export interface AzureProject {
  22. name: string;
  23. description: string;
  24. }
  25. export interface AzureRepository {
  26. name: string;
  27. projectName: string;
  28. sqProjectKey?: string;
  29. sqProjectName?: string;
  30. }
  31. export interface BitbucketProject {
  32. id: number;
  33. key: string;
  34. name: string;
  35. }
  36. export interface BitbucketRepository {
  37. id: number;
  38. name: string;
  39. projectKey: string;
  40. sqProjectKey?: string;
  41. slug: string;
  42. }
  43. export interface BitbucketCloudRepository {
  44. uuid: number;
  45. name: string;
  46. projectKey: string;
  47. sqProjectKey?: string;
  48. slug: string;
  49. workspace: string;
  50. }
  51. export type BitbucketProjectRepositories = Dict<{
  52. allShown: boolean;
  53. repositories: BitbucketRepository[];
  54. }>;
  55. export interface GithubOrganization {
  56. key: string;
  57. name: string;
  58. }
  59. export interface GithubRepository {
  60. id: string;
  61. key: string;
  62. name: string;
  63. url: string;
  64. sqProjectKey: string;
  65. }
  66. export interface GitlabProject {
  67. id: string;
  68. name: string;
  69. pathName: string;
  70. pathSlug: string;
  71. sqProjectKey?: string;
  72. sqProjectName?: string;
  73. slug: string;
  74. url: string;
  75. }