Commit Graph

81 Commits

Author SHA1 Message Date
Chris Hilton ac8cb38838
getValidTags() should exclude tags that do not match the prefixRegex (#158) 2023-01-22 17:26:50 +01:00
James Phillips a1afa112d3
Correctly parse `create_annotated_tag` (#137) 2022-10-26 10:57:31 +02:00
Mathieu Dutour 4cf1d6f51d
fix assignment 2021-11-17 12:15:07 +01:00
Mathieu Dutour c0f9097516
Merge pull request #83 from jimrazmus/sanitize-github-ref
fix:issue #81 - sanitize semver in branch name
2021-11-17 12:11:35 +01:00
Yann Savary 1b8ac6a7b8 Fixed code style and documentation 2021-11-16 19:41:49 +01:00
Yann Savary 438b61463e Merge branch 'master' into feature/commit_sha 2021-11-16 19:16:42 +01:00
Mathieu Dutour 917867a4e1
prepare version 6.0 2021-11-16 19:14:05 +01:00
Mathieu Dutour 6f05ce192f
update deps 2021-11-16 19:07:40 +01:00
Jon Erickson f26971f09b Run prettier 2021-10-29 20:37:48 -07:00
Jon Erickson 8614426b27 Updated action to include default_prerelease_bump to separate out options. 2021-10-29 20:34:06 -07:00
Yann Savary 2fca5fd609 Merge branch 'master' into feature/commit_sha
# Conflicts:
#	src/action.ts
2021-10-28 14:07:53 +02:00
Jon Erickson c52d722673 Make sure we are only changing the bump var if it is a known prerelease commit. 2021-10-18 15:10:53 -07:00
Jon Erickson c791a95a0b Support for incrementing the prerelease number when no automatic bumps are encountered. 2021-10-18 15:06:11 -07:00
Jim Razmus II 8e69e12fa1
fix: replace returns a string
Replace is not an in-place edit AFAIK. Consequently, we need to overwrite the identifier value to get the desired sanitization effect.
2021-09-15 12:01:24 -05:00
Jim Razmus II 3cc0072f45
fix: indentation 2021-09-14 12:38:01 -05:00
olilin f05041888b use GITHUB_SERVER_URL instead of hardcoded url 2021-09-13 13:31:15 +02:00
Jim Razmus II caef8f4d8b
fix: consistently sanitize identifier
Guards against branch names including a semver as well as branch names having characters not allowed by the semver specification.

Co-authored-by: folex <0xdxdy@gmail.com>
2021-09-03 11:15:28 -05:00
Jonathan Jayet a21ccc490d feat(tag fetching): support for more than a 100 tag at a time 2021-07-21 18:03:01 +02:00
Yann Savary aca73cf197 Added 'commit_sha' input to use this commit SHA instead GITHUB_SHA. 2021-07-15 15:41:03 +02:00
Jim Razmus II c443da5e30 fix:issue #81 - sanitize semver in branch name
PRs with branch names containing a semver break later valid'ation calls.
2021-05-06 10:49:24 -05:00
David Jack Wange Olrik c7025fccaf
feat: Add release_type to outputs
Fixes #78
2021-04-18 21:54:19 +02:00
Mathieu Dutour 514c51bfe1
Update action.ts 2021-04-01 15:45:42 +02:00
Mathieu Dutour 08141c4e6c
actually need ? 2021-04-01 15:37:52 +02:00
Mathieu Dutour 8fe38641cc
use mappedReleaseRules directly 2021-04-01 15:31:52 +02:00
Mathieu Dutour ddafd83108
remove unused types 2021-04-01 15:30:58 +02:00
Mathieu Dutour f1313dce02
move type in defaults 2021-04-01 15:30:07 +02:00
Mathieu Dutour ca34e578f6
clean rules parsing 2021-04-01 15:28:16 +02:00
Kiran Koirala 7654e2d2c4 Add unit tests 2021-03-23 20:05:55 +05:45
Kiran Koirala 85ae0059c0 Fix unit tests + Remove unwanted types 2021-03-22 00:26:38 +05:45
Kiran Koirala 413032fe57 Fix prettier issues 2021-03-20 21:54:13 +05:45
Kiran Koirala 4b936d9f59 Custom Release rule changelog 2021-03-20 21:37:58 +05:45
Chris Johnson 3cc1a97bc2 chore: PR feedback
Calls to `inc` don't need to be conditional based on if it's a PR or not since releaseType is already conditional
2021-03-08 11:09:10 -08:00
Chris Johnson c627331682 fix: allow running the action on a PR 2021-03-05 17:42:51 -08:00
Andres Pache f8a4419607 fix():Issue #62 - commits analyzed repeatedly 2021-02-24 10:31:50 -03:00
Mathieu Dutour 5961cf9c4d fix typo 2021-02-18 10:32:06 +01:00
Mathieu Dutour 2d739a69ac add previous_version output 2021-02-18 10:15:23 +01:00
Kiran Koirala 63ff928afe fix prettier error 2021-02-18 12:28:30 +05:45
Kiran Koirala 93b037fc64 Fix(Compare GITHUB_SHA instead of 'HEAD' to baseRef/latest tag ref) 2021-02-18 12:17:15 +05:45
Mathieu Dutour f9c1f5572a fix custom tag prefix 2021-01-04 11:02:35 +01:00
Mathieu Dutour 4011b0c046 try renaming files 2021-01-04 10:42:46 +01:00
Mathieu Dutour 2abed9daf5 fix types 2021-01-04 10:05:54 +01:00
Moritz Schmitz von Hülst d2826f6b74 I was hoping for MORE readability... 2020-11-17 13:28:47 +01:00
Moritz Schmitz von Hülst a500a890f9 consistency 2020-11-17 13:22:59 +01:00
Moritz Schmitz von Hülst a4b921efd9 mock debug and refactor mapping function 2020-11-17 13:22:00 +01:00
Moritz Schmitz von Hülst 485c833698 add prettier and warning for invalid release types 2020-11-17 13:12:06 +01:00
Moritz Schmitz von Hülst 158d2b0407 add custom_release_rules and more tests 2020-11-13 11:51:00 +01:00
Moritz Schmitz von Hülst 169b215c7c more tests 2020-11-13 11:09:36 +01:00
Moritz Schmitz von Hülst 953789d88f more tests 2020-11-12 22:54:32 +01:00
Moritz Schmitz von Hülst c9d97025ca add some initial tests 2020-11-12 17:05:47 +01:00
Moritz Schmitz von Hülst bcf1629a1f
Fix issue when append_to_pre_release_tag is set (#38)
* If append_to_prerelease_tag is set it should be used as identifier to lookup the latest prerelease tag.

* 5.0.1

* small refactor
2020-11-11 18:30:29 +01:00