我需要创建自己的Fastlane操作,以使用自定义过滤器返回git提交消息。
这是数字代码:
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --invert-grep --grep="[Gitlab CI]" --pretty=format:"%ad - %an, %s" --date=short
我需要Fastlane操作来返回它的输出。
我试着在网上找到一些如何创建它的教程,但我找不到任何有用的信息。
我不确定你想做什么,但你看到了吗。。。https://docs.fastlane.tools/actions/changelog_from_git_commits/
在您的通道中使用changelog属性:
changelog = git log $(git describe --tags --abbrev=0)..HEAD --no-merges --invert-grep --grep="[Gitlab CI]" --pretty=format:"%ad - %an, %s" --date=short
3种提供笔记的方法-第二种是解决方案