-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b164477
commit acf8a6a
Showing
11 changed files
with
144 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Modmail 0.2.0 (2021-11-23) | ||
|
||
--- | ||
|
||
### Features | ||
- qwerty (#89) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
All your changelogs for upcoming release! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
ERROR_MSG_PREFIX = "Oh no! 💥 💔 💥" | ||
|
||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
import modmail | ||
|
||
|
||
PR_ENDPOINT = "https://api.github.com/repos/discord-modmail/modmail/pulls/{number}" | ||
BAD_RESPONSE = { | ||
404: "Pull request not located! Please enter a valid number!", | ||
403: "Rate limit has been hit! Please try again later!", | ||
} | ||
|
||
TEMPLATE_FILE_PATH = Path(Path(__file__).parent, "template.md.jinja") | ||
REPO_ROOT = Path(modmail.__file__).parent.parent | ||
NEWS_NEXT = Path(REPO_ROOT, "news/next") | ||
|
||
ERROR_MSG_PREFIX = "Oh no! 💥 💔 💥" | ||
TEMPLATE = """ | ||
# Please write your news content. When finished, save the file. | ||
# In order to abort, exit without saving. | ||
# Lines starting with "#" are ignored. | ||
""".lstrip() | ||
NO_NEWS_PATH_ERROR = ( | ||
f"{ERROR_MSG_PREFIX} {Path(os.path.relpath(NEWS_NEXT, start=Path.cwd()))} doesn't exist, please create it" | ||
f" and run this command again :) Happy change-logging!" | ||
) | ||
|
||
SECTIONS = { | ||
"feature": "Features", | ||
"trivial": "Trivial/Internal Changes", | ||
"improvement": "Improvements", | ||
"bugfix": "Bug Fixes", | ||
"doc": "Improved Documentation", | ||
"deprecation": "Deprecations", | ||
"breaking": "Breaking Changes", | ||
"internal": "Internal", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.