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

feat: make wiki content changeable by files #898

Closed
wants to merge 3 commits into from
Closed

feat: make wiki content changeable by files #898

wants to merge 3 commits into from

Conversation

1halon
Copy link

@1halon 1halon commented Apr 3, 2024

Due to GitHub's way non-collaborator users can change wiki content if allowed through settings but it doesn't have any way of requiring an approval from the collaborators beforehand so I implemented a simple workaround through GitHub Actions workflows but it should be noted that it doesn't work two-way, which means if you change the content through web browser it won't sync the files. (I tried a couple solutions for syncing and tried to block changes that originates from the web browser as a Hail Mary but I couldn't find a proper way.)

Beware that in order for this workflow to work, there should be a repository secret named WIKI_TOKEN that contains a personal access token that has the following structure:

  • Classic token
    • public_repo
  • Fine-grained token (recommended)
    • Repository access
    • Repository permissions
      • Contents - Read and write
      • Metadata - Read-only
      • Secrets - Read-only

@1halon 1halon closed this Apr 3, 2024
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.

2 participants