Skip to content

Commit d0fa04e

Browse files
committed
Fix: Condition
1 parent ad9e093 commit d0fa04e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`1.5.0...main`][1.5.0...main].
1010

11+
## [`1.5.1`][1.5.1]
12+
13+
For a full diff see [`1.5.0...1.5.1`][1.5.0...1.5.1].
14+
15+
### Added
16+
17+
- Fixed a condition in `github/pull-request/add-label-based-on-branch-name` ([#87]), by [@localheinz]
18+
1119
## [`1.5.0`][1.5.0]
1220

1321
For a full diff see [`1.4.1...1.5.0`][1.4.1...1.5.0].
@@ -104,6 +112,7 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
104112
[1.4.0]: https://github.com/ergebnis/.github/releases/tag/1.4.0
105113
[1.4.1]: https://github.com/ergebnis/.github/releases/tag/1.4.1
106114
[1.5.0]: https://github.com/ergebnis/.github/releases/tag/1.5.0
115+
[1.5.1]: https://github.com/ergebnis/.github/releases/tag/1.5.1
107116

108117
[ca7f15d...1.0.0]: https://github.com/ergebnis/.github/compare/ca7f15d...1.0.0
109118
[1.0.0...1.1.0]: https://github.com/ergebnis/.github/compare/1.0.0...1.1.0
@@ -115,7 +124,8 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
115124
[1.3.2...1.4.0]: https://github.com/ergebnis/.github/compare/1.3.2...1.4.0
116125
[1.4.0...1.4.1]: https://github.com/ergebnis/.github/compare/1.4.0...1.4.1
117126
[1.4.1...1.5.0]: https://github.com/ergebnis/.github/compare/1.4.1...1.5.0
118-
[1.5.0...main]: https://github.com/ergebnis/.github/compare/1.5.0...main
127+
[1.5.0...1.5.1]: https://github.com/ergebnis/.github/compare/1.5.0...1.5.1
128+
[1.5.0...main]: https://github.com/ergebnis/.github/compare/1.5.1...main
119129

120130
[#47]: https://github.com/ergebnis/.github/pull/47
121131
[#48]: https://github.com/ergebnis/.github/pull/48
@@ -132,5 +142,6 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
132142
[#80]: https://github.com/ergebnis/.github/pull/80
133143
[#82]: https://github.com/ergebnis/.github/pull/82
134144
[#87]: https://github.com/ergebnis/.github/pull/87
145+
[#96]: https://github.com/ergebnis/.github/pull/96
135146

136147
[@localheinz]: https://github.com/localheinz

actions/github/pull-request/add-label-based-on-branch-name/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ runs:
6666
6767
const matches = process.env.PULL_REQUEST_BRANCH_NAME.match(new RegExp('^([^/]+)\/'));
6868
69-
if (!matches instanceof Array) {
69+
if (!Array.isArray(matches)) {
7070
return;
7171
}
7272

0 commit comments

Comments
 (0)