示例#1
0
 @Transactional
 @Override
 public void save() {
   this.number = nextPullRequestNumber(toProject);
   super.save();
   addNewIssueEvents();
 }
示例#2
0
  /**
   * 새로운 코드 요청으로 기존 코드 요청을 수정한다.
   *
   * @param newPullRequest
   */
  public void updateWith(PullRequest newPullRequest) {
    deleteIssueEvents();

    this.toBranch = newPullRequest.toBranch;
    this.fromBranch = newPullRequest.fromBranch;
    this.title = newPullRequest.title;
    this.body = newPullRequest.body;
    update();

    addNewIssueEvents();
  }