From eb229978141f6732308312ad54f13188abcc044d Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 22 Oct 2024 14:49:33 +0100 Subject: [PATCH 1/2] Add instructions of how to extract the version of the repo This will need testing once #471 is merged. Closes #263. --- .github/ISSUE_TEMPLATE/bug_report.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 098b8b9e..ac40c0ad 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -36,17 +36,17 @@ body: of errors you receive. validations: required: true - # - id: version - # type: input - # attributes: - # label: Version In Use - # description: |- - # Can be found by - # ```sh - # python -c "import sleplet; print(sleplet.__version__)" - # ``` - # validations: - # required: true + - id: version + type: input + attributes: + label: Version In Use + description: |- + Can be found by + ```sh + git -C "$HOME/.cookiecutters/python-tooling" describe --tags --abbrev=0 + ``` + validations: + required: true - id: additional type: textarea attributes: From 59d869723b2ed25194d1ed0f469436d6a69e6428 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Thu, 7 Nov 2024 10:24:21 +0000 Subject: [PATCH 2/2] Update tag logic Co-authored-by: Sam Cunliffe --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index ac40c0ad..c0630c0e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -43,7 +43,7 @@ body: description: |- Can be found by ```sh - git -C "$HOME/.cookiecutters/python-tooling" describe --tags --abbrev=0 + git -C "$HOME/.cookiecutters/python-tooling" describe --match "v*" --tags --candidates 1 ``` validations: required: true