evergreen-docs:github-workflow
This is an old revision of the document!
Docs GitHub Workflow
When someone submits a change via GitHub, an Evergreen developer should follow these steps to review it:
- If you haven't yet, add the main Evergreen repo (on GitHub) as a remote
git remote add github-evergreen https://github.com/evergreen-library-system/Evergreen.git
- Update your local master branch to reflect any changes from "origin"
git checkout master; git fetch origin; git pull origin master
- Fetch the pull request branch into a new local branch
git fetch github-evergreen pull/[PULL_REQ_NUMBER]/head:[BRANCHNAME]
- Checkout your new pull request branch
git checkout [BRANCHNAME]
- Rebase the pull request branch to master, and handle any conflicts
git rebase master
– note: if you are planning to squash multiple commits into a single commit, this is a good time to do it by running this command with the-i
flag, i.e.git rebase -i master
- Test build the changed AsciiDoc file + the root*.adoc files that include it
asciidoc -a icons -a toc -d book -o OUTPUT_FILE ASCIIDOC_FILE
- Ignore warnings for not finding any image files, but be sure to review any included images on GitHub before committing them
- NOTE: You need to download and add the docs images into the git branch, if they aren't in the branch already (e.g. if the images are posted in the GitHub "conversation")
- Docs images belong in
Evergreen/docs/media/
- Also look for other AsciiDoc warnings or errors
- Make any corrections (via additional commits, if needed)
- Use
git log
to retrieve commit IDs - Use interactive rebase to add the commits to your local master, adding your sign-off
git checkout master
git cherry-pick [commit ID]
- Include the relevant Launchpad bug number somewhere in the commit message
- Example: "Resolves LP#1234567"
- (If the GitHub author does not match the author's identity in git.evergreen-ils.org, consider fixing it with
git commit --amend --author="NAME <email>"
)
- When you are confident your local master branch is ready:
git push origin master
- Backport to previous EG versions as appropriate
- Email docs list and/or pull requester to say it is done (or with other feedback)
- Close pull request on GitHub
evergreen-docs/github-workflow.1597762425.txt.gz · Last modified: 2022/02/10 13:34 (external edit)