diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..43f53bc --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,13 @@ +## Dependabot 업데이트 PR + +이 PR은 Dependabot에 의해 자동으로 생성되었습니다. + +### 체크리스트 + +- [ ] 변경된 패키지의 변경 로그를 확인했습니까? +- [ ] 주요 변경 사항이 있는 경우, 애플리케이션에 미치는 영향을 검토했습니까? +- [ ] 필요한 경우, 관련 테스트를 실행하고 통과했습니까? + +### 추가 정보 + +(필요한 경우 여기에 추가 정보를 기재해 주세요) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c7a1324 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' + commit-message: + prefix: 'sync' + open-pull-requests-limit: 5 + target-branch: 'main' + source: + repo: 'kode-krew/meta-test-be' + branch: 'main' diff --git a/.github/workflows/dependabot-pr-notification.yml b/.github/workflows/dependabot-pr-notification.yml new file mode 100644 index 0000000..88f1a17 --- /dev/null +++ b/.github/workflows/dependabot-pr-notification.yml @@ -0,0 +1,18 @@ +name: Dependabot PR Notification + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + notify: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Notify team about Dependabot PR + uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + text: 'New Dependabot PR opened: ${{ github.event.pull_request.html_url }}' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml deleted file mode 100644 index 60ed875..0000000 --- a/.github/workflows/sync-upstream.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Sync with Upstream - -on: - schedule: - - cron: '0 * * * *' # 매 시간마다 체크 - push: - branches: - - main - -jobs: - sync: - runs-on: ubuntu-latest - - steps: - - name: Checkout Fork - uses: actions/checkout@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - path: fork - - - name: Add Upstream - run: | - cd fork - git remote add upstream https://github.com/kode-krew/meta-test-be.git - git fetch upstream - git checkout main - git merge upstream/main --no-commit --no-ff - git push origin main - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'Sync with upstream' - branch: sync-upstream - base: main - title: 'Sync with upstream' - body: 'This PR syncs the fork with upstream repository'