Update Skeleton Instructions for Development Guide Project Setup#97
Update Skeleton Instructions for Development Guide Project Setup#97
Conversation
dav3r
left a comment
There was a problem hiding this comment.
Approved, but with one small item noted.
|
Let's get @mcdonnnj's review before merging. |
project_setup/README.md
Outdated
| helper tool included in the [`scripts`](scripts) directory can quickly setup | ||
| a new local repository. Once you've cloned and configured the repository | ||
| to your local machine, it can be published to a repository created on GitHub. | ||
| The [`gh-skeleton`](https://github.com/cisagov/gh-skeleton) GitHub CLI |
There was a problem hiding this comment.
It looks like we link out to the gh-skeleton repository in multiple places. Please switch this to a reference-style link and update all uses of "gh-skeleton" to both use this link when appropriate and be formatted consistently.
project_setup/README.md
Outdated
|
|
||
| - [Adding a skeleton configuration to an existing repository](#adding-a-skeleton-configuration-to-an-existing-repository) | ||
| - [Using the skeleton tool to start a new repository 💀🛠](#using-the-skeleton-tool-to-start-a-new-repository-) | ||
| - [Using the gh-skeleton `gh` extension to start a new repository 💀🛠](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) |
There was a problem hiding this comment.
The emoji no longer make sense.
| - [Using the gh-skeleton `gh` extension to start a new repository 💀🛠](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) | |
| - [Using the gh-skeleton `gh` extension to start a new repository](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) |
project_setup/README.md
Outdated
| ```bash | ||
| ./skeleton list | ||
| gh skeleton list | ||
| ``` | ||
|
|
||
| ```console |
There was a problem hiding this comment.
Please combine these codeblocks and ensure the sample output aligns with the output of the extension. Please also update the lead-in formatting like so:
```console
$ gh skeleton list
project_setup/README.md
Outdated
|
|
||
| ```console | ||
| ./skeleton clone [options] <parent-repo-name> <new-repo-name> | ||
| gh skeleton clone [options] <parent-repo-name> <new-repo-name> |
There was a problem hiding this comment.
| gh skeleton clone [options] <parent-repo-name> <new-repo-name> | |
| $ gh skeleton clone [options] <parent-repo-name> <new-repo-name> |
There was a problem hiding this comment.
Hi @mcdonnnj , I received 2 linter failed errors for adding the dollar sign prompt, it complains that expected output is required. I worked with Michael on this solution to add the following:
$ gh skeleton clone [options] <parent-repo-name> <new-repo-name>
# Expected output:
# Cloning into 'new-repo-name' . Alternatively we may need to omit the dollar sign prompt. What do you suggest?
project_setup/README.md
Outdated
| For example, to create a project based on `skeleton-ansible-role` named | ||
| `ansible-role-quantum-rng` in your local `~/projects` directory: | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
| ```bash | |
| ```console |
| @@ -1,12 +1,14 @@ | |||
| # Skeletonize an Existing Repository # | |||
|
|
|||
| Skeletonizing a repository standardizes our development setup and environment, | |||
There was a problem hiding this comment.
| Skeletonizing a repository standardizes our development setup and environment, | |
| Skeletonizing a repository standardizes our development setup and environment |
| to keep the repository updated and standardized. | ||
| and enables our [Lineage GitHub Action](https://github.com/cisagov/action-lineage/) | ||
| to keep the repository updated and standardized. The purpose of the | ||
| instructions here is to describe how to skeletonize an existing non-skeletonized |
There was a problem hiding this comment.
| instructions here is to describe how to skeletonize an existing non-skeletonized | |
| instructions here are to describe how to skeletonize an existing non-skeletonized |
| non-skeletonized repository | ||
| 1. [Add the skeleton as a remote](#add-the-skeleton-as-a-remote) to the | ||
| existing non-skeletonized repository | ||
| 1. Pull with `--allow-unrelated-histories` |
There was a problem hiding this comment.
| 1. Pull with `--allow-unrelated-histories` | |
| 1. Pull with `git pull --allow-unrelated-histories skeleton-parent` |
| First, decide which of the available skeletons best fits your | ||
| existing non-skeletonized repository. To see a list of available | ||
| skeletons, use the `gh skeleton list` command or see | ||
| the [list of skeletons](skeleton-list.md). |
There was a problem hiding this comment.
Are we able to use a link fragment here to link to the appropriate section?
There was a problem hiding this comment.
Hi @mcdonnnj , Can you please elaborate regarding the fragment link required ? From my understanding the 'gh skeleton list' command is to be run at the command line. And the skeleton-list link goes to skeleton-list.md document.
This commit will remove out-dated skeleton tool instructions. Previously the documentation was using a legacy skeleton tool. Now the instructions will reflect using the gh CLI skeleton tool extension. Links have been updated along with steps to make a repository from a skeleton.
Updated naming of gh tool to be more accurate verbiage from gh CLI extension to gh skeleton. Updated link to skeleton AWS lambda python which was linked to archived skeleton AWS lambda.
Update naming convention to GitHub CLI 'gh' Extension Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
This commit updates Development guide Readme and Skeletonize existing repository according to requested changes for wording, grammar, replacing text and delete emoji.
This commit updates Development guide links using a reference style for gh-skeleton links in the Readme file and directly links to the skeleton list for skeletonize existing repository file.
This commit fixes some fragment links that were not working.
Updates to add reference links, fragment link, and text changes to skeleton list file.
command promt dollar sign text change
Adding reference link to maintain consistency of link references globally for gh-skeleton extension tool.
Referenced skeleton list required update.
add back whitespace to reflect what the user should expect to see in terminal output.
Redo changes to formatting to reflect what the user should expect to see in terminal output.
8513d28 to
201b4c7
Compare
🗣 Description
This PR will update the Documentation Guide Project Setup markdown files instructions to create new skeleton repositories or skeletonize existing repositories.
💭 Motivation and context
These updates are required for uniformity of the cisagov skeleton updates to create and update repositories and to advise on the latest skeletonize tools used.
✅ Pre-approval checklist
to reflect the changes in this PR.
✅ Pre-merge checklist
✅ Post-merge checklist