commit f161979bfd1fbb2fb371009d64c66b10e5e47c1d
parent 93feabd3bd0478b28e93dd7f83d47351a0dd622b
Author: khushboo <khushboo@noreply.localhost>
Date: Wed, 22 Mar 2023 17:24:10 +0000
Ensure that only one git remote is used when generating information for Repo (!70)
Reviewed-on: https://gitea.midpathsoftware.com/midpath/jaypore_ci/pulls/70
╔ 🟡 : JayporeCI [sha 1bfdc3a505]
┏━ build-and-test
┃
┃ 🟢 : JciEnv [e6003eb3] 0:10
┃ 🟢 : Jci [e8a01b17] 0:17 ❮-- ['JciEnv']
┃ 🟢 : black [a8a9b2e1] 0: 0 ❮-- ['JciEnv']
┃ 🟢 : install-test [6efbad4b] 0: 0 ❮-- ['JciEnv']
┃ 🟢 : pylint [204a9ab6] 0: 8 ❮-- ['JciEnv']
┃ 🟢 : pytest [face3a1c] 0:24 Cov: 89% ❮-- ['JciEnv']
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┏━ Publish
┃
┃ 🔵 : DockerHubJci [37bc58bb] 2: 3
┃ 🔵 : DockerHubJcienv [cded3a02] 2: 2
┃ 🟢 : PublishDocs [0c58f5a6] 0:38
┃ 🟢 : PublishPypi [ef9df319] 0: 9 v0.2.28
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Co-authored-by: khushboo <khushboo@noreply.localhost>
Co-committed-by: khushboo <khushboo@noreply.localhost>
Diffstat:
4 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -4,10 +4,9 @@ Documentation is at : https://www.jayporeci.in
## If you are reading this on GitHub
-- Github is only the mirror for this codebase.
-- Actual development is on a personal gitea instance.
-- Please use github discussions for describing problems / asking for help / adding ideas.
-- If you want you can submit PRs and I'll get them merged as and when I have time.
+- Github is the **mirror** for this codebase, actual development is on a personal gitea instance.
+- Please use [Github discussions](https://github.com/theSage21/jaypore_ci/discussions) for describing problems / asking for help / adding ideas.
+- Jaypore CI is open source, not openly developed so instead of submitting PRs, please fork the project and start a discussion.
## Usage
diff --git a/jaypore_ci/changelog.py b/jaypore_ci/changelog.py
@@ -2,6 +2,15 @@ from jaypore_ci.config import Version
V = Version.parse
version_map = {
+ V("0.2.28"): {
+ "changes": [
+ (
+ "Bugfix: When there are multiple (push) remotes, Jaypore CI"
+ " will pick the first one and use that"
+ )
+ ],
+ "instructions": [],
+ },
V("0.2.27"): {
"changes": [
"Jobs older than 1 week will be removed before starting a new pipeline."
diff --git a/jaypore_ci/repos/git.py b/jaypore_ci/repos/git.py
@@ -23,7 +23,8 @@ class Git(Repo):
"""
remote = (
subprocess.check_output(
- "git remote -v | grep push | grep https | awk '{print $2}'", shell=True
+ "git remote -v | grep push | head -n1 | grep https | awk '{print $2}'",
+ shell=True,
)
.decode()
.strip()
diff --git a/pyproject.toml b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jaypore_ci"
-version = "0.2.27"
+version = "0.2.28"
description = ""
authors = ["arjoonn sharma <arjoonn.94@gmail.com>"]
homepage = "https://www.jayporeci.in/"