Skip to content
Snippets Groups Projects
  1. Mar 11, 2022
    • Daniel Dehennin's avatar
      refactor(commitlint): new job template but keep compatible job · 17c4187f
      Daniel Dehennin authored
      Using `commitlint` require the users to include `templates/Git.yaml`
      and `extends` the `.git:commitlint` job template.
      
      We keep `templates/Lint/Commitlint.yaml` for backward compatibility.
      
      * templates/Git.yaml: new git related job templates
      
      * templates/Lint/Commitlint.yaml: define `commitlint` with the
        `.git:commitlint` job template for backward compatibility.
      
      * .commitlintrc.yaml: move from JS to YAML.
      17c4187f
  2. Dec 15, 2021
    • Daniel Dehennin's avatar
      docs(commitlint): describe usage of the commitlint job · 8b3749f0
      Daniel Dehennin authored
      Verify formatting of all commit messages in the range
      `$BASE_BRANCH..$CI_COMMIT_SHA`.
      
      USAGE
      =====
      
      include:
        - project: EOLE/infra/ci-tools
          ref: stable
          file: /templates/Rules.yaml
        - project: EOLE/infra/ci-tools
          ref: stable
          file: /templates/Lint/Commitlint.yaml
      
      stages:
        - lint
      
      OPTIONAL VARIABLES
      ==================
      
      - `BASE_BRANCH`: name of the referrence branch, defaults to
        `${CI_DEFAULT_BRANCH}`
      - `COMMITLINT_IMAGE`: name of the `commitlint` docker image to use
      
      REQUIREMENTS
      ============
      
      - The `.not-on-stable` rules template
      - A `lint` stage must be present in your pipeline or it must be
        overriden by the extending job to feet your need.
      
      USED CI VARIABLES
      =================
      
      - `CI_COMMIT_SHA`
      - `CI_DEFAULT_BRANCH`
      8b3749f0
    • Daniel Dehennin's avatar
      feat(commitlint): users can configure the base branch · 612dc3ea
      Daniel Dehennin authored
      Users can override the variable `BASE_BRANCH` in their
      `.gitlab-ci.yml` to select the starting point of the logs to
      validate.
      612dc3ea
    • Daniel Dehennin's avatar
      feat(commitlint): users can configure image with `$COMMITLINT_IMAGE` · bc7f19c3
      Daniel Dehennin authored
      Users can override the variable in their `.gitlab-ci.yml` to select
      another docker image.
      bc7f19c3
    • Daniel Dehennin's avatar
      refactor(commitlint): the upstream extra repository is useless · cdff4abd
      Daniel Dehennin authored
      There is no need to add an upstream repository to access
      `${CI_DEFAULT_BRANCH}` we just neet to fetch all references from
      `origin`.
      
      Avoid the use of `before_script` and `after_script` for users of the
      job to be able to extend it with them.
      cdff4abd
  3. Nov 26, 2021
    • Daniel Dehennin's avatar
      feat(rules): we prefer release naming over production status · b7c0cd0e
      Daniel Dehennin authored
      This make a better distinction between `stable` software and software
      deployed in production.
      
      We define 3 branches:
      - `dev`: new developped features are integrated here, this is the
        default branch
      - `testing`: is a fork of `dev` when we want to prepare the next
        release, this is the branch from where release bugfixes are derived
        and merged back
      - `stable`: is where the `testing` branch is merged to produce a new
        release
      b7c0cd0e
  4. Nov 23, 2021
    • Daniel Dehennin's avatar
      ci(rules): define git-flow style rules · e8e12e8f
      Daniel Dehennin authored
      We define rules to match somewhate a git-flow style workflow to
      activate jobs:
      
      - `.not-on-prod`: on all branches except production
      
      - `.on-branches` : on supporting branches, i.e. everything except
        production and developpment
      
      - `.on-dev`: on developpment branch only
      
      - `.on-prod`: on production branch only
      
      - `.on-release-tag`: on the release tag only
      
      We always exclude pipeline triggered from schedule.
      
      * templates/Rules.yaml: define the new rules templates.
      
      * templates/Lint/Commitlint.yaml (commitlint): execute on all branch
        except production.
      e8e12e8f
    • Daniel Dehennin's avatar
      ci(commitlint): master is not always the repository default branch · 48b9f29c
      Daniel Dehennin authored
      * templates/Lint/Commitlint.yaml (commitlint): use
        `$CI_DEFAULT_BRANCH` as base to calculate the list of commits to check.
      48b9f29c
  5. Oct 20, 2021
Loading