Skip to content

Commit 814b8c2

Browse files
authored
[YS-49] chore: CI 스크립트 작성 및 PR 오토 템플릿 추가 (#7)
* feat: add ci script * feat: add pr auto template script * style: update comment content
1 parent 2101be6 commit 814b8c2

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/ci-backend.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI with Gradle
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
29+
- name: Build with Gradle
30+
run: ./gradlew clean build
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Pull Request 오토 템플릿 추가"
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
7+
jobs:
8+
update_pr_templates:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: tzkhan/pr-update-action@v2 # https://github.com/tzkhan/pr-update-action
12+
with:
13+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14+
base-branch-regex: 'dev'
15+
head-branch-regex: 'ys-\d+' # Branch에서 Ticket Regex
16+
title-template: '[%headbranch%] ' # PR Title Prefix 템플릿 (티켓 번호) (ex: [YS-1234] ~ )
17+
body-template: | # PR Body suffix 템플릿 (지라 링크)
18+
## 🔗 Jira 티켓
19+
20+
---
21+
https://yappsocks.atlassian.net/browse/%headbranch%
22+
body-update-action: 'suffix'

0 commit comments

Comments
 (0)