We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aee67c2 commit 0738345Copy full SHA for 0738345
1 file changed
script/create_release_notes.py
@@ -49,7 +49,13 @@ def main():
49
)
50
args = parser.parse_args()
51
52
- changelog_path = Path(args.changelog)
+ try:
53
+ changelog_path = Path(args.changelog).resolve()
54
+ changelog_path.relative_to(Path.cwd().resolve())
55
+ except ValueError:
56
+ print(f"Error: {args.changelog} is outside the current directory.")
57
+ sys.exit(1)
58
+
59
if not changelog_path.exists():
60
print(f"Error: {changelog_path} not found.")
61
sys.exit(1)
0 commit comments