mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-11-10 13:24:58 +03:00
parent
4a1b489af7
commit
bc52075a1f
@ -225,18 +225,21 @@ publishPackage log updateEnv oldSrcUrl newSrcUrl attrPath result = do
|
||||
Git.cleanAndResetToMaster
|
||||
return True
|
||||
|
||||
repologyUrl :: UpdateEnv -> Text
|
||||
repologyUrl = packageName >>> T.toLower
|
||||
|
||||
commitMessage :: UpdateEnv -> Text -> Text
|
||||
commitMessage updateEnv attrPath =
|
||||
let oV = oldVersion updateEnv
|
||||
nV = newVersion updateEnv
|
||||
pN = packageName updateEnv
|
||||
repologyLink = repologyUrl updateEnv
|
||||
in [text|
|
||||
$attrPath: $oV -> $nV
|
||||
|
||||
Semi-automatic update generated by
|
||||
https://github.com/ryantm/nixpkgs-update tools. This update was made
|
||||
based on information from
|
||||
https://repology.org/metapackage/$pN/versions.
|
||||
$repologyLink
|
||||
|]
|
||||
|
||||
brokenWarning :: Bool -> Text
|
||||
@ -260,12 +263,12 @@ prMessage updateEnv isBroken metaDescription releaseUrlMessage compareUrlMessage
|
||||
let brokenMsg = brokenWarning isBroken
|
||||
oV = oldVersion updateEnv
|
||||
nV = newVersion updateEnv
|
||||
pN = packageName updateEnv
|
||||
repologyLink = repologyUrl updateEnv
|
||||
result = toTextIgnore resultPath
|
||||
in [text|
|
||||
$attrPath: $oV -> $nV
|
||||
|
||||
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/$pN/versions.
|
||||
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from $repologyLink.
|
||||
$brokenMsg
|
||||
$metaDescription
|
||||
$releaseUrlMessage
|
||||
|
Loading…
Reference in New Issue
Block a user