Skip to content

Commit

Permalink
feat(bug-report): integrate version updates into wiki check
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Feb 14, 2025
1 parent 2271a0e commit d3f7ef3
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 90 deletions.
157 changes: 78 additions & 79 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,103 +11,102 @@ body:
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen? Please make sure to include the way that you used flowR (e.g., the command you used).
placeholder: Tell us what you see!
value: "A bug happened when using the server!"
description: Also tell us, what did you expect to happen?
placeholder: Tell us what happened!
validations:
required: true
- type: input
id: r-version
attributes:
label: What version of R do you have installed?
description: "You can use `R --version` to find out (with docker: `docker run --rm flowr --version`)."
placeholder: ex. 4.2.3
placeholder: 4.4.2
validations:
required: false
- type: input
- type: dropdown
id: flowr-version
attributes:
label: What version of flowR did you use?
description: "You can run flowr as `flowr --version` to find out (with docker: `docker run --rm flowr --version`)."
options:
# START::Versions
- v1.0.0
- v1.1.0
- v1.1.1
- v1.1.2
- v1.1.3
- v1.1.4
- v1.1.5
- v1.1.6
- v1.2.0
- v1.2.1
- v1.3.0
- v1.3.1
- v1.3.10
- v1.3.11
- v1.3.12
- v1.3.13
- v1.3.14
- v1.3.2
- v1.3.3
- v1.3.4
- v1.3.5
- v1.3.6
- v1.3.7
- v1.3.8
- v1.3.9
- v1.4.0
- v1.4.1
- v1.4.2
- v1.5.0
- v1.5.1
- v1.5.2
- v2.0.0
- v2.0.1
- v2.0.10
- v2.0.11
- v2.0.12
- v2.0.13
- v2.0.14
- v2.0.15
- v2.0.16
- v2.0.17
- v2.0.18
- v2.0.19
- v2.0.2
- v2.0.20
- v2.0.21
- v2.0.22
- v2.0.23
- v2.0.24
- v2.0.25
- v2.0.3
- v2.0.4
- v2.0.5
- v2.0.6
- v2.0.7
- v2.0.8
- v2.0.9
- v2.1.0
- v2.1.1
- v2.1.10
- v2.1.11
- v2.1.12
- v2.1.2
- v2.1.3
- v2.1.4
- v2.1.5
- v2.1.6
- v2.1.7
- v2.1.8
- v2.1.9
- v2.2.0
- v2.2.1
- v2.2.3
- v1.1.0 (Sep 15, 2023)
- v1.1.1 (Sep 15, 2023)
- v1.1.2 (Sep 15, 2023)
- v1.1.3 (Sep 16, 2023)
- v1.1.4 (Sep 24, 2023)
- v1.1.5 (Sep 24, 2023)
- v1.1.6 (Oct 10, 2023)
- v1.2.0 (Oct 15, 2023)
- v1.2.1 (Oct 18, 2023)
- v1.3.0 (Oct 31, 2023)
- v1.3.1 (Nov 2, 2023)
- v1.3.2 (Nov 3, 2023)
- v1.3.3 (Nov 10, 2023)
- v1.3.4 (Nov 22, 2023)
- v1.3.5 (Dec 8, 2023)
- v1.3.6 (Dec 13, 2023)
- v1.3.7 (Jan 4, 2024)
- v1.3.8 (Jan 4, 2024)
- v1.3.9 (Jan 4, 2024)
- v1.3.10 (Jan 4, 2024)
- v1.3.11 (Jan 4, 2024)
- v1.3.12 (Jan 4, 2024)
- v1.3.13 (Jan 13, 2024)
- v1.3.14 (Jan 15, 2024)
- v1.4.0 (Jan 31, 2024)
- v1.4.1 (Jan 31, 2024)
- v1.4.2 (Mar 17, 2024)
- v1.5.0 (Mar 25, 2024)
- v1.5.1 (Apr 4, 2024)
- v1.5.2 (Apr 5, 2024)
- v2.0.0 (May 11, 2024)
- v2.0.1 (May 11, 2024)
- v2.0.2 (May 28, 2024)
- v2.0.3 (Jun 1, 2024)
- v2.0.4 (Jun 2, 2024)
- v2.0.5 (Jun 2, 2024)
- v2.0.6 (Jun 3, 2024)
- v2.0.7 (Jun 3, 2024)
- v2.0.8 (Jun 4, 2024)
- v2.0.9 (Jun 12, 2024)
- v2.0.10 (Jun 25, 2024)
- v2.0.11 (Jun 27, 2024)
- v2.0.12 (Aug 14, 2024)
- v2.0.13 (Aug 14, 2024)
- v2.0.14 (Aug 14, 2024)
- v2.0.15 (Aug 27, 2024)
- v2.0.16 (Aug 28, 2024)
- v2.0.17 (Aug 30, 2024)
- v2.0.18 (Aug 31, 2024)
- v2.0.19 (Sep 3, 2024)
- v2.0.20 (Sep 9, 2024)
- v2.0.21 (Sep 9, 2024)
- v2.0.22 (Sep 12, 2024)
- v2.0.23 (Sep 13, 2024)
- v2.0.24 (Sep 13, 2024)
- v2.0.25 (Sep 16, 2024)
- v2.1.0 (Oct 4, 2024)
- v2.1.1 (Oct 4, 2024)
- v2.1.2 (Oct 12, 2024)
- v2.1.3 (Oct 13, 2024)
- v2.1.4 (Nov 3, 2024)
- v2.1.5 (Nov 4, 2024)
- v2.1.6 (Nov 14, 2024)
- v2.1.7 (Nov 17, 2024)
- v2.1.8 (Nov 28, 2024)
- v2.1.9 (Dec 21, 2024)
- v2.1.10 (Jan 5, 2025)
- v2.1.11 (Jan 8, 2025)
- v2.1.12 (Jan 10, 2025)
- v2.2.0 (Jan 16, 2025)
- v2.2.1 (Jan 16, 2025)
- v2.2.3 (Feb 12, 2025)
- Unknown
- Unreleased/Dev
# END::Versions
# START::DefaultVersion
default: v2.2.3
default: 71
# END::DefaultVersion
validations:
required: true
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/broken-links-and-wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,27 @@ jobs:
update_wiki_page "Normalized AST" wiki:normalized-ast
update_wiki_page "Linting and Testing" wiki:linting-and-testing
update_wiki_page "Core" wiki:core
# check for an update in the versions! (including the updated name information)
ALL_TAGS=$( git tag --list --format="%(tag) (%(creatordate))" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | sed -E 's/^(v[0-9]+\.[0-9]+\.[0-9]+)\s*\(([a-zA-Z]+\s*)([a-zA-Z]+)\s*([0-9]+)\s*[0-9:]+\s+([0-9]+).*/\1 (\3 \4, \5)/' | sort -V)
NUM_OF_TAGS=$(echo "$ALL_TAGS" | wc -l)
LATEST_TAG=$(echo "$ALL_TAGS" | tail -n1)
# add (latest) to the latest tag
ALL_TAGS=$(sed -E "s/^$LATEST_TAG$/$LATEST_TAG (latest)/" <<< "$ALL_TAGS")
ALL_TAGS+="\nUnknown\nUnreleased/Dev"
ALL_TAGS=$(echo -e "$ALL_TAGS" | sed -E 's/^(.*)$/ - \1/')
cp .github/ISSUE_TEMPLATE/bug-report.yaml .github/ISSUE_TEMPLATE/bug-report.yaml.tmp
sed -i -E "/\s*# START::Versions/,/\s*# END::Versions/c\\# START::Versions\n$(echo "$ALL_TAGS" | sed 's/$/\\/' ) \n# END::Versions" .github/ISSUE_TEMPLATE/bug-report.yaml
sed -i -E "/\s*# START::DefaultVersion/,/\s*# END::DefaultVersion/c\\# START::DefaultVersion\n default: $((NUM_OF_TAGS - 1))\n# END::DefaultVersion" .github/ISSUE_TEMPLATE/bug-report.yaml
if ! diff -q .github/ISSUE_TEMPLATE/bug-report.yaml .github/ISSUE_TEMPLATE/bug-report.yaml.tmp; then
echo "Versions in the bug-report changed!"
echo "CHANGED=true" >> $GITHUB_ENV
CHANGED_ANY=true
git add -f .github/ISSUE_TEMPLATE/bug-report.yaml
CHANGED_FILES+=("bug-report.yaml")
else
echo "Versions in bug-report did not change!"
fi
if [ $CHANGED_ANY == "true" ]; then
git config --local user.email "[email protected]"
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,6 @@ jobs:
npm run publish-library
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: "⚙️ Update Issue-Templates"
run: |
# TODO: MOVE TO WIKI UPDATES AND CHECK FOR CHANGES
ALL_TAGS=$(git tag --list | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$')
# TOOD: MARK THE CURRENT VERSION
LATEST_TAG=$(echo "$ALL_TAGS" | sort -V | tail -n1)
ALL_TAGS+="\nUnreleased/Dev"
ALL_TAGS=$(echo -e "$ALL_TAGS" | sed -E 's/^(.*)$/ - \1/')
sed -i -E "/\s*# START::Versions/,/\s*# END::Versions/c\\# START::Versions\n$(echo "$ALL_TAGS" | sed 's/$/\\/' ) \n# END::Versions" .github/ISSUE_TEMPLATE/bug-report.yaml
sed -i -E "/\s*# START::DefaultVersion/,/\s*# END::DefaultVersion/c\\# START::DefaultVersion\n default: $LATEST_TAG\n# END::DefaultVersion" .github/ISSUE_TEMPLATE/bug-report.yaml
outputs:
version: ${{ steps.release.outputs.version }}

Expand Down

0 comments on commit d3f7ef3

Please sign in to comment.