Skip to content

Commit ed59510

Browse files
committed
fix default branch handling and update UX
1 parent 1916eee commit ed59510

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.github/actions/draft-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
description: "The owner/repo GitHub target"
99
required: true
1010
branch:
11-
description: The branch to target"
11+
description: The branch to target
1212
required: true
1313
version_spec:
1414
description: "New Version Specifier"

.github/workflows/draft-changelog.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
description: "The owner/repo GitHub target"
77
required: true
88
branch:
9-
description: "The branch to target"
9+
description: "The branch to target (defaults to default branch)"
1010
version_spec:
1111
description: "New Version Spec"
12+
default: "next"
1213
since:
1314
description: Use PRs with activity since this date or git reference
1415
since_last_stable:

.github/workflows/draft-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
description: "The owner/repo GitHub target"
77
required: true
88
branch:
9-
description: "The branch to target"
9+
description: "The branch to target (defaults to default branch)"
1010
version_spec:
11-
description: "New Version Specifier"
11+
description: "New Version Spec"
12+
default: "next"
1213
post_version_spec:
1314
description: "Post Version Specifier"
1415
since:

.github/workflows/full-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
description: "The owner/repo GitHub target"
77
required: true
88
branch:
9-
description: "The branch to target"
9+
description: "The branch to target (defaults to default branch)"
1010
version_spec:
11-
description: "New Version Specifier"
11+
description: "New Version Spec"
12+
default: "next"
1213
post_version_spec:
1314
description: "Post Version Specifier"
1415
since:

jupyter_releaser/actions/draft_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
curr_dir = os.getcwd()
1818
os.chdir(CHECKOUT_NAME)
1919
since_last_stable = os.environ.get("RH_SINCE_LAST_STABLE")
20-
since = get_latest_tag(os.environ["RH_BRANCH"], since_last_stable)
20+
since = get_latest_tag(os.environ.get("RH_BRANCH"), since_last_stable)
2121
if since:
2222
log(f"Capturing {since} in RH_SINCE variable")
2323
os.environ["RH_SINCE"] = since

jupyter_releaser/actions/draft_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
curr_dir = os.getcwd()
4242
os.chdir(CHECKOUT_NAME)
4343
since_last_stable = os.environ.get("RH_SINCE_LAST_STABLE")
44-
since = get_latest_tag(os.environ["RH_BRANCH"], since_last_stable)
44+
since = get_latest_tag(os.environ.get("RH_BRANCH"), since_last_stable)
4545
if since:
4646
log(f"Capturing {since} in RH_SINCE variable")
4747
os.environ["RH_SINCE"] = since

0 commit comments

Comments
 (0)