Skip to content

Commit

Permalink
Allow changelogger in other locations (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
award28 authored Mar 6, 2023
1 parent 2356104 commit 2fe9871
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion changelogger/conf/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@
"assets/.cl.links.jinja2"
)

CHANGELOGGER_PATH = Path(".changelogger.yml")
CHANGELOGGER_NAME = ".changelogger.yml"

CHANGELOGGER_PATH = (
(p1 := Path(CHANGELOGGER_NAME)).exists()
and p1
or (p2 := Path(".changelogger/").joinpath(CHANGELOGGER_NAME)).exists()
and p2
or (p3 := Path(".github/").joinpath(CHANGELOGGER_NAME)).exists()
and p3
or p1
)

0 comments on commit 2fe9871

Please sign in to comment.