Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
92fa8153
Commit
92fa8153
authored
Dec 07, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(changelog): fix assoc array syntax for zsh 5.4.2 and older (#9495)
Also fixed a call to a defunct display:type-header function in displaying breaking changes.
parent
5a888ff4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
changelog.sh
tools/changelog.sh
+12
-12
No files found.
tools/changelog.sh
View file @
92fa8153
...
@@ -8,16 +8,16 @@
...
@@ -8,16 +8,16 @@
#* and the display string of such type
#* and the display string of such type
local
-A
TYPES
local
-A
TYPES
TYPES
=(
TYPES
=(
[
build]
=
"Build system"
build
"Build system"
[
chore]
=
"Chore"
chore
"Chore"
[
ci]
=
"CI"
ci
"CI"
[
docs]
=
"Documentation"
docs
"Documentation"
[
feat]
=
"Features"
feat
"Features"
[
fix]
=
"Bug fixes"
fix
"Bug fixes"
[
perf]
=
"Performance"
perf
"Performance"
[
refactor]
=
"Refactor"
refactor
"Refactor"
[
style]
=
"Style"
style
"Style"
[
test
]=
"Testing"
test
"Testing"
)
)
#* Types that will be displayed in their own section,
#* Types that will be displayed in their own section,
...
@@ -274,8 +274,8 @@ function display-release {
...
@@ -274,8 +274,8 @@ function display-release {
((
$#breaking
!=
0
))
||
return
0
((
$#breaking
!=
0
))
||
return
0
case
"
$output
"
in
case
"
$output
"
in
raw
)
display:type-header
"BREAKING CHANGES"
;;
raw
)
fmt
:header
"BREAKING CHANGES"
3
;;
text|md
)
display:type-header
"⚠ BREAKING CHANGES"
;;
text|md
)
fmt
:header
"⚠ BREAKING CHANGES"
3
;;
esac
esac
local hash
subject
local hash
subject
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment