Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/release 1.2.1 -> release merge #35

Merged
merged 178 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
d0b78a8
Merge pull request #79 from YAPP-Github/release/release
Heonbyeong Feb 9, 2024
a42460e
Merge pull request #81 from YAPP-Github/release/release
Heonbyeong Feb 12, 2024
5de4d6b
Merge pull request #83 from YAPP-Github/develop
Heonbyeong Feb 13, 2024
c55ab6f
Merge pull request #85 from YAPP-Github/develop
Heonbyeong Feb 13, 2024
a552aa1
Merge pull request #91 from YAPP-Github/release/release
Heonbyeong Feb 21, 2024
a103345
Update README.md
Heonbyeong Jun 25, 2024
7b68ac3
Update README.md
Heonbyeong Jun 27, 2024
5585147
Create android-ci.yml
Heonbyeong Jul 3, 2024
d39559b
Merge remote-tracking branch 'origin/release/release'
jhg3410 Jul 6, 2024
f6db51c
chore: ci/cd yaml 작성 (초안)
Heonbyeong Jul 23, 2024
2c466e9
test: workflow
Heonbyeong Jul 23, 2024
e38028e
test: workflow
Heonbyeong Jul 23, 2024
60c9541
chore: local.properties 생성
Heonbyeong Jul 23, 2024
fe2186d
test: lint 파이프라인 제거
Heonbyeong Jul 23, 2024
f555ccf
test: fastfile 자격 증명 추가
Heonbyeong Jul 23, 2024
9e5c828
test: , 누락
Heonbyeong Jul 23, 2024
c3f1e55
test: , 누락
Heonbyeong Jul 23, 2024
21d9c61
test: 환경변수 문자열 철;
Heonbyeong Jul 23, 2024
f006240
test: keystore path fix
Heonbyeong Jul 23, 2024
c45df99
test: keystore 확장자 fix
Heonbyeong Jul 23, 2024
ed7c655
test: keystore 확장자 수정
Heonbyeong Jul 23, 2024
a33f882
test: working directory 지정
Heonbyeong Jul 23, 2024
1fc373e
test: path fix
Heonbyeong Jul 23, 2024
2a5c0aa
test: add json key
Heonbyeong Jul 23, 2024
eefbf53
test: json key path fix
Heonbyeong Jul 23, 2024
5ffc407
test: env 설정
Heonbyeong Jul 23, 2024
600bd1b
test: working directory remove
Heonbyeong Jul 23, 2024
786b6da
test: app file fix
Heonbyeong Jul 23, 2024
7be7876
test: fix
Heonbyeong Jul 23, 2024
a67f85a
test: env
Heonbyeong Jul 23, 2024
c587158
test: path
Heonbyeong Jul 24, 2024
be520d8
test: appfile path
Heonbyeong Jul 24, 2024
6b23a03
test: package name refactor
Heonbyeong Jul 24, 2024
e877375
test: increment version code
Heonbyeong Jul 24, 2024
d7845c6
test: lane
Heonbyeong Jul 24, 2024
f5b7894
test: version code
Heonbyeong Jul 24, 2024
e4c6f9f
test: version code
Heonbyeong Jul 24, 2024
12a951c
test: add plugin
Heonbyeong Jul 24, 2024
a7c89df
test: install dependency
Heonbyeong Jul 24, 2024
65ea101
test: git path
Heonbyeong Jul 24, 2024
d46f5c0
test: git add
Heonbyeong Jul 24, 2024
6ee1fd0
test: gradle path
Heonbyeong Jul 24, 2024
dc323fb
test: add permission
Heonbyeong Jul 25, 2024
6e94950
RELEASE INCREMENT VERSION CODE
Jul 25, 2024
a522ee9
test: rm path
Heonbyeong Jul 25, 2024
399dbb7
test: release skip
Heonbyeong Jul 25, 2024
7608c88
test: finally
Heonbyeong Jul 26, 2024
79caf6b
chore: target branch set
Heonbyeong Jul 26, 2024
b011299
chore: fastlane upload param add
Heonbyeong Jul 26, 2024
714d844
chore: ignore keystore
Heonbyeong Jul 26, 2024
422a747
test: distribution
Heonbyeong Aug 1, 2024
69d3af9
test: workflow command fix
Heonbyeong Aug 1, 2024
cfcd00e
test: run gem install
Heonbyeong Aug 1, 2024
c5f6db3
test: get_lastest_release add credentials
Heonbyeong Aug 1, 2024
e221fc8
test: firebase api enabled
Heonbyeong Aug 1, 2024
f576c83
test: env 수정
Heonbyeong Aug 1, 2024
7f6df96
test: env
Heonbyeong Aug 1, 2024
04f9b04
test: env
Heonbyeong Aug 1, 2024
f8356bc
test: firebase 이관
Heonbyeong Aug 1, 2024
38d7a4d
test: firebase credentials 수정
Heonbyeong Aug 1, 2024
d72058a
test: get started distribution
Heonbyeong Aug 1, 2024
400a0de
test: get started distribution
Heonbyeong Aug 1, 2024
087dd0b
test: add test track
Heonbyeong Aug 1, 2024
f4514ed
test: slack
Heonbyeong Aug 1, 2024
0cb73c3
test: webhook 변경
Heonbyeong Aug 1, 2024
94db1c5
test: apk
Heonbyeong Aug 1, 2024
417571e
test: increment code
Heonbyeong Aug 1, 2024
dedf84f
test: increment code
Heonbyeong Aug 1, 2024
6d0acab
test: firebase credentials
Heonbyeong Aug 1, 2024
2ddf034
test: groups file path
Heonbyeong Aug 2, 2024
32b80da
test: tester groups fix
Heonbyeong Aug 2, 2024
635db37
test: param fix
Heonbyeong Aug 2, 2024
744e6dc
test: version code increment
Heonbyeong Aug 2, 2024
8ceb2a7
test: versionName
Heonbyeong Aug 2, 2024
e9b50a5
test: get version name plugin
Heonbyeong Aug 2, 2024
053caee
test: get version name
Heonbyeong Aug 2, 2024
d63fe51
chore: 내부 배포 자동화
Heonbyeong Aug 2, 2024
0b5dc08
chore: workflow target branch fix
Heonbyeong Aug 2, 2024
4f207dd
chore: version name
Heonbyeong Aug 2, 2024
6e2248a
chore: remove firebase credentials json
Heonbyeong Aug 4, 2024
ceae195
moneymong-485 fix: Custom Popup 으로 기존 이슈(흰색줄) 대응
jhg3410 Aug 4, 2024
9582d99
test: prod
Heonbyeong Aug 5, 2024
899a61b
chore: redo
Heonbyeong Aug 5, 2024
2681724
Merge pull request #17 from MONEYMONG/feature/moneymong-485-온보딩-흰색줄
jhg3410 Aug 5, 2024
4eee7c0
Merge pull request #18 from MONEYMONG/feature/moneymong-500-ci-cd-구축
Heonbyeong Aug 7, 2024
91aa2d5
Merge pull request #20 from MONEYMONG/feature/moneymong-500-ci-cd-구축
Heonbyeong Aug 7, 2024
d851399
feat: gradle
Heonbyeong Aug 7, 2024
10be77f
feat: event tracker 개발
Heonbyeong Aug 7, 2024
9308c97
Feat.소속 삭제 기능 구현
eunseo0105 Aug 7, 2024
d787edc
Fix: Agency.kt 임시 파일
eunseo0105 Aug 7, 2024
19f70e3
feat: event tracking
Heonbyeong Aug 7, 2024
a4dc6a8
Fix: 희직님 리뷰 반영
eunseo0105 Aug 10, 2024
8aa8fa2
MONEYMONG-494 feat: selection disabled 타입 추가
jhg3410 Jul 25, 2024
8f48362
MONEYMONG-494 feat: 소속 타입에 '기타 모임' 추가
jhg3410 Jul 25, 2024
b300d5f
MONEYMONG-494 feat: 대학 정보 유무를 소속 찾기 -> 소속 등록으로 전달
jhg3410 Jul 25, 2024
34af18b
MONEYMONG-494 feat: 대학 정보 유무에 따른 등록 가능한 소속 제한 기능 적용
jhg3410 Jul 26, 2024
09c4668
MONEYMONG-494 feat: 내 대학 정보 가져오기 api 통신 구현 및 University 관련 UseCase 분리
jhg3410 Jul 29, 2024
2b29873
MONEYMONG-494 feat: 소속 검색 화면에서 대학 정보 유무 판단
jhg3410 Jul 29, 2024
b29932f
MONEYMONG-494 fix: 소속 검색 화면, 대학 정보 유무 판단 기준 null 로 수정
jhg3410 Jul 31, 2024
3fb5f9d
MONEYMONG-494 feat: 불필요한 todo 제거
jhg3410 Jul 31, 2024
3e1b472
Merge pull request #23 from MONEYMONG/epic/moneymong-124-소속
jhg3410 Aug 11, 2024
6b3ea3f
MONEYMONG-495 feat: 마이몽 학교 정보가 없을 시, 정보 없음 표시
jhg3410 Jul 31, 2024
a2d1a45
MONEYMONG-495 feat: 마이몽 학교 정보 중앙 정렬
jhg3410 Jul 31, 2024
6cf8100
MONEYMONG-495 feat: 마이몽 스크롤 가능성 부여 및 이름에 "님" suffix 추가
jhg3410 Jul 31, 2024
9c2e018
Merge pull request #24 from MONEYMONG/epic/moneymong-72-마이몽
jhg3410 Aug 11, 2024
06f9b7b
Merge pull request #21 from MONEYMONG/feature/moneymong-496-소속-삭제
eunseo0105 Aug 12, 2024
8fa390f
Merge branch 'develop' into epic/moneymong-123-장부
eunseo0105 Aug 12, 2024
c7b0df1
Merge pull request #26 from MONEYMONG/epic/moneymong-123-장부
eunseo0105 Aug 12, 2024
b36a9ef
moneymong-323 feat: data layer 에 카카오 로그인 관련 로직 제거 및 PostAccessTokenUs…
jhg3410 Jul 10, 2024
d1d1727
moneymong-323 feat: 카카오 로그인 관련 로직 구현
jhg3410 Jul 10, 2024
1b7a1b7
moneymong-323 feat: 카카오 로그인 로직 view 와 연결
jhg3410 Jul 10, 2024
9f37a71
moneymong-323 refactor: LoginRemoteDataSource 내부 로직 분리
jhg3410 Jul 11, 2024
2ef253a
moneymong-323 refactor: 불필요한 코드 삭제 및 패키지 네이밍 변경
jhg3410 Jul 13, 2024
a97e4dc
moneymong-323 chore: kakao sdk module version up (2.5.0 -> 2.20.3)
jhg3410 Jul 13, 2024
3461743
Feat: 대학 정보 없음 api 연동
eunseo0105 Aug 4, 2024
f8473ac
Feat: 대학 정보 없을 시에도 schoolInfoExist true로 설정
eunseo0105 Aug 5, 2024
5d0097c
Fix: schoolInfoExist -> schoolInProvied 네이밍 변경
eunseo0105 Aug 7, 2024
89325c0
Fix: 희직님 리뷰 반영
eunseo0105 Aug 11, 2024
f3b1722
Merge branch 'develop' into epic/moneymong-122-로그인-회원가입
eunseo0105 Aug 12, 2024
8399c38
Merge pull request #25 from MONEYMONG/epic/moneymong-122-로그인-회원가입
eunseo0105 Aug 12, 2024
45b2f9f
INCREMENT VERSION CODE
Heonbyeong Aug 12, 2024
66d6c8a
INCREMENT VERSION CODE
Heonbyeong Aug 12, 2024
fe6107c
INCREMENT VERSION CODE
Heonbyeong Aug 12, 2024
bcda67e
INCREMENT VERSION CODE
Heonbyeong Aug 12, 2024
cbfdd89
chore: version code reset
Heonbyeong Aug 12, 2024
58778c4
Merge pull request #27 from MONEYMONG/feature/moneymong-501-ga-트래킹
Heonbyeong Aug 12, 2024
58fdc01
fix: onclickItem 추가 (누락)
eunseo0105 Aug 13, 2024
c96b7bf
chore: version up
Heonbyeong Aug 13, 2024
5d6ce84
INCREMENT VERSION CODE
Aug 13, 2024
3f3a71f
feat: 마이몽 피드백 ui 개발
Heonbyeong Aug 15, 2024
d1c2a62
feat: 소속 찾기 피드백 ui 개발
Heonbyeong Aug 15, 2024
85ca1c8
feat: 소속 찾기 empty screen padding 수정
Heonbyeong Aug 16, 2024
5d54fd4
feat: 의견 제안 클릭 이벤트 적용
Heonbyeong Aug 16, 2024
39125a4
Update Fastfile
Heonbyeong Aug 18, 2024
f788a27
fix: 회원가입 화면 text 수정
eunseo0105 Aug 19, 2024
614e401
INCREMENT VERSION CODE
Aug 19, 2024
177c4d4
Merge pull request #28 from MONEYMONG/release/release-1.2.0
eunseo0105 Aug 19, 2024
e525636
Merge pull request #29 from MONEYMONG/release/release
eunseo0105 Aug 20, 2024
4205584
chore: auto reviewer
Heonbyeong Aug 21, 2024
c3ba147
chore: auto assign action version
Heonbyeong Aug 21, 2024
1cf686a
chore: random reviewer config 수정
Heonbyeong Aug 21, 2024
22bfe8c
chore: add permissions
Heonbyeong Aug 21, 2024
67c6f69
chore: pr 권한으로 변경
Heonbyeong Aug 21, 2024
5a38de8
chore: get label
Heonbyeong Aug 21, 2024
80ef224
chore: pr url print
Heonbyeong Aug 21, 2024
d75d3bd
chore: send slack target opened pr
Heonbyeong Aug 21, 2024
af60545
chore: set-output 제거
Heonbyeong Aug 21, 2024
0ae7e54
chore: js github env 수정
Heonbyeong Aug 21, 2024
208f20d
chore: slack webhook type add
Heonbyeong Aug 21, 2024
4e2dcd6
chore: slack verification add
Heonbyeong Aug 21, 2024
9f28863
chore: fix json payload
Heonbyeong Aug 21, 2024
e8ec90e
chore: top-level add text
Heonbyeong Aug 21, 2024
2446a3a
chore: env 수정
Heonbyeong Aug 21, 2024
d5c9aeb
chore: env 수정
Heonbyeong Aug 21, 2024
d20c53e
chore: env 수정
Heonbyeong Aug 21, 2024
c1d405f
chore: env fix
Heonbyeong Aug 22, 2024
886d998
chore: get reviewer
Heonbyeong Aug 22, 2024
ef8264f
chore: fetch pr reviewer
Heonbyeong Aug 22, 2024
5221094
chore: fetch pr reviewer
Heonbyeong Aug 22, 2024
3f3282f
chore: get pr created at
Heonbyeong Aug 22, 2024
f363f7f
chore: calculate due date
Heonbyeong Aug 22, 2024
fb72aad
chore: calculate due date
Heonbyeong Aug 22, 2024
6353955
feat: 희직님 리뷰 반영
Heonbyeong Aug 23, 2024
42eeed3
Merge pull request #31 from MONEYMONG/feature/moneymong-502-피드백-링크-추가
Heonbyeong Aug 23, 2024
106ba69
chore: keystore ignore
Heonbyeong Sep 10, 2024
db9d096
chore: keystore ignore
Heonbyeong Sep 10, 2024
3bf755e
MONEYMONG-508 feat: MDSButton corner radius, Icon Size, TextStyle 변경
jhg3410 Sep 21, 2024
4c3cb70
MONEYMONG-508 feat: MDSNavigationBar 그림자 제거
jhg3410 Sep 21, 2024
3adf8a6
MONEYMONG-508 feat: 대학 정보가 없을 때의 반환값 변경(Null -> "")
jhg3410 Sep 21, 2024
5f6ecc1
Merge pull request #32 from MONEYMONG/feature/MONEYMONG-508
jhg3410 Sep 24, 2024
3812739
Release/release 1.2.1 -> develop merge (#33)
Heonbyeong Sep 27, 2024
84c9a73
Feature/moneymong 509 장부 내역 기간별 조회 이슈 수정 (#34)
Heonbyeong Oct 1, 2024
7bd794b
chore: version code up
Heonbyeong Oct 1, 2024
ae0ce1a
INCREMENT VERSION CODE
Oct 1, 2024
731ee55
chore: version code up
Heonbyeong Oct 1, 2024
e86d4f5
fix: debug keystore
Heonbyeong Oct 1, 2024
31323e1
INCREMENT VERSION CODE
Oct 1, 2024
7e9c742
fix: decode debug keystore
Heonbyeong Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- Heonbyeong
- jhg3410
- eunseo0105

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1
# A list of assignees, overrides reviewers if set
# assignees:
# - assigneeA

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
# numberOfAssignees: 2

# A list of keywords to be skipped the process that add reviewers if pull requests include it
# skipKeywords:
# - wip
122 changes: 122 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Android CI

on:
push:
branches:
- 'release/**'

jobs:
release_deploy_job:
if: github.ref == 'refs/heads/release/release'
runs-on: macos-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Create API Certificate
run: |
echo "sdk.dir=$ANDROID_SDK_ROOT" > ./local.properties
echo "native_app_key=\"${{ secrets.NATIVE_APP_KEY }}\"" >> ./local.properties
echo "CLOVA_OCR_DOCUMENT_SECRET=\"${{ secrets.CLOVA_OCR_DOCUMENT_SECRET }}\"" >> ./local.properties
echo "CLOVA_OCR_DOCUMENT_BASEURL=\"${{ secrets.CLOVA_OCR_DOCUMENT_BASEURL }}\"" >> ./local.properties

- name: Clean Build
run: ./gradlew clean

- name: Decode Service Account Key
run: |
echo "${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_KEY }}" | base64 --decode > ./app/service_account_key.json

- name: Decode Keystore File
run: |
echo "${{ secrets.KEYSTORE_FILE }}" | base64 --decode > ./app/moneymong_keystore.jks

- name: Install Dependencies
run: |
gem install bundler
bundle install

- name: Build & Deploy Android release
env:
SERVICE_ACCOUNT_KEY: ${{ github.workspace }}/app/service_account_key.json
KEYSTORE_FILE: ${{ github.workspace }}/app/moneymong_keystore.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
CWD: ${{ github.workspace }}
run: bundle exec fastlane deploy

- name: Remove Credential
run: |
rm ./app/service_account_key.json
rm ./app/moneymong_keystore.jks
rm ./local.properties

dev_deploy_job:
if: contains(github.ref, 'release-')
runs-on: macos-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Create API Certificate
run: |
echo "sdk.dir=$ANDROID_SDK_ROOT" > ./local.properties
echo "native_app_key=\"${{ secrets.NATIVE_APP_KEY }}\"" >> ./local.properties
echo "CLOVA_OCR_DOCUMENT_SECRET=\"${{ secrets.CLOVA_OCR_DOCUMENT_SECRET }}\"" >> ./local.properties
echo "CLOVA_OCR_DOCUMENT_BASEURL=\"${{ secrets.CLOVA_OCR_DOCUMENT_BASEURL }}\"" >> ./local.properties

- name: Clean Build
run: ./gradlew clean

- name: Decode Service Account Key
run: |
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}" | base64 --decode > ./app/firebase_credentials.json

- name: Decode Keystore File
run: |
echo "${{ secrets.DEBUG_KEYSTORE_FILE }}" | base64 --decode > ./app/debug_keystore.jks

- name: Install Dependencies
run: |
gem install bundler
bundle install

- name: Build & Deploy Distribute
env:
FIREBASE_CREDENTIALS: ${{ github.workspace }}/app/firebase_credentials.json
DEBUG_KEYSTORE_FILE: ${{ github.workspace }}/app/debug_keystore.jks
DEBUG_KEYSTORE_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_PASSWORD }}
DEBUG_KEYSTORE_KEY_ALIAS: ${{ secrets.DEBUG_KEYSTORE_KEY_ALIAS }}
DEBUG_KEYSTORE_KEY_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_KEY_PASSWORD }}
APP_ID: ${{ secrets.FIREBASE_TB_APP_ID }}
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
CWD: ${{ github.workspace }}
run: bundle exec fastlane distribute

