Skip to content

Commit af652be

Browse files
committed
and a comma
Signed-off-by: Nick Gerakines <[email protected]>
1 parent 1126828 commit af652be

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-alpine3.15
1+
FROM python:alpine
22
WORKDIR /app
33
COPY requirements.txt commit.py commit_messages.txt index.html /app/
44
COPY static /app/static/

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Nick Gerakines
3+
Copyright (c) 2010-2024 Nick Gerakines
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.markdown

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Looking For Sponsors
22

3-
Enjoying https://whatthecommit.com/ ? Consider becoming a sponsor of this project. Your contributions keep the site running.
3+
Enjoying [https://whatthecommit.com/](https://whatthecommit.com/)? Consider becoming a sponsor of this project. Your contributions keep the site running.
44

55
https://github.com/users/ngerakines/sponsorship
66

77
# About WTC (What The Commit)
8+
89
Commitment is a small Tornado application that generates random commit messages.
910

1011
https://whatthecommit.com/
1112

12-
Commitment also provides https://whatthecommit.com/index.txt which provides plain text output.
13-
Some interesting usage for that can be:
13+
Commitment also provides https://whatthecommit.com/index.txt which provides plain text output. Some interesting usage for that can be:
14+
1415
```
1516
git config --global alias.yolo '!git commit -m "$(curl -s https://whatthecommit.com/index.txt)"'
1617
```
@@ -22,6 +23,6 @@ Or use one of the following VSCode Extensions:
2223

2324
# License
2425

25-
Copyright (c) 2010-2021 Nick Gerakines <[email protected]>
26+
Copyright (c) 2010-2024 Nick Gerakines <[email protected]>
2627

2728
This project and its contents are open source under the MIT license.

commit.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def main():
156156

157157
with open(messages_file, "r", encoding="utf-8") as messages_input:
158158
for line in messages_input.readlines():
159-
messages[md5(line.encode("utf-8")).hexdigest()] = line
159+
messages[md5(line.encode("utf-8")).hexdigest()] = line.rstrip()
160160

161161
names: Set[str] = set(list(default_names))
162162

@@ -167,7 +167,7 @@ async def main():
167167
line = line.removeprefix("Name: ")
168168
if (found := line.find("github")) > -1:
169169
line = line[found:].removeprefix("github:").removesuffix(")")
170-
names.add(line)
170+
names.add(line.rstrip())
171171
else:
172172
names.add(line.split(" ")[0])
173173

index.html

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
text-decoration: underline;
2929
}
3030
</style>
31+
<meta name="description" content="{{ message }}">
32+
<meta property="og:title" content="Commit Message Generator" />
33+
<meta property="og:description" content="{{ message }}" />
34+
<meta property="og:type" content="website" />
35+
<meta property="og:url" content="https://www.whatthecommit.com/{{ message_hash }}" />
3136
</head>
3237
<body>
3338
<div id="content">

static/humans.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* TEAM */
22
Developer: Nick Gerakines
33
Site: http://ngerakines.me/
4-
Twitter: @ngerakines
4+
ATProtocol: @ngerakines.me
55
Location: Dayton, OH
66

77
/* THANKS */
@@ -84,9 +84,9 @@ Name: github:ShanTulshi
8484
Name: Jonatha Daguerre (github:jonathadv)
8585

8686
/* SITE */
87-
Last update: 2014/04/17
87+
Last update: 2024-08-04
8888
Standards: HTML5, CSS3
89-
Software: Vim, Git, Python, TextMate
89+
Software: Git, Python, Visual Studio Code
9090

9191
/* SOURCE */
9292
Source: https://github.com/ngerakines/commitment

0 commit comments

Comments
 (0)