Skip to content

Commit bfd60b0

Browse files
committed
Moves Readme, contributing and Code of Conduct into .github/ dir and updates references
1 parent 4ba40da commit bfd60b0

9 files changed

+10
-10
lines changed

CODE_OF_CONDUCT.md renamed to .github/CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> This is our code of conduct, based upon the [Contributor Covenant](https://www.contributor-covenant.org/).
44
> It outlines a set of core values and norms that are essential in a just and equitable software commons.
55
> You must abide by these if you wish to contribute to this project.
6-
> For contributing guidelines - see [`CONTRIBUTING.md`](https://github.com/Lissy93/git-into-open-source/blob/main/CONTRIBUTING.md)
6+
> For contributing guidelines - see [`CONTRIBUTING.md`](https://github.com/Lissy93/git-into-open-source/blob/main/.github/CONTRIBUTING.md)
77
>
88
> **TLDR; Don't be a d!ck**
99
File renamed without changes.

README.md renamed to .github/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
## Git In!
2121

2222
The following users have contributed to this repo, by sharing their thoughts and ideas about open source.<br />
23-
Join them by editing the [`git-in-here.yml`](git-in-here.yml) file, and following the instructions in [`CONTRIBUTING.md`](/CONTRIBUTING.md) to submit a PR.
23+
Join them by editing the [`git-in-here.yml`](git-in-here.yml) file, and following the instructions in [`CONTRIBUTING.md`](/.github/CONTRIBUTING.md) to submit a PR.
2424

2525

2626
<!-- git-in-start -->
@@ -34,7 +34,7 @@ Join them by editing the [`git-in-here.yml`](git-in-here.yml) file, and followin
3434

3535
Submitting contributions to any repository is easy!
3636

37-
The first step is to check out the projects contributing guidelines ([here's ours](/CONTRIBUTING.md)). These will usually outline setup instructions, and give you pointers as to where and how you can contribute.
37+
The first step is to check out the projects contributing guidelines ([here's ours](/.github/CONTRIBUTING.md)). These will usually outline setup instructions, and give you pointers as to where and how you can contribute.
3838

3939
Next you'll need to either fork and clone the repo, or if it's a small change you can just edit it via the GitHub UI. [Here is a step-by-step guide](/guides/submit-your-first-pr-cli.md) to help you get started with that.
4040

.github/workflows/insert-comments.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
git config --global user.name "Liss-Bot"
4242
git config --global user.email "[email protected]"
43-
git add README.md
43+
git add .github/README.md
4444
if git diff --staged --quiet; then
4545
echo "Nothin new added, so nothing to commit, exiting..."
4646
else

.github/workflows/insert-resources.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
git config --global user.name "Liss-Bot"
4242
git config --global user.email "[email protected]"
4343
git pull origin main
44-
git add README.md
44+
git add .github/README.md
4545
if git diff --staged --quiet; then
4646
echo "Nothin new added, so nothing to commit, exiting..."
4747
else

lib/copy_resources_to_site.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ def main():
8686
logging.warning(f"Skipping {guide['file']} as doc could not be found in {source_file_path}")
8787

8888
# Copy the contributing guidleines from ./CONTRIBUTING.md to /web/src/pages/contributing.md
89-
contributing_source_path = project_root / "CONTRIBUTING.md"
89+
contributing_source_path = project_root / ".github/CONTRIBUTING.md"
9090
contributing_destination_path = project_root / "web/src/pages/contributing.md"
9191
content = contributing_source_path.read_text()
9292
contributing_headers = (
9393
f"---\n"
9494
f"layout: ../layouts/MarkdownLayout.astro\n"
9595
f"title: Contributing Guidelines\n"
9696
f"---\n\n"
97-
f"<!-- This file was auto-generated from ./CONTRIBUTING.md -->\n\n"
97+
f"<!-- This file was auto-generated from ./.github/CONTRIBUTING.md -->\n\n"
9898
)
9999
write_file(contributing_destination_path, contributing_headers + content)
100100
logging.info(f"Copied {contributing_source_path} to {contributing_destination_path}")

lib/insert_contributor_content.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
""" The directory where this script is located """
3131
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
3232
""" The relative path to the markdown file to update"""
33-
README_PATH = os.path.join(SCRIPT_DIR, "..", "README.md")
33+
README_PATH = os.path.join(SCRIPT_DIR, "..", ".github/README.md")
3434
""" The relative path to the YAML file containing the user-contributed content """
3535
CONTRIBUTORS_FILE_PATH = os.path.join(SCRIPT_DIR, "..", "git-in-here.yml")
3636

lib/insert_resource_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1818
resources_file_path = os.path.join(project_root, 'resources.yml')
1919
guides_directory = os.path.join(project_root, 'guides')
20-
readme_path = os.path.join(project_root, 'README.md')
20+
readme_path = os.path.join(project_root, '.github/README.md')
2121

2222
logger.info("Reading the resources.yml file...")
2323
# Read the resources.yml

web/src/pages/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ layout: ../layouts/MarkdownLayout.astro
33
title: Contributing Guidelines
44
---
55

6-
<!-- This file was auto-generated from ./CONTRIBUTING.md -->
6+
<!-- This file was auto-generated from .github/CONTRIBUTING.md -->
77

0 commit comments

Comments
 (0)