- name: Remove Credential
run: |
rm ./local.properties
rm ./app/firebase_credentials.json
173 changes: 173 additions & 0 deletions .github/workflows/auto-reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
name: Auto Reviewer

on:
pull_request:
branches:
- 'develop'
types: [ opened, reopened ]

jobs:
assign-reviewer:
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- name: Assign Reviewers
uses: kentaro-m/[email protected]
with:
configuration-path: '.github/reviewer.yml'

- name: Get PR Labels
run: echo "PR_LABELS=${{ github.event.pull_request.labels[0].name }}" >> $GITHUB_ENV

- name: Get PR URL
run: echo "PR_URL=${{ github.event.pull_request.html_url }}" >> $GITHUB_ENV

- name: Get PR Author
run: echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV

- name: Get Assigned Reviewer
id: assigned_reviewers_id
uses: actions/github-script@v6
with:
script: |
const { data: pullRequest } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number
});
const reviewers = pullRequest.requested_reviewers.map(reviewer => reviewer.login).join(',');
core.setOutput('reviewers', reviewers)
# highest: until 24hours
# high: until 48hours
# medium: until 72hours
# low: until 120hours
# lowest: until 168hours
- name: Calculate Review Due Date
id: calculate_due_date_id
uses: actions/github-script@v6
with:
script: |
const createdAt = new Date(process.env.CREATED_AT);
const label = process.env.PR_LABELS;
const hour_abs = 60 * 60 * 1000;
let dueDate;
if (label.includes("highest")) {
dueDate = new Date(createdAt.getTime() + (24 * hour_abs));
} else if (label.includes("high")) {
dueDate = new Date(createdAt.getTime() + (48 * hour_abs));
} else if (label.includes("medium")) {
dueDate = new Date(createdAt.getTime() + (72 * hour_abs));
} else if (label.includes("low")) {
dueDate = new Date(createdAt.getTime() + (120 * hour_abs));
} else if (label.includes("lowest")) {
dueDate = new Date(createdAt.getTime() + (168 * hour_abs));
} else {
core.setFailed(`Not Matched Labels.`);
}
const year = dueDate.getFullYear();
const month = dueDate.getMonth() + 1;
const day = dueDate.getDate();
const hours = dueDate.getHours();
const period = hours >= 12 ? '오후' : '오전';
const formattedHour = hours % 12 || 12;
const formattedTime = `${year}년 ${month}월 ${day}일 ${period} ${formattedHour}시`;
core.setOutput('due_date', formattedTime);
env:
PR_LABELS: ${{ env.PR_LABELS }}
CREATED_AT: ${{ github.event.pull_request.created_at }}

