Skip to content

Commit

Permalink
feat: add github workflow tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
JinleeJeong committed Jan 12, 2024
1 parent 000590f commit 526a4da
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# auto-assign.yml

# Set to true to add reviewers to pull requests
addReviewers: true

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

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- JinleeJeong
- Bokdol11859

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0

# 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
7 changes: 7 additions & 0 deletions .github/pr-labeler.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'✨ feat': 'feat/*'
'🛠 refactor': 'refactor/*'
'📝 docs': 'docs/*'
'👑 chore': 'chore/*'
'✅ test': 'test/*'
'🎨 style': 'style/*'
'🐛 fix': 'fix/*'
29 changes: 29 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
### Issue Number

close: #

### 작업 내역

> 구현 내용 및 작업 했던 내역
- [x] 작업 내역 1
- [x] 작업 내역 2

### 변경사항

- 의존성 목록

### PR 특이 사항

> PR을 볼 때 주의깊게 봐야하거나 말하고 싶은 점
- 특이 사항 1
- 특이 사항 2

### Checklist

> PR 등록 전 확인할 점
- [ ] PR 제목은 포맷과 내용 둘 다 알맞게 작성되었는가 (e.g., `feat(user): add login page`)
- [ ] assignee가 본인으로 되어있고, label은 PR 주제에 맞게 추가했는가
- [ ] description에 PR에 대해 구체적으로 설명했는가
21 changes: 21 additions & 0 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'

version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## What’s Changed
$CHANGES
**Full Changelog**: https://github.com/musinsa/discovery-frontend/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
19 changes: 19 additions & 0 deletions .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR Labeler
on:
pull_request:
types: [opened, reopened]

permissions:
contents: read

jobs:
pr-labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ secrets.TOKEN }}
configuration-path: .github/pr-labeler.config.yml
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release-drafter/release-drafter@v5
on:
push:
branches:
- main
jobs:
release_draft:
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
# TODO: Uncomment this step when using GitHub Enterprise
#- name: Set GHE_HOST for GitHub Enterprise
# run: echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

- name: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 526a4da

Please sign in to comment.