hive-forge: defer repo resolution to the accessor, not construction
This commit is contained in:
parent
cc2503d9c7
commit
fe7bf81d4a
14 changed files with 57 additions and 35 deletions
|
|
@ -73,7 +73,7 @@ pub struct Args {
|
|||
/// merge POST itself returns a non-2xx (e.g. Forgejo `405` when the PR cannot
|
||||
/// be merged).
|
||||
pub fn run(client: &Client, args: Args) -> Result<()> {
|
||||
let repo = client.repo();
|
||||
let repo = client.repo()?;
|
||||
let (owner, name) = client.owner_repo()?;
|
||||
let idx = index(args.number)?;
|
||||
let pull = client
|
||||
|
|
|
|||
Loading…
Reference in a new issue