address argus: drop issue tags from clone/pr-create module docs, fix stale knowledge wording
This commit is contained in:
parent
c103ae5f10
commit
79101edc2f
3 changed files with 4 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ pub struct Client {
|
|||
http: HttpClient,
|
||||
base: String,
|
||||
/// Per-agent forge token. Kept alongside the pre-built auth header
|
||||
/// so verbs that shell out to `git` (e.g. `knowledge`) can assemble
|
||||
/// so verbs that shell out to `git` (e.g. `clone`) can assemble
|
||||
/// an authenticated push URL without re-reading the token file.
|
||||
token: String,
|
||||
/// Default repo used when a verb doesn't carry an explicit
|
||||
|
|
@ -74,7 +74,7 @@ impl Client {
|
|||
/// token into the base URL's authority: `http://<user>:<token>@host/<repo>.git`.
|
||||
/// The user comes from `HIVE_LABEL` (the agent's forge login),
|
||||
/// falling back to `oauth2` which Forgejo also accepts as the
|
||||
/// token-bearer username. Used by `knowledge` to clone/push.
|
||||
/// token-bearer username. Used by `clone` to clone/push.
|
||||
#[must_use]
|
||||
pub fn authed_git_url(&self, repo: &str) -> String {
|
||||
let user = std::env::var("HIVE_LABEL").unwrap_or_else(|_| "oauth2".to_owned());
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
//! with credentials auto-injected, so agents don't hand-assemble
|
||||
//! token-bearing URLs. The repo is the standard `-r/--repo` (default
|
||||
//! `HIVE_FORGE_REPO`). Pairs with `pr-create --agit`: clone, edit +
|
||||
//! commit normally, then open a PR via the `AGit` ref (closes #1399).
|
||||
//! commit normally, then open a PR via the `AGit` ref.
|
||||
|
||||
use std::process::Command;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
//! (run from inside a cloned repo), which opens a PR even when the user
|
||||
//! is a read-only collaborator who can't push branches. Re-running with
|
||||
//! the same `--topic` updates the open PR. This is the path agents use
|
||||
//! to contribute to `internal/knowledge`; pair it with `hive-forge clone`
|
||||
//! (closes #1399).
|
||||
//! to contribute to `internal/knowledge`; pair it with `hive-forge clone`.
|
||||
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue