Skip to content

Commit

Permalink
fix: rename to skip-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
russkel committed Nov 27, 2024
1 parent 0eaa75b commit 41c2966
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions platform_cli/assets/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@

"@qiwi/multi-semantic-release@https://github.com/Greenroom-Robotics/multi-semantic-release.git#v6.5.1-patched":
version "6.5.2"
resolved "https://github.com/Greenroom-Robotics/multi-semantic-release.git#424bec248c1f892e4a2db248583fba4404f238a7"
resolved "https://github.com/Greenroom-Robotics/multi-semantic-release.git#3ea69fbe340bfebd28087258ed6a32b937484f17"
dependencies:
"@manypkg/get-packages" "^1.1.3"
"@semrel-extra/topo" "^1.3.0"
Expand Down Expand Up @@ -3161,7 +3161,7 @@ safe-buffer@~5.2.0:

semantic-release@^19.0.2, "semantic-release@https://github.com/Greenroom-Robotics/semantic-release.git#v19.0.5-patched-testing":
version "19.0.5"
resolved "https://github.com/Greenroom-Robotics/semantic-release.git#06f07876e090bcc3b04eadec8c4dec63c21af38a"
resolved "https://github.com/Greenroom-Robotics/semantic-release.git#53d81662490f5d49584ca52ab0ecf125e02c9f26"
dependencies:
"@semantic-release/commit-analyzer" "^9.0.2"
"@semantic-release/error" "^3.0.0"
Expand Down
24 changes: 13 additions & 11 deletions platform_cli/groups/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def get_releaserc(
package: Optional[str] = None,
package_dir: Optional[str] = None,
ros_distro: Optional[str] = None,
skip_build: bool = False,
):
"""
Returns the releaserc with the plugins configured according to the arguments
Expand All @@ -135,13 +136,14 @@ def add_plugin(plugin_name: str, plugin_config: Dict[str, Any]):
add_plugin("@semantic-release/commit-analyzer", {"preset": "conventionalcommits"})
add_plugin("@semantic-release/release-notes-generator", {"preset": "conventionalcommits"})
add_plugin("@semantic-release/changelog", {})
add_plugin(
"@semantic-release/exec",
{
"prepareCmd": f"platform release deb-prepare {prepare_cmd_args}",
"publishCmd": f"platform release deb-publish --public {public}",
},
)
if not skip_build:
add_plugin(
"@semantic-release/exec",
{
"prepareCmd": f"platform release deb-prepare {prepare_cmd_args}",
"publishCmd": f"platform release deb-publish --public {public}",
},
)
if github_release:
add_plugin(
"@semantic-release/github",
Expand Down Expand Up @@ -469,7 +471,7 @@ def setup(package: str, package_dir: str): # type: ignore
default="iron",
)
@click.option(
"--no-tag",
"--skip-tag",
type=bool,
help="Should semantic-release NOT tag the release",
default=False,
Expand All @@ -478,12 +480,12 @@ def setup(package: str, package_dir: str): # type: ignore
"args",
nargs=-1,
)
def create(changelog: bool, github_release: bool, public: bool, package: str, package_dir: str, arch: List[Architecture], ros_distro: str, no_tag: bool, args: List[str]): # type: ignore
def create(changelog: bool, github_release: bool, public: bool, package: str, package_dir: str, arch: List[Architecture], ros_distro: str, skip_tag: bool, args: List[str]): # type: ignore
"""Creates a release of the platform module package. See .releaserc for more info"""
args_str = " ".join(args)

if no_tag:
args_str += " --no-tag"
if skip_tag:
args_str += " --skip-tag"

packages = find_packages(Path.cwd() / package_dir)

Expand Down

0 comments on commit 41c2966

Please sign in to comment.