Skip to content

Latest commit

 

History

History
83 lines (61 loc) · 3.54 KB

project-creation.md

File metadata and controls

83 lines (61 loc) · 3.54 KB

<-- Home

Project Creation

Follow these steps to create a new project in GH (GitHub).

Repository Creation

It is best to create the repository on GH first. Initialize it as a completely blank repository as you'll copy template files into your repo at a later step. You should default the repository to public unless there is a reason to make it private.

screenshot

Then, you will need to run a few terminal commands. You should have Git installed to complete the steps.

# Go where you put code.
cd ~/Sites

# Find the remote URL in GitHub.
git clone git@github.com:CUCentralAdvancement/my-repo.git my-repo
cd my-repo

GitHub Template Files

GitHub allows you to create template repositories that generate actual project repositories, but for now we are copying files from the /.github and /templates directories. We'll go through each of the available template files first and then describe how they relate to the available tech stacks.

GitHub /.gituhb:

  • dependabot.yml - This bot will make a PR (pull request) for every detected dependency update. Need to add a stub for this file but current docs are: https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates . Not every repository will be able to use Dependabot.
  • stale.yml - Every repo should add Stalebot. You can keep the defaults or apply them as you see fit in your project. Please use the same labels, though, across projects.
  • CODE_OF_CONDUCT.md - Every project should have a code of conduct and we provide this default.
  • ISSUE_TEMPLATE/bug_report.md -
  • ISSUE_TEMPLATE/development-task.md -
  • ISSUE_TEMPLATE/feature-story.md -
  • LICENSE - The MIT license is the default.

General Templates /templates:

  • README.md - Please copy over this generic template and replace the stubs with actual project documentation.

Available Stacks

When beginning a project, you should first know what tech stack the project will use. If you can't find the stack you will use, please open an issue in this repository to add a new section of documentation in the list of tech stacks.

Stacks:

Please follow instructions in those stubs as far as copying additional template files.

Repository Settings

Finally, you should go to the "Settings" tab of the GH project to add team members and change a few default settings:

  • Options - Turn off the "wikis" and "projects" features.
  • Manage access - Add appropriate teams for the project.
  • Security & analysis - Make sure everything is enabled and at least one team has access to the Dependabot security alerts. Also, go to the "Security" tab and make sure that all the sections are green.