Skip to content

feat: add gen-contrib script for generating CONTRIBUTING.md documents#23

Merged
NucciTheBoss merged 2 commits intocharmed-hpc:mainfrom
NucciTheBoss:nuccitheboss/feat/gen-contrib-script
Jul 11, 2025
Merged

feat: add gen-contrib script for generating CONTRIBUTING.md documents#23
NucciTheBoss merged 2 commits intocharmed-hpc:mainfrom
NucciTheBoss:nuccitheboss/feat/gen-contrib-script

Conversation

@NucciTheBoss
Copy link
Member

Pre-submission checklist

  • I read and followed the CONTRIBUTING guidelines.
  • I have insured that lint, typecheck, and unit tests complete successfully.

Summary of changes

This PR adds the gen-contrib script for quickly generating per-repo CONTRIBUTING.md documents. To generate a simple project CONTRIBUTING.md document, all you need to do is run the following command:

./gen-contrib --repo slurm-charms --license apache-2.0

To add further information such as general contributing information, or steps that you need to follow before opening a new PR on the repository, you can pass additional content via the command-line:

./gen-contrib --repo slurm-charms --license apache-2.0 --before-pr-contrib "$(cat just-instructions.md)" --repo-contrib "$(cat subpackage-howto.md)"

To save the CONTRIBUTING.md file generated by gen-contrib, you can either redirect the stdout of the script to a file, or pass the --output flag:

./gen-contrib --repo slurm-charms --license apache-2.0 > CONTRIBUTING.md

or

./gen-contrib --repo slurm-charms --license apache-2.0 --output CONTRIBUTING.md

Related Issues, PRs, and Discussions

This script is related to our ongoing work to update our community documentation. After this PR is merged, the script will be used to update our repositorys' CONTRIBUTING.md files to point to the organization-wide CONTRIBUTING.md file.

Docs

  • I have created a pull request to add or update relevant documentation in charmed-hpc/docs or another documentation location.

Or:

  • I confirm that this pull request requires no changes or additions to documentation.

This script does not introduce a user facing change, and is primarily meant to be used by Charmed HPC project developers for quickly creating new CONTRIBUTING.md documents.

The `gen-contrib` script accepts several
flags for quickly generating a
repository's CONTRIBUTING.md guide.

Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
@NucciTheBoss NucciTheBoss requested a review from AshleyCliff July 11, 2025 18:02
@NucciTheBoss NucciTheBoss self-assigned this Jul 11, 2025
@NucciTheBoss NucciTheBoss requested a review from a team as a code owner July 11, 2025 18:02
@NucciTheBoss NucciTheBoss requested review from dsloanm and jedel1043 and removed request for a team July 11, 2025 18:02
Copy link
Contributor

@AshleyCliff AshleyCliff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and should help a ton! Just one wording suggestion and one question about adding GH Discussions.

Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
@NucciTheBoss NucciTheBoss requested a review from AshleyCliff July 11, 2025 20:11
@NucciTheBoss
Copy link
Member Author

@AshleyCliff ready for round 2 electric boogalo

@AshleyCliff
Copy link
Contributor

Looks good to me!

@NucciTheBoss NucciTheBoss merged commit 1ba8cf4 into charmed-hpc:main Jul 11, 2025
3 checks passed
@NucciTheBoss NucciTheBoss deleted the nuccitheboss/feat/gen-contrib-script branch August 1, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants