Skip to content

Change checkver of intellij-jbr21* and intellij-jbr17* to GitHub releases #548

@WordlessEcho

Description

@WordlessEcho

Bug Report

Package Name: intellij-jbr21* and intellij-jbr17*

Current Behaviour

intellij-jbr21*: current version is 21.0.7-b1038.54
intellij-jbr17*: current version is 17.0.11-b1312.2

Expected Behaviour

intellij-jbr21* should be 21.0.7b1038.58
intellij-jbr17*: should be 17.0.14b1367.22

Additional context/output

Possible Solution

Current checkver of intellij-jbr* is detecting by README.md. But README.md is updated not in time.
Change it to detecting tag in GitHub releases:

"checkver": {
    "url": "https://api.github.com/repos/JetBrains/JetBrainsRuntime/releases",
    "jsonpath": "$[?(@.tag_name =~ /^jbr-release-21\\./)].tag_name",
    "regex": "jbr-release-21\\.(?<Version>[\\d.]+)(?<Build>[\\w]+)\\.(?<Patch>[\\d]+)",
    "replace": "21.${Version}-${Build}.${Patch}"
},
"checkver": {
    "url": "https://api.github.com/repos/JetBrains/JetBrainsRuntime/releases",
    "jsonpath": "$[?(@.tag_name =~ /^jbr-release-17\\./)].tag_name",
    "regex": "jbr-release-17\\.(?<Version>[\\d.]+)(?<Build>[\\w]+)\\.(?<Patch>[\\d]+)",
    "replace": "17.${Version}-${Build}.${Patch}"
},

System details

Windows version: [e.g. 7, 8, 10] 11

OS architecture: [e.g. 32bit, 64bit] 64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      5      2

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions