Skip to content

Commit e1bba5c

Browse files
authored
Merge pull request #40 from apple1417/master
add release names to changelog
2 parents aaf86e6 + 648d753 commit e1bba5c

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

changelog.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## v1.5
3+
## v1.5: Time Skip
44

55
### General
66
- Upgraded to Python 3.13.
@@ -49,7 +49,7 @@
4949
> - Fixed missing all `CallFunction` based hooks in TPS - notably including the say bypass.
5050
> - Added the offline mode say crash fix for BL2+TPS as a base sdk hook.
5151
52-
## v1.4
52+
## v1.4: White Elephant
5353

5454
Also see the unrealsdk v1.3.0 changelog [here](https://github.com/bl-sdk/unrealsdk/blob/master/changelog.md#v130)
5555
and the pyunrealsdk v1.3.0 changelog [here](https://github.com/bl-sdk/pyunrealsdk/blob/master/changelog.md#v130).
@@ -107,7 +107,7 @@ and the pyunrealsdk v1.3.0 changelog [here](https://github.com/bl-sdk/pyunrealsd
107107

108108
[51d3c872](https://github.com/bl-sdk/oak-mod-manager/commit/51d3c872)
109109

110-
## v1.3
110+
## v1.3: Lethal Catch
111111

112112
Also see the unrealsdk v1.2.0 changelog [here](https://github.com/bl-sdk/unrealsdk/blob/master/changelog.md#v120)
113113
and the pyunrealsdk v1.2.0 changelog [here](https://github.com/bl-sdk/pyunrealsdk/blob/master/changelog.md#v120).
@@ -193,7 +193,7 @@ and the pyunrealsdk v1.2.0 changelog [here](https://github.com/bl-sdk/pyunrealsd
193193

194194
[c7dfc4a6](https://github.com/bl-sdk/oak-mod-manager/commit/c7dfc4a6)
195195

196-
## v1.2
196+
## v1.2: Hand of Glory
197197

198198
Also see the pyunrealsdk v1.1.1 changelog [here](https://github.com/bl-sdk/pyunrealsdk/blob/master/changelog.md#v111).
199199

@@ -233,8 +233,7 @@ Also see the pyunrealsdk v1.1.1 changelog [here](https://github.com/bl-sdk/pyunr
233233

234234
[05891ad4](https://github.com/bl-sdk/oak-mod-manager/commit/05891ad4)
235235

236-
## v1.1
237-
236+
## v1.1: Rowan's Call
238237
Also see the unrealsdk v1.1.0 changelog [here](https://github.com/bl-sdk/unrealsdk/blob/master/changelog.md#v110)
239238
and the pyunrealsdk v1.1.0 changelog [here](https://github.com/bl-sdk/pyunrealsdk/blob/master/changelog.md#v110).
240239

@@ -376,5 +375,5 @@ and the pyunrealsdk v1.1.0 changelog [here](https://github.com/bl-sdk/pyunrealsd
376375

377376
[11470d75](https://github.com/bl-sdk/oak-mod-manager/commit/11470d75)
378377

379-
## v1.0
378+
## v1.0: Major Kong
380379
- Initial Release

pick_release_name.py

+15-12
Original file line numberDiff line numberDiff line change
@@ -694,25 +694,28 @@
694694
"Zheitsev's Eruption",
695695
]
696696

697-
PREVIOUS_RELEASE_NAMES = []
697+
PREVIOUS_RELEASE_NAMES = [
698+
"Major Kong",
699+
"Rowan's Call",
700+
"Hand of Glory",
701+
"Lethal Catch",
702+
"White Elephant",
703+
"Time Skip",
704+
]
698705

699706

700707
@cache
701-
def get_git_commit_hash(identifier: str | None = None) -> str:
708+
def get_git_commit_hash(identifier: str = "HEAD") -> str:
702709
"""
703710
Gets the full commit hash of the current git repo.
704711
705712
Args:
706-
identifier: The identifier of the commit to get, or None to get the latest.
713+
identifier: The identifier of the commit to get.
707714
Returns:
708715
The commit hash.
709716
"""
710-
args = ["git", "show", "-s", "--format=%H"]
711-
if identifier is not None:
712-
args.append(identifier)
713-
714717
return subprocess.run(
715-
args,
718+
["git", "rev-list", "-1", identifier],
716719
cwd=Path(__file__).parent,
717720
check=True,
718721
stdout=subprocess.PIPE,
@@ -744,10 +747,10 @@ def pick_release_name(commit_hash: str, excludes: list[str] = PREVIOUS_RELEASE_N
744747
description="Picks the friendly name to use for the current release.",
745748
)
746749
parser.add_argument(
747-
"hash",
750+
"commit",
748751
nargs="?",
749-
default=None,
750-
help="The commit hash to base the name off of. If not given, retrieves from git.",
752+
default="HEAD",
753+
help="The commit hash to base the name off of. Defaults to HEAD.",
751754
)
752755
parser.add_argument(
753756
"--exclude",
@@ -763,7 +766,7 @@ def pick_release_name(commit_hash: str, excludes: list[str] = PREVIOUS_RELEASE_N
763766
)
764767
args = parser.parse_args()
765768

766-
commit_hash = get_git_commit_hash(args.hash)
769+
commit_hash = get_git_commit_hash(args.commit)
767770

768771
excludes = [] if args.ignore_previous_releases else PREVIOUS_RELEASE_NAMES
769772
excludes += args.exclude

0 commit comments

Comments
 (0)