Add ability to filter by commit messages in workflows
C
Cam Saul
Extending https://circleci.com/docs/2.0/workflows/#using-contexts-and-filtering-in-your-workflows to also support enabling or disabling certain workflows by commit messages would be EXTREMELY useful!
CCI-I-581
V
VesterDE
For rapid prototyping, it is extremely useful to be able to say
skip-tests
in a commit message, and have the build ready in a fraction of the time.T
Tset No
+1
K
Kristian Gerardsson
Really need this! :/
A
Andrey Ilyunin
Agreed.
I need to filter-out specific workflows unless my commit message contains some specific substring.
For example:
...workflows: version: 2 all: jobs: - build - test - deploy - update_api_docs filters: commit: only: /[update_api_docs]/
Currently, it is possible to complete this using git tags, but it feels incorrect for me to use such git tags.
And I'm required to do this kind of workaround:
...- run: name: Generate and publish API documentation command: | last_commit="$(git log -1 --pretty=%B | cat | grep update_api_docs)" if [[ ${last_commit} ==
[update_api_docs]
]] then # Generate and publish API docs fiThis is not the way this should work, as it requires all the preparation to be completed (such as "Spin up Environment").
T
Tunghsiao Liu
Vote for this feature along withhttps://ideas.circleci.com/ideas/CCI-I-763, these should be very helpful to control tests like e2e and visual testing conditionally.
I
Izak P
Agreed! Want to ignore test jobs for any commits that contain "hotfix" for instance, but still run our build / deploy pipeline
C
Cristina Grant
I agree, it would be a nice feature to have!
D
Daniil Ryzhkov
Would also be helpful to filter certain jobs