Skip to content

Commit

Permalink
chore: move from personal to org
Browse files Browse the repository at this point in the history
  • Loading branch information
rarescosma committed Nov 2, 2024
1 parent 5e2b9d0 commit 2a904c9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<p>
<a href="https://pypi.org/project/octotail/"><img alt="PyPI" src="https://img.shields.io/pypi/v/octotail"></a>
<a href="https://github.com/rarescosma/octotail/blob/main/UNLICENSE"><img alt="License: Unlicense" src="https://img.shields.io/badge/license-Unlicense-blue.svg"></a>
<a href="https://github.com/rarescosma/octotail/actions"><img alt="Actions Status" src="https://github.com/rarescosma/octotail/workflows/test/badge.svg"></a>
<a href="https://codecov.io/github/rarescosma/octotail"><img alt="Code coverage" src="https://codecov.io/github/rarescosma/octotail/graph/badge.svg?token=3CR6BVTC7O"/></a>
<a href="https://github.com/rarescosma/octotail"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://github.com/getbettr/octotail/blob/main/UNLICENSE"><img alt="License: Unlicense" src="https://img.shields.io/badge/license-Unlicense-blue.svg"></a>
<a href="https://github.com/getbettr/octotail/actions"><img alt="Actions Status" src="https://github.com/getbettr/octotail/workflows/test/badge.svg"></a>
<a href="https://codecov.io/github/getbettr/octotail"><img alt="Code coverage" src="https://codecov.io/github/getbettr/octotail/graph/badge.svg?token=3CR6BVTC7O"/></a>
<a href="https://github.com/getbettr/octotail"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
</p>

Live tail GitHub Action runs on `git push`. It's cursed.

![](https://raw.githubusercontent.com/rarescosma/octotail/a9c662e5f669c22c591d93c32cdeca68e1a05aec/var/demo.gif)
![](https://raw.githubusercontent.com/getbettr/octotail/a9c662e5f669c22c591d93c32cdeca68e1a05aec/var/demo.gif)

## Motivation

Expand Down Expand Up @@ -94,7 +94,7 @@ echo "alias octotailx='$(pwd)/.venv/bin/python3 $(pwd)/.venv/bin/octotailx'" >>
### Via git and make

```shell
git clone https://github.com/rarescosma/octotail.git
git clone https://github.com/getbettr/octotail.git
cd octotail
make
sudo make install
Expand Down
2 changes: 1 addition & 1 deletion e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sudo chown -R $(id -u):$(id -g) $DOT

OCTOTAIL_REF="${1:-main}"

UVX="uvx --from=git+https://github.com/rarescosma/octotail.git@${OCTOTAIL_REF}"
UVX="uvx --from=git+https://github.com/getbettr/octotail.git@${OCTOTAIL_REF}"

# generate mitmproxy cert and trust it
sudo trust anchor "$($UVX octotailx generate-cert)"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ octotail = "octotail.main:_main"
octotailx = "octotail.x:_main"

[project.urls]
Documentation = "https://github.com/rarescosma/octotail#readme"
Repository = "https://github.com/rarescosma/octotail"
Issues = "https://github.com/rarescosma/octotail/issues"
Documentation = "https://github.com/getbettr/octotail#readme"
Repository = "https://github.com/getbettr/octotail"
Issues = "https://github.com/getbettr/octotail/issues"
Homepage = "https://getbetter.ro/projects/#octotail"

[tool.uv]
Expand Down
28 changes: 14 additions & 14 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@
[
("", Success([])),
(
"origin\tgit@github.com:rarescosma/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git")]),
"origin\tgit@github.com:getbettr/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:getbettr/octotail.git")]),
),
(
"origin git@github.com:rarescosma/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git")]),
"origin git@github.com:getbettr/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:getbettr/octotail.git")]),
),
(
"origin git@github.com:rarescosma/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git")]),
"origin git@github.com:getbettr/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:getbettr/octotail.git")]),
),
(
"origin \t \t git@github.com:rarescosma/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git")]),
"origin \t \t git@github.com:getbettr/octotail.git",
Success([GitRemote(name="origin", url="git@github.com:getbettr/octotail.git")]),
),
(
"gibberish",
Failure(TypeError("GitRemote")),
),
(
"origin \t \t git@github.com:rarescosma/octotail.git"
"origin \t \t git@github.com:getbettr/octotail.git"
"\ngh-priv git@github.com:getbettr/octotail-priv.git",
Success(
[
GitRemote(name="gh-priv", url="git@github.com:getbettr/octotail-priv.git"),
GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git"),
GitRemote(name="origin", url="git@github.com:getbettr/octotail.git"),
]
),
),
(
"origin \t \t git@github.com:rarescosma/octotail.git"
"origin \t \t git@github.com:getbettr/octotail.git"
"\ngibberish"
"\ngh-priv git@github.com:getbettr/octotail-priv.git",
Failure(TypeError("GitRemote")),
Expand Down Expand Up @@ -115,10 +115,10 @@ def test_extract_github_repo(input_remote, expected):
(
IOSuccess(
"gh-priv git@github.com:getbettr/octotail-priv.git"
"\norigin git@github.com:rarescosma/octotail.git"
"\norigin git@github.com:getbettr/octotail.git"
),
lambda r: r.name == "origin",
IOSuccess([GitRemote(name="origin", url="git@github.com:rarescosma/octotail.git")]),
IOSuccess([GitRemote(name="origin", url="git@github.com:getbettr/octotail.git")]),
),
],
)
Expand Down Expand Up @@ -149,7 +149,7 @@ def _mock_check_git(*_, **__):
(
IOSuccess(
"gh-priv git@github.com:getbettr/octotail-priv.git"
"\norigin git@github.com:rarescosma/octotail.git"
"\norigin git@github.com:getbettr/octotail.git"
),
Failure.from_failure("too many remotes"),
),
Expand Down

0 comments on commit 2a904c9

Please sign in to comment.