diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000000..ca6e285a77 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>hmcts/.github:renovate-config", + "local>hmcts/.github//renovate/automerge-minor" + ], + "automergeSchedule": ["after 8am and before 5pm every weekday"] +} \ No newline at end of file diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index e819f21965..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 7 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 4 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - dependencies -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: > - This issue is being closed automatically as it was stale diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..2047617a10 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,36 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '0 3 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. + stale-pr-message: > + This pull request has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. + stale-issue-label: 'stale' + stale-pr-label: 'stale' + days-before-close: '0' + days-before-stale: '5' + exempt-pr-labels: 'pinned' \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8fdb0dccdb..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -sudo: required - -language: java - -jdk: - - openjdk11 - -services: - - docker -before_cache: -- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock -- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ -before_install: - - curl https://raw.githubusercontent.com/hmcts/reform-api-docs/master/bin/publish-swagger-docs.sh > publish-swagger-docs.sh -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ -script: - - ./gradlew check - - ./gradlew jacocoTestReport -after_success: - - bash <(curl -s https://codecov.io/bash) - - test "$TRAVIS_BRANCH" = "master" && test "$TRAVIS_PULL_REQUEST" = "false" && sh ./publish-swagger-docs.sh diff --git a/renovate.json b/renovate.json deleted file mode 100644 index a40fc64e50..0000000000 --- a/renovate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "gradle-wrapper": { - "enabled": true - }, - "helm-requirements": { - "enabled": true, - "fileMatch": [ - "\\Chart.yaml$" - ], - "aliases": { - "hmctspublic": "https://hmctspublic.azurecr.io/helm/v1/repo/" - } - }, - "extends": [ - "local>hmcts/.github:renovate-config" - ] -}