Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f1a60cc06 | ||
|
|
fcc8114c8e | ||
|
|
c58c4cea96 | ||
|
|
7fbf499278 | ||
|
|
64fc890cb7 | ||
|
|
7199249f75 | ||
|
|
7efaf367e5 | ||
|
|
dc79ffa399 | ||
|
|
31513a3e3a | ||
|
|
c45f065e77 | ||
|
|
7f7dd7b538 | ||
|
|
adcb53156a | ||
|
|
5ca817c796 | ||
|
|
2be9b50ac4 | ||
|
|
347b8b9556 | ||
|
|
9b547bd6a9 | ||
|
|
f05582b50f |
@@ -8,11 +8,10 @@ jobs:
|
|||||||
Publish-to-PyPI:
|
Publish-to-PyPI:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Checkout
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
|
||||||
|
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,3 +1,34 @@
|
|||||||
|
## v1.18.0 - 2026-07-29
|
||||||
|
|
||||||
|
- **bugfix**: change checkout version to v7 [[jteran](mailto:jteran@renatre.org.ar)] (c58c4ce)
|
||||||
|
- **bugfix**: move git fetch to separate line [[jteran](mailto:jteran@renatre.org.ar)] (64fc890)
|
||||||
|
- **bugfix**: change actions/checkout to v4 and add step to fetch tags [[jteran](mailto:jteran@renatre.org.ar)] (dc79ffa)
|
||||||
|
- **bugfix**: change actions/checkout version [[jteran](mailto:jteran@renatre.org.ar)] (c45f065)
|
||||||
|
- **bugfix**: add fetch-tags: true [[jteran](mailto:jteran@renatre.org.ar)] (adcb531)
|
||||||
|
- **bugfix**: remove checkout parameters [[jteran](mailto:jteran@renatre.org.ar)] (2be9b50)
|
||||||
|
- **feature**: show commit count and list tags on workflow [[jteran](mailto:jteran@renatre.org.ar)] (f05582b)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## v0.1.0-main - 2026-07-29
|
||||||
|
|
||||||
|
- **bugfix**: change actions/checkout to v4 and add step to fetch tags [[jteran](mailto:jteran@renatre.org.ar)] (dc79ffa)
|
||||||
|
- **bugfix**: change actions/checkout version [[jteran](mailto:jteran@renatre.org.ar)] (c45f065)
|
||||||
|
- **bugfix**: add fetch-tags: true [[jteran](mailto:jteran@renatre.org.ar)] (adcb531)
|
||||||
|
- **bugfix**: remove checkout parameters [[jteran](mailto:jteran@renatre.org.ar)] (2be9b50)
|
||||||
|
- **feature**: show commit count and list tags on workflow [[jteran](mailto:jteran@renatre.org.ar)] (f05582b)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## v0.1.0-main - 2026-07-29
|
||||||
|
|
||||||
|
- **feature**: show commit count and list tags on workflow [[jteran](mailto:jteran@renatre.org.ar)] (f05582b)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.0.1-main - 2026-07-18
|
## v0.0.1-main - 2026-07-18
|
||||||
|
|
||||||
- **bugfix**: add fetch tags to checkout step [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (f9fb5a6)
|
- **bugfix**: add fetch tags to checkout step [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (f9fb5a6)
|
||||||
|
|||||||
@@ -50,4 +50,6 @@ SUPPORTED_REMOTE_APIS = [
|
|||||||
|
|
||||||
REPOSITORY_TOKEN_FILENAME = ".repository-token"
|
REPOSITORY_TOKEN_FILENAME = ".repository-token"
|
||||||
|
|
||||||
|
FLOWCONFIG_FILENAME = ".flowconfig"
|
||||||
|
|
||||||
FLOWCONFIG_VERSION = 2
|
FLOWCONFIG_VERSION = 2
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from git_flow import (
|
from git_flow import (
|
||||||
BRANCH_TYPES,
|
BRANCH_TYPES,
|
||||||
REPOSITORY_TOKEN_FILENAME,
|
REPOSITORY_TOKEN_FILENAME,
|
||||||
|
FLOWCONFIG_FILENAME,
|
||||||
FLOWCONFIG_VERSION,
|
FLOWCONFIG_VERSION,
|
||||||
COMMIT_TYPES,
|
COMMIT_TYPES,
|
||||||
GitFlowError,
|
GitFlowError,
|
||||||
@@ -18,7 +19,7 @@ import rich
|
|||||||
import rich.panel
|
import rich.panel
|
||||||
import questionary
|
import questionary
|
||||||
|
|
||||||
flowconfig = Git.get_config()
|
flowconfig = Git.get_config(FLOWCONFIG_FILENAME) if isfile(FLOWCONFIG_FILENAME) else {}
|
||||||
environments = (
|
environments = (
|
||||||
flowconfig["flow.branches"].split(",") if "flow.branches" in flowconfig else []
|
flowconfig["flow.branches"].split(",") if "flow.branches" in flowconfig else []
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import typer
|
import typer
|
||||||
|
|
||||||
import git_flow.command.base as base
|
import git_flow.command.base as base
|
||||||
from git_flow import FLOWCONFIG_VERSION, GitFlowError
|
from git_flow import FLOWCONFIG_FILENAME, FLOWCONFIG_VERSION, GitFlowError
|
||||||
from git_flow.git import Git
|
from git_flow.git import Git
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
@@ -27,7 +27,9 @@ def init():
|
|||||||
flowconfig["flow.remote"] = remote
|
flowconfig["flow.remote"] = remote
|
||||||
flowconfig["flow.remote-type"] = remote_type
|
flowconfig["flow.remote-type"] = remote_type
|
||||||
|
|
||||||
Git.set_config(flowconfig)
|
Git.set_config(flowconfig, FLOWCONFIG_FILENAME)
|
||||||
|
Git("add", FLOWCONFIG_FILENAME).exec()
|
||||||
|
Git("commit", message="feature: initialize git-flow").exec()
|
||||||
|
|
||||||
_ensure_all_flow_branches_exist(branches, remote)
|
_ensure_all_flow_branches_exist(branches, remote)
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -1,5 +1,6 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
from git_flow import FLOWCONFIG_FILENAME
|
||||||
from git_flow.io import *
|
from git_flow.io import *
|
||||||
|
|
||||||
|
|
||||||
@@ -32,7 +33,11 @@ class Git:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def set_config(config: dict[str, str], file: str | None = None):
|
def set_config(config: dict[str, str], file: str | None = None):
|
||||||
for key, value in config.items():
|
for key, value in config.items():
|
||||||
Git("config", key, value, file=file).exec(print="Updating config")
|
Git("config", key, value, file=file).exec()
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def flow_config(*args, **kwargs):
|
||||||
|
return Git("config", *args, file=FLOWCONFIG_FILENAME, **kwargs)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_current_branch():
|
def get_current_branch():
|
||||||
|
|||||||
Reference in New Issue
Block a user