diff --git a/AGENTS.md b/AGENTS.md
index b4ae0548..0d1526e2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,10 +1,10 @@
-# Instructions for rust-project-goals work
+# Instructions for goals work
-This file provides instructions for contributing to the `rust-project-goals` repository. It is intended to be self-contained: everything needed to work effectively in this repository is documented here or cited with a precise path.
+This file provides instructions for contributing to the `goals` repository. It is intended to be self-contained: everything needed to work effectively in this repository is documented here or cited with a precise path.
## Repository overview
-This repository hosts the Rust project's **goal proposals** -- a bottom-up process where contributors propose goals, Rust teams review them, and accepted goals are tracked to completion. The repository is published as an mdBook site at .
+This repository hosts the Rust project's **goal proposals** -- a bottom-up process where contributors propose goals, Rust teams review them, and accepted goals are tracked to completion. The repository is published as an mdBook site at .
There are two kinds of content:
@@ -83,7 +83,7 @@ Immediately after the title, a two-column markdown table with the header `| Meta
| `Point of contact` | Yes | Parsed | Single GitHub `@username` |
| `Status` | Yes | Parsed | `Proposed`, `Invited`, `Accepted`, `Proposed for mentorship`, or `Not accepted` |
| `Short title` | No | Parsed | Alternate short title for tables; defaults to the `#` heading |
-| `Tracking issue` | Note [1] | Parsed | Must contain `rust-project-goals#NNN` if present |
+| `Tracking issue` | Note [1] | Parsed | Must contain `rust-lang/goals#NNN` if present |
| `Other tracking issues` | No | Conventional | For issues in other repos; use `org/repo#NNN` format |
| `Zulip channel` | No | Conventional | Link to Zulip stream |
| `Help wanted` | No | Conventional | Informational |
diff --git a/README.md b/README.md
index cee15001..b2808ced 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
-# rust-project-goals
+# Rust Project Goals
Check out the [website](https://rust-lang.github.io/goals/).
diff --git a/book.toml b/book.toml
index 3717dd47..4a738fae 100644
--- a/book.toml
+++ b/book.toml
@@ -29,9 +29,9 @@ ignore_users = [
[output.html]
-git-repository-url = "https://github.com/rust-lang/rust-project-goals"
-edit-url-template = "https://github.com/rust-lang/rust-project-goals/edit/main/{path}"
-site-url = "/rust-project-goals/"
+git-repository-url = "https://github.com/rust-lang/goals"
+edit-url-template = "https://github.com/rust-lang/goals/edit/main/{path}"
+site-url = "/goals/"
additional-js = ["mermaid.min.js", "mermaid-init.js"]
[output.html.fold]
diff --git a/crates/mdbook-goals/src/goal_preprocessor.rs b/crates/mdbook-goals/src/goal_preprocessor.rs
index dc0dedd7..cf56f382 100644
--- a/crates/mdbook-goals/src/goal_preprocessor.rs
+++ b/crates/mdbook-goals/src/goal_preprocessor.rs
@@ -950,8 +950,7 @@ impl<'c> GoalPreprocessorWithContext<'c> {
"🌐 Loading issues from GitHub API for milestone: {}",
milestone
);
- let repository =
- rust_project_goals::gh::issue_id::Repository::new("rust-lang", "rust-project-goals");
+ let repository = rust_project_goals::gh::issue_id::Repository::new("rust-lang", "goals");
let issues =
rust_project_goals::gh::issues::list_issues_in_milestone(&repository, milestone)
.map_err(|e| {
@@ -1272,9 +1271,8 @@ impl<'c> GoalPreprocessorWithContext<'c> {
}
.ok_or_else(|| anyhow::anyhow!("Invalid end date calculation for {}-{:02}", year, month))?;
- // Get repository from context - assuming rust-lang/rust-project-goals as default
- let repository =
- rust_project_goals::gh::issue_id::Repository::new("rust-lang", "rust-project-goals");
+ // Get repository from context - assuming rust-lang/goals as default
+ let repository = rust_project_goals::gh::issue_id::Repository::new("rust-lang", "goals");
// Use cached issues for this milestone
let issues = self.get_or_load_milestone_issues(milestone)?;
@@ -1309,9 +1307,8 @@ impl<'c> GoalPreprocessorWithContext<'c> {
team_name, milestone
);
- // Get repository from context - assuming rust-lang/rust-project-goals as default
- let repository =
- rust_project_goals::gh::issue_id::Repository::new("rust-lang", "rust-project-goals");
+ // Get repository from context - assuming rust-lang/goals as default
+ let repository = rust_project_goals::gh::issue_id::Repository::new("rust-lang", "goals");
// Use cached issues for this milestone
let issues = self.get_or_load_milestone_issues(milestone)?;
diff --git a/crates/rust-project-goals-cli/src/main.rs b/crates/rust-project-goals-cli/src/main.rs
index 9359b947..dc11e87f 100644
--- a/crates/rust-project-goals-cli/src/main.rs
+++ b/crates/rust-project-goals-cli/src/main.rs
@@ -24,7 +24,7 @@ struct Opt {
cmd: Command,
/// Repository to use if applicable
- #[arg(long, default_value = "rust-lang/rust-project-goals")]
+ #[arg(long, default_value = "rust-lang/goals")]
repository: Repository,
}
@@ -51,7 +51,7 @@ enum Command {
dry_run: bool,
},
- /// Use `gh` CLI tool to create issues on the rust-lang/rust-project-goals repository
+ /// Use `gh` CLI tool to create issues on the rust-lang/goals repository
Issues {
path: PathBuf,
diff --git a/crates/rust-project-goals-cli/src/review.rs b/crates/rust-project-goals-cli/src/review.rs
index d82b50f6..16fd39c7 100644
--- a/crates/rust-project-goals-cli/src/review.rs
+++ b/crates/rust-project-goals-cli/src/review.rs
@@ -13,7 +13,7 @@ use rust_project_goals::{
};
use walkdir::WalkDir;
-const BASE_URL: &str = "https://rust-lang.github.io/rust-project-goals";
+const BASE_URL: &str = "https://rust-lang.github.io/goals";
/// Generate a review summary for the given team.
pub fn review(team_name: &str, milestone: Option<&str>) -> Result<()> {
diff --git a/crates/rust-project-goals-cli/src/rfc.rs b/crates/rust-project-goals-cli/src/rfc.rs
index c51225e5..94800a11 100644
--- a/crates/rust-project-goals-cli/src/rfc.rs
+++ b/crates/rust-project-goals-cli/src/rfc.rs
@@ -101,9 +101,11 @@ fn rewrite_md_links(text: &str, timeframe: &str) -> String {
let clean_path = path_stem.trim_start_matches("../");
if clean_path.contains('/') || path_stem.starts_with("../") {
- format!("](https://rust-lang.github.io/rust-project-goals/{clean_path}.html{fragment})")
+ format!("](https://rust-lang.github.io/goals/{clean_path}.html{fragment})")
} else {
- format!("](https://rust-lang.github.io/rust-project-goals/{timeframe}/{clean_path}.html{fragment})")
+ format!(
+ "](https://rust-lang.github.io/goals/{timeframe}/{clean_path}.html{fragment})"
+ )
}
})
.to_string()
@@ -120,9 +122,11 @@ fn rewrite_ref_link_urls(ref_links: &mut BTreeMap, timeframe: &s
let rest = caps.get(4).map_or("", |m| m.as_str());
let clean_path = path_stem.trim_start_matches("../");
if clean_path.contains('/') || path_stem.starts_with("../") {
- *def = format!("{prefix}https://rust-lang.github.io/rust-project-goals/{clean_path}.html{rest}");
+ *def = format!("{prefix}https://rust-lang.github.io/goals/{clean_path}.html{rest}");
} else {
- *def = format!("{prefix}https://rust-lang.github.io/rust-project-goals/{timeframe}/{clean_path}.html{rest}");
+ *def = format!(
+ "{prefix}https://rust-lang.github.io/goals/{timeframe}/{clean_path}.html{rest}"
+ );
}
}
}
@@ -683,7 +687,9 @@ fn issue<'doc>(timeframe: &str, document: &'doc GoalDocument) -> Result String {
let goal_file = document.link_path.file_stem().unwrap().to_str().unwrap();
- format!("[{timeframe}/{goal_file}](https://rust-lang.github.io/rust-project-goals/{timeframe}/{goal_file}.html)")
+ format!(
+ "[{timeframe}/{goal_file}](https://rust-lang.github.io/goals/{timeframe}/{goal_file}.html)"
+ )
}
fn issue_text(timeframe: &str, document: &GoalDocument) -> Result {
diff --git a/crates/rust-project-goals-cli/src/team_repo.rs b/crates/rust-project-goals-cli/src/team_repo.rs
index f50b1b79..acf9d074 100644
--- a/crates/rust-project-goals-cli/src/team_repo.rs
+++ b/crates/rust-project-goals-cli/src/team_repo.rs
@@ -91,10 +91,7 @@ fn ensure_person_file(owner: &str, team_repo_path: &std::path::PathBuf) -> Resul
fn team_file(owners: &BTreeSet<&str>) -> Result {
let mut out = String::new();
- writeln!(
- out,
- "# Auto-generated from the rust-project-goals repository"
- )?;
+ writeln!(out, "# Auto-generated from the goals repository")?;
writeln!(out, "name = \"goal-owners\"")?;
writeln!(out, "kind = \"marker-team\"")?;
writeln!(out, "")?;
diff --git a/crates/rust-project-goals-cli/src/updates.rs b/crates/rust-project-goals-cli/src/updates.rs
index 2e3ef06b..1e05d335 100644
--- a/crates/rust-project-goals-cli/src/updates.rs
+++ b/crates/rust-project-goals-cli/src/updates.rs
@@ -271,7 +271,7 @@ fn prepare_goals(
issue_number: issue.number,
issue_assignees: comma(&issue.assignees),
issue_url: issue_id.url(),
- issue_link_text: format!("rust-lang/rust-project-goals#{}", issue.number),
+ issue_link_text: format!("rust-lang/goals#{}", issue.number),
progress,
has_help_wanted,
help_wanted,
diff --git a/crates/rust-project-goals-cli/src/updates/templates.rs b/crates/rust-project-goals-cli/src/updates/templates.rs
index d467a6cc..5533e424 100644
--- a/crates/rust-project-goals-cli/src/updates/templates.rs
+++ b/crates/rust-project-goals-cli/src/updates/templates.rs
@@ -184,7 +184,7 @@ pub struct UpdatesGoal {
/// URL of the tracking issue
pub issue_url: String,
- /// Link text for the issue (e.g., "rust-lang/rust-project-goals#123")
+ /// Link text for the issue (e.g., "rust-lang/goals#123")
pub issue_link_text: String,
/// True if the issue is closed.
diff --git a/crates/rust-project-goals/src/gh/issue_id.rs b/crates/rust-project-goals/src/gh/issue_id.rs
index 1cc35c75..85fa5fbf 100644
--- a/crates/rust-project-goals/src/gh/issue_id.rs
+++ b/crates/rust-project-goals/src/gh/issue_id.rs
@@ -6,7 +6,7 @@ pub struct Repository {
/// Something like `rust-lang`
pub org: String,
- /// Something like `rust-project-goals`
+ /// Something like `goals`
pub repo: String,
}
diff --git a/crates/rust-project-goals/src/gh/issues.rs b/crates/rust-project-goals/src/gh/issues.rs
index 77ded4e1..7b187089 100644
--- a/crates/rust-project-goals/src/gh/issues.rs
+++ b/crates/rust-project-goals/src/gh/issues.rs
@@ -262,7 +262,7 @@ pub fn create_issue(
// Output in stdout looks like
//
- // https://github.com/rust-lang/rust-project-goals/issues/413}
+ // https://github.com/rust-lang/goals/issues/413}
for line in str::from_utf8(&output.stdout)?.lines() {
if let Some(issue_id) = IssueId::from_url(line.trim()) {
diff --git a/crates/rust-project-goals/src/goal.rs b/crates/rust-project-goals/src/goal.rs
index 564fc539..cea78736 100644
--- a/crates/rust-project-goals/src/goal.rs
+++ b/crates/rust-project-goals/src/goal.rs
@@ -122,7 +122,10 @@ impl FundingStatus {
FundingStatus::No
} else if s.eq_ignore_ascii_case("partial") {
FundingStatus::Partial(None)
- } else if let Some(rest) = s.strip_prefix("Partial by ").or_else(|| s.strip_prefix("partial by ")) {
+ } else if let Some(rest) = s
+ .strip_prefix("Partial by ")
+ .or_else(|| s.strip_prefix("partial by "))
+ {
FundingStatus::Partial(Some(rest.trim().to_string()))
} else if s.eq_ignore_ascii_case("full") {
FundingStatus::Funded(None)
@@ -1599,10 +1602,10 @@ fn extract_metadata(sections: &[Section]) -> Result