Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Comment regular expression is fragile #29

@ripla

Description

@ripla

In some comments in our repository the comments regexp in comments.go fails to match at all, and sync fails since fields is empty.

As a ugly quickfix I had to add

if len(fields) != 5 {
		log.Debug("Failed to update JIRA comment for ", jIssue.ID)
		return nil
	}

To UpdateComment to make sync work. Also writing the config to home failed on macOS, but worked when I specified a full file path. I can add a separate issue about that if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions