Skip to content

Commit

Permalink
add request body annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeyeonling committed Jul 10, 2024
1 parent 7796b62 commit f060004
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/cholog/github/GithubApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
name = "github",
Expand All @@ -26,6 +27,6 @@ PullRequestMergeResult mergePullRequest(
@PathVariable("owner") String owner,
@PathVariable("repo") String repository,
@PathVariable("pull_number") int pullNumber,
PullRequestMergeRequest mergeRequest
@RequestBody PullRequestMergeRequest mergeRequest
);
}
12 changes: 12 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@ cholog:
commands:
pr-merge:
channel-id:
allow-organizations:
- next-step
allow-repositories:
- java-ladder-func-playground
- java-calculator-unit-playground
- java-racingcar-simple-playground
- java-lotto-clean-playground
- spring-basic-roomescape-playground
- spring-roomescape-playground
disallow-branches:
- main
- master

0 comments on commit f060004

Please sign in to comment.