Commit 5a73d3b9 authored by Michael Kriese's avatar Michael Kriese
Browse files

chore: add lint and use conventionalcommits (renovate-bot/renovate-runner!352)

parent 574fd05a
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -12,6 +12,23 @@ renovate:dry-run:
    - if: '$CI_COMMIT_BRANCH'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

lint:
  image: renovate/node:16.13.2@sha256:dcbbcf37dd8a6de7a80020dd44197afc6564a1a7dd2a50fb089be1d5d259b3f3
  stage: test
  cache:
    key:
      files:
        - package-lock.json
    paths:
      - .npm/
  before_script:
    - npm ci --cache .npm --prefer-offline
  script:
    - npm run prettier
  rules:
    - if: '$CI_COMMIT_BRANCH'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

release:
  image: renovate/node:16.13.2@sha256:dcbbcf37dd8a6de7a80020dd44197afc6564a1a7dd2a50fb089be1d5d259b3f3
  stage: release

.npmrc

0 → 100644
+1 −0
Original line number Diff line number Diff line
save-exact = true
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
    "@semantic-release/release-notes-generator",
    "@semantic-release/gitlab"
  ],
  "preset": "conventionalcommits",
  "branches": [
    {
      "name": "main"
+17 −17
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ This will mean no new projects will be onboarded.
However, we recommend you apply an `autodiscoverFilter` value like the following so that the bot does not run on any stranger's project it gets invited to: `RENOVATE_EXTRA_FLAGS`: `--autodiscover=true --autodiscover-filter=group1/*`.
Checkout renovate [docs](https://docs.renovatebot.com/gitlab-bot-security/) for more information about gitlab security.

If you wish for your bot to run against *every* project which the `RENOVATE_TOKEN` PAT has access to, and onboard any projects which don't yet have a config, then add this variable: `RENOVATE_EXTRA_FLAGS`: `--autodiscover=true --onboarding=true --autodiscover-filter=group1/*`.
If you wish for your bot to run against _every_ project which the `RENOVATE_TOKEN` PAT has access to, and onboard any projects which don't yet have a config, then add this variable: `RENOVATE_EXTRA_FLAGS`: `--autodiscover=true --onboarding=true --autodiscover-filter=group1/*`.

If you wish to manually specify which projects that your bot runs again, then add this variable with a space-delimited set of project names: `RENOVATE_EXTRA_FLAGS`: `group1/repo5 user3/repo1`.

+45 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
    "": {
      "devDependencies": {
        "@semantic-release/gitlab": "7.0.4",
        "conventional-changelog-conventionalcommits": "4.6.3",
        "prettier": "2.5.1",
        "semantic-release": "18.0.1"
      }
    },
@@ -850,6 +852,20 @@
        "node": ">=10"
      }
    },
    "node_modules/conventional-changelog-conventionalcommits": {
      "version": "4.6.3",
      "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
      "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
      "dev": true,
      "dependencies": {
        "compare-func": "^2.0.0",
        "lodash": "^4.17.15",
        "q": "^1.5.1"
      },
      "engines": {
        "node": ">=10"
      }
    },
    "node_modules/conventional-changelog-writer": {
      "version": "5.0.1",
      "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz",
@@ -5859,6 +5875,18 @@
        "node": ">=4"
      }
    },
    "node_modules/prettier": {
      "version": "2.5.1",
      "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
      "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
      "dev": true,
      "bin": {
        "prettier": "bin-prettier.js"
      },
      "engines": {
        "node": ">=10.13.0"
      }
    },
    "node_modules/process-nextick-args": {
      "version": "2.0.1",
      "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -7685,6 +7713,17 @@
        "q": "^1.5.1"
      }
    },
    "conventional-changelog-conventionalcommits": {
      "version": "4.6.3",
      "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
      "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
      "dev": true,
      "requires": {
        "compare-func": "^2.0.0",
        "lodash": "^4.17.15",
        "q": "^1.5.1"
      }
    },
    "conventional-changelog-writer": {
      "version": "5.0.1",
      "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz",
@@ -11361,6 +11400,12 @@
        }
      }
    },
    "prettier": {
      "version": "2.5.1",
      "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
      "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
      "dev": true
    },
    "process-nextick-args": {
      "version": "2.0.1",
      "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
Loading