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

Automatically update readme anchors with doctoc #4906

Conversation

fchatterji
Copy link
Contributor

@fchatterji fchatterji commented Jun 25, 2023

What github issue is this PR for, if any?

Resolves #2516

What changed, and why?

Added a yml file to configure the doctoc github action
Automatically updated the readme table of content on push

Note: the github token used by the bot needs to be correctly configured for it to work (needs write permission or maybe a github token, see https://github.com/marketplace/actions/toc-generator for more details). It works on my repo, I don't know if it will work on casa

How will this affect user permissions?

  • Volunteer permissions:
  • Supervisor permissions:
  • Admin permissions:

How is this tested? (please write tests!) 💖💪

No tests, i saw it work on my local repo

Screenshots please :)

Feelings gif (optional)

What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:
![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)

Feedback please? (optional)

We are very interested in your feedback! Please give us some :) https://forms.gle/1D5ACNgTs2u9gSdh9

name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@compwron compwron merged commit 12d40e8 into rubyforgood:main Jun 28, 2023
@fchatterji fchatterji deleted the automatically_update_readme_anchors_with_doctoc branch June 28, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically update readme anchors after updating readme via gh actions
2 participants