Skip to content

Commit

Permalink
Merge pull request #1 from mona-actions/amenocal/fix-empty-releasebody
Browse files Browse the repository at this point in the history
return original release body if failure for any reason
  • Loading branch information
amenocal authored Jul 10, 2024
2 parents 9ca0168 + ea396f2 commit 4752227
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion internal/mapping/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ModifyReleaseBody(releaseBody *string, filePath string) (*string, error) {
// Load handle map from file
handleMap, err := loadHandleMap(filePath)
if err != nil {
return nil, err
return releaseBody, err //return the original release body if an error occurs
}

// Replace old handles with new handles
Expand Down
1 change: 0 additions & 1 deletion pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func SyncReleases() {
if err != nil {
pterm.Error.Printf("Error modifying release body: %v", err)
}

// Create release api call
newRelease, err := api.CreateRelease(release)
if err != nil {
Expand Down

0 comments on commit 4752227

Please sign in to comment.