Commit Graph

34 Commits

Author SHA1 Message Date
Jamie Tanna cbd174e128 docs: add a "deep dive" on environment variables (#43243)
As part of recent work around environment variable handling, it's clear
we should provide more user-facing documentation on how environment
variables are handled, and which are passed to child processes by
default.

We can create a "deep dive" page for this, with an autogenerated list of
the environment variables in `basicEnvVars` that are always passed to
child processes, if they're set.

We can also point self-hosted administrators and users alike to the
options they have to control this, too.

With help from GPT-4.1 for case-insensitive sorting.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>
2026-05-29 15:09:28 +00:00
Jamie Tanna a462e4ec3b refactor(docs): don't use an end for autogenerated docs (#43242)
* refactor(docs): don't use an `end` for autogenerated docs

As part of #42910, we wanted to avoid needing a "begin" and "end" to
each of our autogenerated docs replacements.

While looking into it, we're not actually using the "end" for anything,
so we can instead refactor this to be a single-line replacement.

To simplify the code and docs, we can remove this. At the point we need
this again, we can re-add the functionality.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! Merge remote-tracking branch 'origin/HEAD' into chore/no-replaceStop

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-05-13 15:49:00 +00:00
RahulGautamSingh 68cc0f27b2 docs(config/options): add supportsTemplating field (#41859)
* supportsTemplating field

* fix ci issue

* fix ci issue

* move tip below table

* apply suggestions

* docs: show list of options that support templating

* jsodc explanations for internal fields

* add test to ensure no option that applies template.compile() missed supportsTemplating=true

* apply review suggestions

* fix bad merge

* add filePatterns and commands to the list
2026-05-12 06:45:51 +00:00
RahulGautamSingh 214e1da38d feat(config): allow template fields in allowedVersions (#38922)
* handlebars: regsiter add helper

* allow template fields in allowedVersions

* fix test

* fix doc example

* remove comments

* Apply Suggestions

* use empty object instead of undefined

* template(helpers/add): handle undefined/null

* Apply Suggestions

* Apply suggestion from @RahulGautamSingh

* Apply suggestion from @RahulGautamSingh

* fix conflict

* remove unused function

* fix lint issue

* fix test

* Update docs/usage/configuration-options.md

Co-authored-by: Anne Stellingwerf <1637358+astellingwerf@users.noreply.github.com>

* prettier

* throw error if invalid inputs used

---------

Co-authored-by: Anne Stellingwerf <1637358+astellingwerf@users.noreply.github.com>
2025-12-11 14:52:15 +00:00
Michael Kriese f4b569a595 docs(templates/replace): needs double backslash to escape dot (#39261) 2025-11-12 09:17:00 +00:00
Anne Stellingwerf cf7997ad62 chore: validate all handlebars helpers are documented (#38932)
* ci: validate all Handlebars helpers are documented

* ci: validate all Handlebars helpers are documented

* chore: validate all handlebars helpers are documented

* chore: validate all handlebars helpers are documented
2025-11-02 12:15:10 +00:00
Amund Tenstad f55b480ebe feat: add decodeBase64 handlebars helper (#36660)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-06-23 18:29:36 +00:00
Greg M bfff982eb3 docs: fix typos in documentation (#33982)
Co-authored-by: greg <gmyers@gitlab.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-02-02 05:48:00 +00:00
Aleksandr Mezin f7530157c5 feat(template): add lookupArray and distinct helpers (#30618)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-19 14:05:35 +00:00
Sebastian Poxhofer 2a74013dfc feat(templates): add split helper function (#30673)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-11 06:51:44 +00:00
Sebastian Poxhofer d4fd86265e docs(templates): order alphabetically (#30674) 2024-08-09 06:02:35 +00:00
Yohei Ueki d77d03b849 feat(template): add toJSON, toArray and toObject helpers (#30633)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-08 12:02:32 +00:00
Juan Carlos Blanco Delgado e4020c118e feat: adding includes helper for templating (#28148) 2024-03-27 19:23:17 +00:00
Roman 2438616996 feat(templating): adds encodeBase64 handlebars helper (#26197)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-12-11 14:18:49 +00:00
Alexandre Morignot b6a53d878e docs(templates): replace helper uses its argument as a regex (#26014) 2023-11-28 16:36:29 +00:00
HonkingGoose 76c9c63417 docs: use simple words (#23989) 2023-08-22 14:07:21 +02:00
HonkingGoose 71d082d16f docs: use relative URLs in more places (#22516) 2023-05-31 15:52:30 +00:00
William Boman bf0f7e2b82 feat(template): add equals helper (#21385) 2023-04-09 05:24:04 +00:00
Marek Grzenkowicz 2cd10769f2 feat(template): use environment variables in templates (#19301) 2023-01-03 10:55:41 +00:00
William Boman aecfcdbb3c feat(templates): add decodeURIComponent helper (#19616) 2022-12-31 09:25:06 +00:00
Guillaume Berche d9f06d8d99 docs: Refine list of fields supporting handlebars templates (#17943) 2022-09-23 20:29:54 +03:00
Michael Kriese b24d796623 feat: defer commitBody compile (#17108)
* feat(changelogs): defer commitBody compilation

* fix(changelogs): embed to upgrade instead of branch config

* feat: defer `commitBody` compilation

* Update lib/workers/repository/update/branch/index.spec.ts

* fix: wrong logJSON position

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-11 20:27:13 +00:00
IKEDA Sho 2c087e86f7 feat(template): add lowercase Handlebars helper (#15212) 2022-04-21 09:26:24 +00:00
HonkingGoose 5a52b04c96 docs: replace contain(s) with has or have (#14692) 2022-03-16 14:50:20 +01:00
HonkingGoose ad62caec9e docs(templates): fix code example (#13813) 2022-01-25 18:27:45 +00:00
HonkingGoose 01689f90dc docs: update autogenerate comment (#13488) 2022-01-11 15:25:14 +00:00
HonkingGoose cc016ac14c docs: add encodeURIComponent, replace handlebars helpers (#12672) 2022-01-11 10:50:48 +00:00
Marina 7770888184 feat: Add 'and', 'or' and 'containsString' to handlebar helpers (#13341) 2022-01-06 15:24:42 +00:00
Michael Kriese e4c938b7a5 docs: release as asset (#11429)
* docs: prepare release as asset

* chore: cleanup

* fix: wrong extension

* fix: wrong logger

* fix: wrong path

* chore: clean and create tmp

* chore: fix types

* fix: update generation

* Update .github/workflows/build.yml

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/datasource/types.ts

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2021-12-09 21:12:49 +01:00
markussiebert c80c7f3d0c feat: add stringToPrettyJSON handlebars function (#12643) 2021-11-14 19:49:05 +00:00
HonkingGoose fa98e475e7 docs: tidy up template fields documentation (#7992) 2020-12-13 23:32:55 +01:00
HonkingGoose d5cb72fb14 docs: add description front-matter to templates.md (#7733) 2020-11-16 09:07:23 +01:00
HonkingGoose 32dd490672 docs: use one sentence per line (#7625) 2020-11-02 09:52:37 +01:00
Rhys Arkins 40b6269ac6 docs: add templates.md 2020-04-07 09:23:41 +02:00