You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minor update from Comvent v0.3, with the following update.
✨ New RegExp Group Support
With v0.3, when Comvent finds a match, it returns a GitHub Action output of found as the value. This worked for most of basic cases, but once you wanted to build more setup, it meant that you had to have very similar entries in Comvent configuration. This also led that GitHub Action definition which uses Comvent to become bloated really quickly, because you need separate if statement for every single match.
This new feature adds support of RegExp "non-named" group for Comvent configuration, allowing you to write a single entry for multiple subcommands.
For example, before v0.4, you needed to have the following Comvent configurations:
There are some limitations in this approach, and some underlying behaviour change.
You can only use the first group as of now. If you provide multiple groups, Comvent does not keep the other groups for further processing.
When the RegExp is a match but the first group is an empty string, Comvent falls back to use the entire line string it used to match against. This is to ensure the truthy-ness is not broken from the v0.3 behaviour.
ℹ️ Note about Comvent Configuration File
Because v0.4 does not have any change to the configuration file setup, Comvent configuration file stays with v0.2.0. This may change in the future, especially at v1 release, but for the time being, please stick to using v0.2.0 for the version, or simply omit the field so that Comvent will default to use the latest available from the version used.
This discussion was created from the release Comvent v0.4.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Minor update from Comvent v0.3, with the following update.
✨ New RegExp Group Support
With v0.3, when Comvent finds a match, it returns a GitHub Action output of
found
as the value. This worked for most of basic cases, but once you wanted to build more setup, it meant that you had to have very similar entries in Comvent configuration. This also led that GitHub Action definition which uses Comvent to become bloated really quickly, because you need separate if statement for every single match.This new feature adds support of RegExp "non-named" group for Comvent configuration, allowing you to write a single entry for multiple subcommands.
For example, before v0.4, you needed to have the following Comvent configurations:
Now, you can bundle them together if you want to make it like a subcommand.
Ref: About RegExp group https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges
NOTE: Known Limitations
There are some limitations in this approach, and some underlying behaviour change.
ℹ️ Note about Comvent Configuration File
Because v0.4 does not have any change to the configuration file setup, Comvent configuration file stays with v0.2.0. This may change in the future, especially at v1 release, but for the time being, please stick to using v0.2.0 for the version, or simply omit the field so that Comvent will default to use the latest available from the version used.
This discussion was created from the release Comvent v0.4.0.
Beta Was this translation helpful? Give feedback.
All reactions