Skip to content

Commit

Permalink
Ignore prereleases in version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
badgerwithagun committed Oct 8, 2019
1 parent 7a235e3 commit 975d4c0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions orko-ui/src/store/support/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ export default function reduce(
return Immutable.merge(state, { ignoredVersion })
case types.SET_RELEASES:
return Immutable.merge(state, {
releases: action.payload.map(r => ({
name: r.tag_name,
body: r.body
}))
releases: action.payload
.filter(r => !r.prerelease)
.map(r => ({
name: r.tag_name,
body: r.body
}))
})
default:
return state
Expand Down

0 comments on commit 975d4c0

Please sign in to comment.