chore: align with governance repo conventions #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/governance-alignment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Bring the repo up to par with the standards in
governance/CHECKLIST.md,governance/CI.md, andgovernance/FORGEJO_ORGS.md, copying the patterns already in sibling Pandora's Box / NiceGuyIT repos (youtrack-cli,monkey,binaries).CI workflows
check.yml: addSwatinem/rust-cache@v2(perCI.md:106, "the single biggest win on cold check runs"), add therustup component add clippy rustfmtstep, and switchcargo test --libtocargo testsince this crate has no library target.build-oci-image.yml: full rewrite to theyoutrack-clipattern. Usevars.RUNS_ON_OPENSUSE_BASE_LATEST, set up adocker-containerbuildx builder, compute versioned tags fromoci-build/get-tags.nu, passGIT_SHA/BUILD_DATE/CARGO_BUILD_JOBSas build-args (replacing the hard-codedlatest-only publish), publish a SHA-256 sidecar, and authenticate withsecrets.FORGEJO_PAT. The workflow now also triggers onv*tags and is path-scoped.release.yml: switch tovars.RUNS_ON_OPENSUSE_BASE_LATESTand remove a stray em-dash.create-release.yml: remove a stray em-dash.oci-build/
oci-build/get-tags.numirroring the canonical sibling version: mapsgit describeoutput to[<tag>, latest]or[latest].oci-build/Dockerfile: rename theartifactstage toexport(perCHECKLIST.md:48builder/runtime/export convention), wire BuildKit cache mounts on/usr/local/cargo/{registry,git}, addorg.opencontainers.image.sourceLABEL pointing at the current Pandora's Box org (FORGEJO_ORGS.mdmove-mechanics step 3), and renameGIT_HASHbuild-arg toGIT_SHA(CHECKLIST.md:8).oci-build/build.nu: track the rename and switch todocker buildx build --target export.Internal alignment
Cargo.toml: addrepository = "https://dev.a8n.run/pandoras-box/explorer-bookmarks"(FORGEJO_ORGS.mdmove-mechanics step 2).Cargo.lock: refresh to match the package version (stale from a prior bump).build.rs/src/main.rs: renameGIT_HASH->GIT_SHAfor symmetry with the build-arg.LICENSE->LICENSE.md(CHECKLIST.md:17).justfile: addcheck-fmt,check-clippy,check-build,check-docker,test,lint; makecheckthe umbrella recipe per the checklist. SaaS-only recipes (compose, migrate, ensure-env) remain N/A for a Windows CLI.build.rs: re-run throughrustfmt 1.8.0to satisfy the newcheck.ymlformatting step.src/main.rstest helpermake_valid_config(): add the missingautosave_task_name/autosave_intervalfields. Without this fixcargo testdoes not compile - it had been broken since the auto-save feature landed.Out of scope
governance/FORGEJO_ORGS.md:41still lists this repo under NiceGuyIT, but the repo lives in Pandora's Box. That row should move and the tallies should be updated, but it is a change in the governance repo and belongs in a separate PR.Test plan
cargo fmt --checkcleancargo clippy --all-targets -- -D warningscleancargo build --all-targetscleancargo test-> 36 passeddocker buildx build --target export ... --file oci-build/Dockerfile .produces a 1.5 MB Windows.exenu oci-build/get-tags.nu --joined->v0.3.3,latestBuild Windows binaryrun on Forgejo and confirm the binary lands athttps://dev.a8n.run/api/packages/pandoras-box/generic/explorer-bookmarks/{v0.3.3,latest}/explorer-bookmarks-x86_64.exetogether with the.sha256sidecar.Checkworkflow stays green on the new runner config.