diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 710193ac..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,25 +0,0 @@ -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file -version: 2 -updates: - - package-ecosystem: gomod - directory: / - labels: - - "🤖 Dependencies" - schedule: - interval: daily - groups: - go-modules: - patterns: - - "*" - open-pull-requests-limit: 100 - - package-ecosystem: github-actions - directory: / - labels: - - "🤖 Dependencies" - schedule: - interval: daily - groups: - github-actions: - patterns: - - "*" - open-pull-requests-limit: 100 diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml deleted file mode 100644 index 48492639..00000000 --- a/.github/workflows/cr.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Code Review - -permissions: - contents: read - pull-requests: write - -on: - pull_request: - types: [ opened, reopened, synchronize, labeled ] - -jobs: - test: - if: ${{ contains(github.event.pull_request.labels.*.name, '🚀 Review Ready') }} - runs-on: ubuntu-latest - steps: - - uses: anc95/ChatGPT-CodeReview@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_ENDPOINT: https://api.openai-sb.com/v1 - MODEL: gpt-3.5-turbo - PROMPT: "Below is a code patch, please help me do a brief code review on it. Only answer important bug risks and/or important improvement suggestions, Answer in Chinese and answer must be concisely and short: " diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cd215c7..209da606 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,3 +50,7 @@ build: paths: - $OUTPUT_NAME expire_in: 1 week + +include: + - project: 'renovate-bot/renovate-runner' + file: '/templates/renovate.gitlab-ci.yml' diff --git a/.renovate.yml b/.renovate.yml new file mode 100644 index 00000000..3e1668c5 --- /dev/null +++ b/.renovate.yml @@ -0,0 +1,33 @@ +variables: + RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate + RENOVATE_ENDPOINT: $CI_API_V4_URL + RENOVATE_PLATFORM: gitlab + RENOVATE_ONBOARDING_CONFIG: '{"$$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:base"] }' + RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' + RENOVATE_REPOSITORY_CACHE: 'enabled' + RENOVATE_REQUIRE_CONFIG: 'required' + RENOVATE_ONBOARDING: 'false' + RENOVATE_IGNORE_PR_AUTHOR: 'true' + RENOVATE_EXTENDS: 'github>whitesource/merge-confidence:beta' + RENOVATE_LOG_FILE: renovate-log.ndjson + RENOVATE_LOG_FILE_LEVEL: debug + LOG_LEVEL: info + +default: + cache: + key: ${CI_COMMIT_REF_SLUG}-renovate + paths: + - renovate/cache/renovate/repository/ + +renovate: + stage: deploy + resource_group: production + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' + script: + - renovate $RENOVATE_EXTRA_FLAGS + artifacts: + when: always + expire_in: 1d + paths: + - '$RENOVATE_LOG_FILE' \ No newline at end of file