Created
June 14, 2017 12:43
-
-
Save toolness/caf79ae8ac8fe886259037336575fcae to your computer and use it in GitHub Desktop.
Script to fix broken Code of Conduct links in 18F projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
sed -ri 's/github\.com\/18F\/code-of-conduct\/blob\/master\/code-of-conduct\.md/18f\.gsa\.gov\/code-of-conduct\//' CONTRIBUTING.md | |
git checkout -b coc-fix | |
git add CONTRIBUTING.md | |
git commit -F - <<EOF | |
Fix code of conduct URL in CONTRIBUTING.md. | |
Unfortunately, the existing CoC link 404's for public contributors due to | |
the fact that the 18F/code-of-conduct repository is currently private. | |
For more details on this issue, see: | |
https://github.com/18F/code-of-conduct/issues/4 | |
This PR changes the link to point at 18F's publicly-visible copy of | |
the latest OGC-approved Code of Conduct, located at: | |
https://18f.gsa.gov/code-of-conduct/ | |
This page also contains a link to the CoC repository, so that | |
contributors can still comment on or suggest changes to it | |
there (well, at least it's once made public again). | |
It's assumed that once the new CoC becomes approved by OGC, the | |
aforementioned copy will be updated as needed, so the | |
link will still be accurate. | |
EOF | |
echo "Modified CoC. You can push this to GitHub by running:" | |
echo | |
echo " git push -u origin HEAD" | |
echo | |
echo "Then visit the GitHub repo and make a PR off the 'coc-fix' branch." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment