I've wanted this for a long time, I'm sure others have too.

Git tag task:

Creates and optionally pushes git tags.

Comments

Jon Pugh created an issue. See original summary.

  • Jon Pugh committed 17234f4 on 2949481-git-tag
    Issue #2949481: Add "git tag" task
    
helmo’s picture

Code looks straightforward enough. So +1 in general.

I'm wondering if the 'Force: Reset --hard before tag' checkbox is usefull git tag would as far as I know only affect committed code anyway.

Another thing we might improve is the error handling. In one test the reposerver was read-only. Where I expected an error I got an 'ok' message stating "fatal: could not read Username for 'https://git.example.com': No such device or address"

  • Jon Pugh committed a26949d on 2949481-git-tag
    Issue #2949481: Show warnings if checkout or push does not work.
    
Jon Pugh’s picture

Agreed, the code wasn't catching errors.

Last push fixed that. Both for the checkout and the push. Both fire warnings if they failed, since they only fire if optionally.

helmo’s picture

Status: Needs review » Reviewed & tested by the community

nice, just tried it and now works as expected.

  • Jon Pugh committed 17234f4 on 7.x-3.x
    Issue #2949481: Add "git tag" task
    
  • helmo committed e111db4 on 7.x-3.x authored by Jon Pugh
    Issue #2949481: Show warnings if checkout or push does not work.
    
helmo’s picture

Status: Reviewed & tested by the community » Fixed

merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.