home

kskb.dev/data · documents with their text · this document in the catalog

Check and accept PR production KERISSE site locally

KERIDoc page · license Apache-2.0 · 1552 characters · the original · source keridoc

Check and accept PR production KERISSE site locally

Why this how-we-did: To test pull request offered before accepting them in github

For who: crew responsible for acceptance of PRs offered by content developers

What is the objective: To check content and code that is uploaded to the team as a PR.

git stash git status git fetch upstream main git log

git stash git status git fetch upstream main git log

  • fix-mdfiles is the name of the PR.

fix-mdfiles

  • testSC1 is the acronym of the developer that I use in this example.

testSC1

Pull the proposed changes in

git checkout -b testSC1 git fetch upstream git merge upstream/fix-mdfiles

git checkout -b testSC1 git fetch upstream git merge upstream/fix-mdfiles

Test

Now the changes that the PR proposes have been locally applied to the new branch

npm run build npm run serve

npm run build npm run serve

Now you can locally test the site at the address that look something like http://localhost:3000keridoc/. The result of npm run serve will tell you the exact URL.

http://localhost:3000keridoc/

npm run serve

After succesfull test merge result

git checkout main git merge testSC1

git checkout main git merge testSC1

After merge push to production environment

git push -u upstream main

git push -u upstream main

Result: PR remotely accepted

Clean up

git stash pop git branch -D testSC1

git stash pop git branch -D testSC1

KERIDoc, https://weboftrust.github.io/keridoc/docs/how-we-did/keridoc/check-and-accept-pr-production-edusite-locally. Licensed under the Apache License 2.0; the license and any notices are in the repository. Found through KERISSE. The abstract, the level and the labels on the catalog entry are the KERISuite Knowledge Base's own, CC BY 4.0.

Powered by Datasette · Queries took 201.451ms