- name: Get Slack Member ID
id: slack_id
uses: actions/github-script@v6
with:
script: |
const reviewer = process.env.PR_REVIEWER
let selectedId;
if (reviewer === "Heonbyeong") {
selectedId = process.env.SLACK_ID_ABH;
} else if (reviewer === "jhg3410") {
selectedId = process.env.SLACK_ID_JHG;
} else if (reviewer === "eunseo0105") {
selectedId = process.env.SLACK_ID_KES;
} else {
core.setFailed(`Not Found Author.`);
}
core.setOutput('selected_id', selectedId);
env:
PR_REVIEWER: ${{ steps.assigned_reviewers_id.outputs.reviewers }}
SLACK_ID_ABH: ${{ secrets.SLACK_ID_ABH }}
SLACK_ID_JHG: ${{ secrets.SLACK_ID_JHG }}
SLACK_ID_KES: ${{ secrets.SLACK_ID_KES }}

- name: Save Slack Member ID to Github ENV
run: echo "SLACK_MEMBER_ID=${{ steps.slack_id.outputs.selected_id }}" >> $GITHUB_ENV

- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ env.SLACK_CHANNEL_ID }}
payload: |
{
"text": "새로운 PR이 등록되었습니다! 👾\n마감일 전까지 늦지 않게 리뷰를 완료하고, 해당 스레드에 공유해주세요!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "새로운 PR이 등록되었습니다! 👾",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "마감일 전까지 늦지 않게 리뷰를 완료하고, 해당 스레드에 공유해주세요!\n<${{ env.PR_URL }}>"
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*PR Author*\n${{ env.PR_AUTHOR }}"
},
{
"type": "mrkdwn",
"text": "*Reviewer*\n<@${{ env.SLACK_MEMBER_ID }}>"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Priority*\n${{ env.PR_LABELS }}"
},
{
"type": "mrkdwn",
"text": "*Due Date*\n${{ env.DUE_DATE }}"
}
]
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_PR_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_ANDROID_CHANNEL_ID }}
DUE_DATE: ${{ steps.calculate_due_date_id.outputs.due_date }}
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@
.externalNativeBuild
.cxx
local.properties
keystore.properties
keystore.properties

# Keystore Files
*.jks
*.keystore
/keystore/

*.json
4 changes: 2 additions & 2 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
source "https://rubygems.org"

gem "fastlane"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading
Loading