-
Notifications
You must be signed in to change notification settings - Fork 485
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
add Woodpecker #1880
add Woodpecker #1880
Conversation
e577d59
to
823cbde
Compare
|
667e66a
to
438d603
Compare
@mortenpi @fredrikekre fixed a lot of typos now that i missed and i rebased it so and forced push with lease to make the history clean. Works fine now on my project that i tested this branch on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 4 space indent. Can you also add a note about this in the CHANGELOG.md file?
90c8a4e
to
d5740f1
Compare
This should be ready for another review now 😄 |
d5740f1
to
17d438c
Compare
Looks fine, can you add some tests to https://github.com/JuliaDocs/Documenter.jl/blob/master/test/deployconfig.jl? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great for the most part, just some nitpicks.
- Do you have an example run on Codeberg/Woopecker that uses this branch?
- I don't think the PR is up to date with master? There should be some conflicts in the CHANGELOG.
https://codeberg.org/uncomfyhalomacro/SBOL3.jl/src/branch/main/.woodpecker/.doc-woodpecker-experiment.yml I experimented this on my soon-ish to start project of mine. Result will update my I will rebase from upstream branch then :D and fix some conflicts |
Just found an issue on the rendered pages where if I click the edit button, it gives the wrong link even with correct root URL. I have to fix and resolve results from the code review later. |
If the edit link behavior was something that just appeared, then it might also be something from #1808. |
nah i found out it was something else haha. anyway. it is ready for review now (again) :D |
Did you forget to push? I see you marked the comments resolved, but I believe the code hasn't changed? |
No, it has changed. I just need to push one more to resolve EDIT: resolved in commit bc81ef6 |
- PR should use built-in env vars `CI_COMMIT_REF` and `CI_COMMIT_PULL_REQUEST` - GitHub Actions and Woodpecker share similarities thus modified some stuff slightly. - `FORGE_URL` should be not a link but the root of a URL e.g. github.com, codeberg.org - `CI_REPO_LINK` should be used if `FORGE_URL` is not defined.
- return an empty string if regex returns no match (which is a value of `nothing`. The error will be caught anyway in `deploydocs`
9d03d9d
to
bc81ef6
Compare
- handle `authenticated_repo_url` for woodpecker: * added more stuff into the `Woodpecker constructor`: - woodpecker_repo_link - woodpecker_forge_url - new constructor params are validated in `deploy_folder` - improve docstring for completeness - update Woodpecker constructor: - `CI_COMMIT_TAG` added to constructor - reducing logic if checking tag build is a valid version using `woodpecker_tag` - improve test
7dc00bc
to
73a2c90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I think this LGTM now, other than the two minor things.
Do you links to a run on Codeberg with the latest version of this here by any chance, including the CI logs?
Co-authored-by: Morten Piibeleht <morten.piibeleht@gmail.com>
Co-authored-by: Morten Piibeleht <morten.piibeleht@gmail.com>
https://ci.codeberg.org/uncomfyhalomacro/SBOL3.jl/build/12/1 here 😄 Configuration used: matrix:
JULIA_VERSION:
- 1.7.3-alpine
platform:
- linux/amd64
platform: ${platform}
pipeline:
build:
when:
branch:
- main
image: julia:${JULIA_VERSION}
commands:
- apk add git
- julia -e 'using Pkg; Pkg.develop(url="https://codeberg.org/uncomfyhalomacro/SBOL3.jl");'
- rm docs/Project.toml
- julia --project=docs/ -e 'using Pkg; Pkg.add(url="https://github.com/uncomfyhalomacro/Documenter.jl", rev="woodpecker"); Pkg.add(url="https://codeberg.org/uncomfyhalomacro/SBOL3.jl")'
- julia --project=docs/ docs/make.jl
secrets: [ project_access_token ] |
Hmm. In the configuration, unless I am mistaken, but:
|
For the first one. Yeah I can remove it because that is just an experimentation for finding some issues from Pkg. It was because I have many errors caused by As for the second one, i have to remove it otherwise, it will instantiate an non-existing UUID (not registered). So removing Project.toml then adding the packages manually fixes my issue. Third one, I think i stated the reason in the first one. |
It is a separate issue. Maybe I should have open an issue in Pkg.jl hmm Logs for why i use If you have a registered package, it should be fine. |
Co-authored-by: Morten Piibeleht <morten.piibeleht@gmail.com>
If you put the |
Going to try that |
@mortenpi well that worked. thanks! https://ci.codeberg.org/SynBioJulia/SBOL3.jl/build/1/3 anyway just ignore the part where Documenter fails. Forgot to update my repository link. I moved my project to an org. |
One more documentation on how to generate SSH keys and converting the private key to a base64 key and then another review so this could be merged |
- also added a photo for a sample gitea repo - also added the manual way if not using julia to generate base64-encoded keys using `openssl` and `tr`
@fredrikekre @mortenpi This is ready to be merged. You can review again I guess. |
- add check if DOCUMENTER_KEY exists in woodpecker
df5c337
to
9363be2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uncomfyhalomacro Would you be okay using the master branch of Documenter for a while? It's going to be a while before we tag 0.28.0, but I am not sure I want to go through the hassle of backporting this unless it's really necessary.
It should be fine! No worries 😄 |
Cool. And thanks a lot for iterating on the PR! |
Draft for now since I am going to add some documentation first :D
Edit by @mortenpi: close #1878