Watch
0
0
Fork
You've already forked hyperhive
0

use a neutral forge name in link-form placeholders, schema examples and tests

Codeberg does not accept AI-assisted contributions, so it should not be
the example we put in front of operators. The placeholders now read
myforge / forge.example.org; the tests use the same neutral names.
This commit is contained in:
iris 2026-10-04 15:51:20 +02:00
commit 78e9f2ca67
5 changed files with 34 additions and 34 deletions

View file

@ -693,8 +693,8 @@ pub(crate) mod tests {
json!({"value": "t0k3n-old"}),
)
.with(
"swarm/agents/atlas/forge/codeberg",
json!({"value": "t0k3n-forge", "url": "https://codeberg.org"}),
"swarm/agents/atlas/forge/myforge",
json!({"value": "t0k3n-forge", "url": "https://forge.example.org"}),
)
.with(
"swarm/agents/atlas/github-token",
@ -735,8 +735,8 @@ pub(crate) mod tests {
row(AccountKind::Matrix, "old", None, false),
row(
AccountKind::Forgejo,
"codeberg",
Some("https://codeberg.org"),
"myforge",
Some("https://forge.example.org"),
false
),
row(AccountKind::Github, "github", Some("github.com"), false),
@ -802,7 +802,7 @@ pub(crate) mod tests {
)
.await
.expect("stored");
remove_plain::<forge::Account>(&store, "swarm/agents/atlas/forge/codeberg")
remove_plain::<forge::Account>(&store, "swarm/agents/atlas/forge/myforge")
.await
.expect("stored");
remove_plain::<github::Credential>(&store, "swarm/agents/atlas/github-token")
@ -812,7 +812,7 @@ pub(crate) mod tests {
deleted(&store),
[
"swarm/agents/atlas/matrix/catgirl",
"swarm/agents/atlas/forge/codeberg",
"swarm/agents/atlas/forge/myforge",
"swarm/agents/atlas/github-token",
]
);
@ -828,7 +828,7 @@ pub(crate) mod tests {
None::<NoRevoke>,
)
.await,
remove_plain::<forge::Account>(&store, "swarm/agents/atlas/forge/codeberg").await,
remove_plain::<forge::Account>(&store, "swarm/agents/atlas/forge/myforge").await,
remove_plain::<github::Credential>(&store, "swarm/agents/atlas/github-token").await,
];
for result in results {