(ctx context.Context, tag string)
| 143 | } |
| 144 | |
| 145 | func (m projectFS) GitTag(ctx context.Context, tag string) error { |
| 146 | var prefix string |
| 147 | if m.skipGit { |
| 148 | prefix = "[skip] " |
| 149 | } |
| 150 | m.logger.Printf(prefix+"git tag: '%s'", tag) |
| 151 | if m.dryRun || m.skipGit { |
| 152 | return nil |
| 153 | } |
| 154 | if err := gitTag(ctx, tag); err != nil { |
| 155 | return err |
| 156 | } |
| 157 | if !m.noPropagate && !m.dryRun { |
| 158 | return gitPushTags(ctx) |
| 159 | } |
| 160 | return nil |
| 161 | } |
| 162 | |
| 163 | func (m projectFS) GitCommit(ctx context.Context, commit string) error { |
| 164 | if !m.dryRun && m.beforeCommitHook != nil { |
nothing calls this directly
no test coverage detected