Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automating updates of the repo structure #30

Open
atxr opened this issue Nov 10, 2022 · 4 comments
Open

Automating updates of the repo structure #30

atxr opened this issue Nov 10, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed Priority: Low The Issue will be address only if other tasks are done repo issue An issue that address the whole project/repo not a specific code feature

Comments

@atxr
Copy link
Contributor

atxr commented Nov 10, 2022

As you know, we keep track of the repo structure in the README, and it's a very useful feature for new developers on this project!
However, it's very boring to update it by hand at each PR.
I don't see any solution but I'm sure we can do something about this. At least but an alert or a github action that remind us to do it at each PR!

@atxr atxr added enhancement New feature or request help wanted Extra attention is needed repo issue An issue that address the whole project/repo not a specific code feature Priority: Low The Issue will be address only if other tasks are done labels Nov 10, 2022
@amtoine
Copy link
Member

amtoine commented Nov 10, 2022

i see a few ideas to do so:

  1. add headers to the files and directories to be in the structure summary, each header would contain the description in the README and then parse them and the whole repo to generate the new structure in the README
  2. keep track of the repo structure and notify with a script when the structure changes, not the content of the files
  3. the same but in a strutured file, like TOML or JSON

these are very not mature ideas, but what comes to me when reading your issue 😋

@ctmbl
Copy link
Contributor

ctmbl commented Nov 10, 2022

I was going to propose something slightly less complete than @amtoine but I like this "header" idea, however, how do you add a header to a directory ??

A simple github action that parses the README and compare it to tree or ls on the repo should do the job I think! That looks like quite some thinking and work but doesn't seems impossible!

@amtoine
Copy link
Member

amtoine commented Nov 10, 2022

I was going to propose something slightly less complete than @amtoine but I like this "header" idea, however, how do you add a header to a directory ??

well 🤔

  • in the files: a simple header with a string easy to grep or rg
  • in the directories, i.e. the items ending in "/" in the README, maybe a HEADER.txt or .header.txt file could do the trick
    something in that vein 😋

A simple github action that parses the README and compare it to tree or ls on the repo should do the job I think! That looks like quite some thinking and work but doesn't seems impossible!

definitely something that could be usefull 👍
but that does not solve the issue with the descriptions 🤔
see above 😉

@ctmbl
Copy link
Contributor

ctmbl commented Nov 10, 2022

  • in the files: a simple header with a string easy to grep or rg
  • in the directories, i.e. the items ending in "/" in the README, maybe a HEADER.txt or .header.txt file could do the trick
    something in that vein

I like that!

@ctmbl ctmbl moved this to Backlog in iScsc website Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed Priority: Low The Issue will be address only if other tasks are done repo issue An issue that address the whole project/repo not a specific code feature
Projects
Status: Backlog
Development

No branches or pull requests

3 participants