mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-11-29 08:51:48 +03:00
make meta homepage and meta description optional
This commit is contained in:
parent
5eb0cbed2d
commit
a780689927
@ -177,12 +177,16 @@ publishPackage log updateEnv oldSrcUrl newSrcUrl attrPath result opDiff = do
|
||||
case Blacklist.checkResult (packageName updateEnv) of
|
||||
Right () -> lift $ Check.result updateEnv result
|
||||
Left msg -> pure msg
|
||||
d <- Nix.getDescription attrPath
|
||||
u <- Nix.getHomepage attrPath
|
||||
d <- Nix.getDescription attrPath <|> return T.empty
|
||||
u <- Nix.getHomepage attrPath <|> return T.empty
|
||||
let metaDescription =
|
||||
"\n\nmeta.description for " <> attrPath <> " is: '" <> d <> "'."
|
||||
if d == T.empty
|
||||
then ""
|
||||
else "\n\nmeta.description for " <> attrPath <> " is: '" <> d <> "'."
|
||||
let metaHomepage =
|
||||
"\n\nmeta.homepage for " <> attrPath <> " is: '" <> u
|
||||
if u == T.empty
|
||||
then ""
|
||||
else "\n\nmeta.homepage for " <> attrPath <> " is: '" <> u
|
||||
releaseUrlMessage <-
|
||||
(do msg <- GH.releaseUrl newSrcUrl
|
||||
return ("\n[Release on GitHub](" <> msg <> ")\n\n")) <|>
|
||||
@ -273,6 +277,7 @@ prMessage updateEnv isBroken metaDescription metaHomepage releaseUrlMessage comp
|
||||
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from $repologyLink.
|
||||
$brokenMsg
|
||||
$metaDescription
|
||||
$metaHomepage
|
||||
$releaseUrlMessage
|
||||
$compareUrlMessage
|
||||
<details>
|
||||
|
Loading…
Reference in New Issue
Block a user