Thank you for your interest in contributing back to this collection 🚀. I welcome all suggestions, bug reports, enhancements, documentation improvements, etc.
Contributing to a project on GitHub is pretty straight forward. If this is your first time, these are the steps you should take:
- Fork this repo
- Make your change(s) in your fork - it doesn't matter which branch
- If you're adding a new script to the
gh-cliorscriptsdirectory, add it to the appropriateREADME.mdfile - Likewise, if you're significantly modifying a script, consider double checking that the respective
README.mdis still accurate - Create a pull request back to the main branch of this repo
- A linting job will run on your PR to check your changes against the guidelines below (it will post the results with anything to fix as a comment in the PR!)
- That's it! Give me some time to review and approve the PR
When adding new scripts to the gh-cli or scripts directory, you must also add the script to the appropriate README.md file. This is done to ensure that it is still possible to search/find relevant scripts effectively. A linting job will run on your PR to ensure the file has been added to the appropriate README.md file correctly.
This means:
- There are no scripts that aren't added to the
README.md - There are no headings in the
README.mdthat don't exist as scripts in the directory - That scripts are in alphabetical order (using VS Code / GitHub sorting)
- That the file is named correctly (kebab casing)
- That
.shfiles have executable permissions (i.e.:chmod +x ./my-file.sh) - That you aren't using the shorthand
repo,repos,org, ororgsin the filenames; spell out the full word (i.e.:repository,repositories,organization, andorganizations) - There are no syntax errors in
.shfiles
I strive to maintain well-commented code. If a code segment is complex or not immediately clear, it should be accompanied by comments for clarity. When introducing new code or modifying existing code in a way that changes its function or usage, ensure it is properly documented both in the script and the respective README.md file.
Tip
Consider using the markdownlint extension for VS Code to help catch markdown formatting issues before submitting your PR.