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
|
case Blacklist.checkResult (packageName updateEnv) of
|
||||||
Right () -> lift $ Check.result updateEnv result
|
Right () -> lift $ Check.result updateEnv result
|
||||||
Left msg -> pure msg
|
Left msg -> pure msg
|
||||||
d <- Nix.getDescription attrPath
|
d <- Nix.getDescription attrPath <|> return T.empty
|
||||||
u <- Nix.getHomepage attrPath
|
u <- Nix.getHomepage attrPath <|> return T.empty
|
||||||
let metaDescription =
|
let metaDescription =
|
||||||
"\n\nmeta.description for " <> attrPath <> " is: '" <> d <> "'."
|
if d == T.empty
|
||||||
|
then ""
|
||||||
|
else "\n\nmeta.description for " <> attrPath <> " is: '" <> d <> "'."
|
||||||
let metaHomepage =
|
let metaHomepage =
|
||||||
"\n\nmeta.homepage for " <> attrPath <> " is: '" <> u
|
if u == T.empty
|
||||||
|
then ""
|
||||||
|
else "\n\nmeta.homepage for " <> attrPath <> " is: '" <> u
|
||||||
releaseUrlMessage <-
|
releaseUrlMessage <-
|
||||||
(do msg <- GH.releaseUrl newSrcUrl
|
(do msg <- GH.releaseUrl newSrcUrl
|
||||||
return ("\n[Release on GitHub](" <> msg <> ")\n\n")) <|>
|
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.
|
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from $repologyLink.
|
||||||
$brokenMsg
|
$brokenMsg
|
||||||
$metaDescription
|
$metaDescription
|
||||||
|
$metaHomepage
|
||||||
$releaseUrlMessage
|
$releaseUrlMessage
|
||||||
$compareUrlMessage
|
$compareUrlMessage
|
||||||
<details>
|
<details>
|
||||||
|
Loading…
Reference in New Issue
Block a user