Add option to configure branch for github_edit_link
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by locating the implementation and tests for the github_edit_link tag, then inspect how _config.yml values are read. Add support for a github_edit_branch setting and verify that generated edit links use the configured branch while preserving the existing default behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The github_edit_link tag currently generates edit links that point to the gh-pages branch by default. This is not ideal when using other default branches like main.
It would be helpful to have an option to configure the target branch for github_edit_link, so it can work properly for repositories using non-gh-pages default branches.
Proposal
Add a configuration option such as github_edit_branch to _config.yml:
yaml
github_edit_branch: main
This will make github_edit_link generate links pointing to that branch.
The user can then set this to main, master or other branches as needed.
This will provide more flexibility when using github_edit_link for repositories with different branch setups.
Benefits
- Works for non-gh-pages default branch
- Easy configuration in _config.yml
- More flexibility for users
- Links point to correct branch for editing
Please consider adding this option in a future release. Let me know if any clarification is needed!
- Lingua principale
- Ruby
- Stelle
- 309
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jekyll/github-metadata
-
jekyll-github-metadata calls Pages API for private repos with Pages disabled, causing fatal 403Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
jekyll/github-metadata#302 ·
-
PageAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
jekyll/github-metadata#294 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
jekyll/github-metadata#290 · 1 commento ·
-
Limit and/or Cache API requests to avoid: 403 - API rate limit exceeded for installation ID ___Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
jekyll/github-metadata#266 · 6 commenti · 4 reazioni ·
-
Latest Commit Date for FileApertapinned
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
jekyll/github-metadata#130 · 5 commenti · 6 reazioni ·
Tutte le issue di jekyll/github-metadata
Issue simili
-
instrumentation-sidekiq
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
I maintainer di solito rispondono entro 2 giorni
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ruby/securerandom#92 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
we-promise/sure#5902 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
avo-hq/avo#5065 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno