Here's a thread of code-repository questions I've had while at PyCon. Feel free to boost them or reply to them, I'm doing them one at a time specifically so discussions will start

#PyConUS

Does Gtihub support an AGENTS.md in the .github repo for an org, or does each repo need to config this manually?

It seems like it _should_, but it might be they haven't written this feature yet?

#PyConUS #github

Is there a method yet for ensuring every repo in an org has a set of issue/PR labels? I wrote https://pypi.org/project/epithet/ for this years ago, and am wondering if I need to update it or if better solutions have emerged.

The concept of "org labels" exists, but only gets applied to NEW repos created.

#PyConUS #github

Client Challenge

What's the full set of things support in the .profile repo for @Codeberg orgs? The docs clearly state that a README.md works, but what about issue / PR templates? FUNDING.md? SECURITY.md? Code_of_conduct.md?

#PyConUS #codeberg

Is there a tool, for Codeberg or Github, that will retroactively apply PR/Issue template changes to open issues / PRs? Would such a tool be useful? I hear @django might have something like this.

#PyConUS #Github #Codeberg

@phildini Wouldn't CookieCutter potentially cover this?
@bitprophet hmmm… does it? Say more?
@phildini @bitprophet Cookiecutter or other template tools can create the files that back those from a template repo. copier can keep it in sync even.
Client Challenge

@phildini @bitprophet Yeh. It's the one I use.
@phildini @bitprophet All the things you described in a repo are just files in `./.github/` or related, so I would create a skeleton with all of those in it, and a `copier.yaml` to tie it together. In an org… you could actually put it in a subdirectory of the org repo as a pattern, which actually might be kind of convenient.

@phildini @bitprophet One thing I appreciate about copier over some of them is that it accepts a subdirectory for the template, so you can even colocate it with a repository that has different rules: https://github.com/WorldconVotingSystems/nomnom/blob/main/copier.yml

I’ve even managed (in that repo) to tie it into automated testing.

nomnom/copier.yml at main · WorldconVotingSystems/nomnom

Hugo Awards nominating and voting. Contribute to WorldconVotingSystems/nomnom development by creating an account on GitHub.

GitHub

@phildini @Codeberg https://forgejo.org/docs/latest/user/profile/

I believe README is the only one that's picked up by the software, but you can include other info and link it.

Profile customization | Forgejo – Beyond coding. We forge.

@phildini In the past I've used GitHub Actions to sync labels from a file to a repo:

https://github.com/termcolor/termcolor/blob/main/.github/labels.yml
https://github.com/termcolor/termcolor/blob/main/.github/workflows/labels.yml

But I expect it's much easier via a `gh` command now.
#GitHub #GitHubActions #ghCLI

termcolor/.github/labels.yml at main · termcolor/termcolor

ANSI color formatting for output in terminal. Contribute to termcolor/termcolor development by creating an account on GitHub.

GitHub