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.

ws-projectbranches.proto 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2016 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.projectbranch;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "ProjectBranches";
  22. option optimize_for = SPEED;
  23. import "ws-commons.proto";
  24. // WS api/project_branches/list
  25. message ListWsResponse {
  26. repeated Branch branches = 1;
  27. }
  28. // WS api/project_branches/show
  29. message ShowWsResponse {
  30. optional Branch branch = 1;
  31. }
  32. message Branch {
  33. optional string name = 1;
  34. optional bool isMain = 2;
  35. optional sonarqube.ws.commons.BranchType type = 3;
  36. // Merge branch is only present for short living branch
  37. optional string mergeBranch = 4;
  38. optional Status status = 5;
  39. optional bool isOrphan = 6;
  40. optional string analysisDate = 7;
  41. }
  42. message Status {
  43. // Quality gate status is only present for long living branch
  44. optional string qualityGateStatus = 1;
  45. // Merge bugs, vulnerabilities and codeSmell are only present for short living branch
  46. optional int64 bugs = 2;
  47. optional int64 vulnerabilities = 3;
  48. optional int64 codeSmells = 4;
  49. }