Closed maxdeviant closed 4 years ago
The repo
argument needs to be the same as REPO
in https://github.com/owner/REPO
. Otherwise, the URLs will be wrong. I'm not sure whether that was my fault or or not.
Based on that it seems like using spago.name
would be incorrect, as we typically drop the purescript-
prefix for Spago.
That argument ought to be variables.repo
, which either uses the user's provided --repo
argument or falls back to purescript-{{ spago.name }}
and which is defined a few lines above.
I ran into this while migrating purescript-media-types to follow the Contributors library guidelines.
I had previously done much of the work to migrate the library by hand (before learning about
contrib-updater
), so I went back to runcontrib-updater
to fill in the gaps (mainly by generating the changelog).Here is the command I ran:
And I received this error:
After some debugging I realized that it was using the wrong repository name when trying to list the releases:
It should be
purescript-media-types
, not justmedia-types
. I suspect the fact that I partially ported the library by hand before runningcontrib-updater
could be the source of this issue.Running
contrib-updater
with the repo name didn't make a difference either:It looks like the issue is here:
Should we be passing
variables.repo
as the repo instead ofspago.name
?