docs: merge HACKING.md into CONTRIBUTING.md, fewer files in root - #2734
Conversation
This commit moves content without changing any of it (except appropriate adjustments of headings). - Setting up a dev environment: moved straight across - Testing: merged with "Tests" - Maintaining the documentation: merged with "Documentation" - Dependencies: moved to under "Pull requests" - Dev tools: merged with "Setting up a dev environment" - Releases: moved straight across - Updating the Charmcraft profiles: moved to a top-level section In addition, within the document: - Moved "Coding style" up to a sub-section under "Pull requests" I also added an extra blank line between top-level sections.
There was a problem hiding this comment.
Thanks for the PR.
I read through the changes, and cross-check with the details in the PR description. Everything looks great.
I have a small comment on which URL we should reference the style docs in AGENTS.md. I think raw.githubcontent.com works better, but happy to go with github.com from the charm-tech repo guide to be consistent.
EDIT: there is one thing I spot from CONTRIBUTING.md. I saw a mix of multi-line paragraph and one-line paragraph. I recall we made a decision to switch to one-line paragraph only (if I remember correctly). This could be part of the follow up PR too.
|
@tonyandrewmeyer Mind reviewing this one in the next couple of days? |
tonyandrewmeyer
left a comment
There was a problem hiding this comment.
It seems odd to have the code of conduct in .github, given that it's not really GitHub specific in any way. I suppose that since it's now a pointer to a CoC somewhere else, I should think of this not as "the CoC" but "the GitHub pointer to the CoC" and justify it that way. I don't think it gains much to move it, but I'm not strongly opposed.
I'm not a fan of release.py in .github - in other PR discussions recently we talked about a scripts folder or similar, where this could live. However, James and I are meant to rework this system in the next couple of weeks, and based on our chat today I think almost everything will end up in charm-tech-code and workflow YAML files, so moving it now is fine.
+1 on moving the sbomber files. It's tempting to try to get rid of them instead (passing arguments to the tool rather than having a manifest file at all) but I'm happy to leave that for a different PR.
It does seem like there is a difference in the intended content in HACKING.md and CONTRIBUTING.md, but on the other hand I think the team agreed that they could merge, and almost all the other repos only have CONTRIBUTING.md, so I like the consistency. I've lightly reviewed this but mostly assumed that it's roughly the same content. Now that it's one file, a good follow up would be to see if it can be trimmed a bit, I think -- perhaps this would be good for Matt, since it's probably easiest to know what's really useful when you're coming with fresh eyes?
My only significant concern here is whether agents will still make use of the style guide. If we've validated that they (typically) will, then everything's good with me.
|
FWIW I'd go with CoC in the root over .github/. Another cleanup opportunity would be migrating to a modern build backend, which would let us drop |
Oh, that was bad review on my part, I forgot to look at what was still there.
|
Tony was on the fence. I'd like to keep it under .github, especially given that it's not really a CoC, but just a pointer to the Ubuntu one, so it really only exists for the sake of the GitHub tab UI showing it. We also mention it in README.md if someone is using Ctrl-F or grep/rg to search for it.
Yeah, that would be great, but leaving it for a separate PR.
Agreed.
I was on the fence about this one, but on balance I think CHANGES.md is useful enough to be in the root.
Ah, good catch -- done. |
|
Opened #2743 to track moving to a modern backend (and removing MANIFEST.in). |
This PR makes several changes to reduce the number of files in the root directory of the repo.
Most significantly, it moves the content of
HACKING.mdintoCONTRIBUTING.mdwithout changing any of it (except minor adjustments to the headings):Within
CONTRIBUTING.md:In addition, the PR:
CODE_OF_CONDUCT.mdinto the.githubdir (GitHub still shows a tab).github.github(I know we're going to replace it soon, but no harm in the meantime -- we run it with tox.ini anyway)STYLE.md, as its content is now at https://github.com/canonical/charm-tech/tree/main/styleThe only change I'm not sure about is how I'm referencing the new style guides in AGENTS.md. Will agents pick those up?
I think we should do a follow-up PR to clean up CONTRIBUTING.md a bit, as I think there's a bit of duplicate content there now, and probably some things that can be removed or shortened. Tracked in #2744
Fixes #2487