| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a4cbecb commit a8ae5d6
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | + ############ | ||
| 1 | 2 | Contributing | |
| 2 | - ============ | ||
| 3 | + ############ | ||
| 3 | 4 | ||
| 4 | 5 | You can contribute to the project in multiple ways: | |
| 5 | 6 | ||
@@ -75,6 +76,9 @@ This creates a clearer project history, and automates our `Releases`_ and change | |||
| 75 | 76 | * Bad: ``Update documentation for projects`` | |
| 76 | 77 | * Good: ``docs(projects): update example for saving project attributes`` | |
| 77 | 78 | ||
| 79 | + Also see the `AI attribution section <ai_attribution_section>`_ for information | ||
| 80 | + on attributing contributions from AI. | ||
| 81 | + | ||
| 78 | 82 | Coding Style | |
| 79 | 83 | ------------ | |
| 80 | 84 | ||
@@ -90,6 +94,30 @@ To format your code according to our guidelines before committing, run: | |||
| 90 | 94 | cd python-gitlab/ | |
| 91 | 95 | tox -e black,isort | |
| 92 | 96 | ||
| 97 | + .. _ai_attribution_section: | ||
| 98 | + | ||
| 99 | + AI Attribution | ||
| 100 | + -------------- | ||
| 101 | + | ||
| 102 | + When an AI coding assistant contributed meaningfully to a commit (writing or | ||
| 103 | + significantly modifying code, suggesting the fix, generating tests, etc.), | ||
| 104 | + add an ``Assisted-by`` trailer to the commit footer:: | ||
| 105 | + | ||
| 106 | + Assisted-by: <AgentName>:<ModelVersion> | ||
| 107 | + | ||
| 108 | + Place it alongside any ``Closes:`` or ``BREAKING CHANGE:`` lines. Omit it when | ||
| 109 | + the AI contribution was trivial (e.g. a one-word suggestion or only | ||
| 110 | + autocomplete) or purely mechanical (running linters, reformatting). | ||
| 111 | + | ||
| 112 | + Example:: | ||
| 113 | + | ||
| 114 | + fix(cli): correct the --spam flag | ||
| 115 | + | ||
| 116 | + The --spam flag now says spam three times. | ||
| 117 | + | ||
| 118 | + Closes: #1234 | ||
| 119 | + Assisted-by: Claude:claude-sonnet-4-6 | ||
| 120 | + | ||
| 93 | 121 | Running unit tests | |
| 94 | 122 | ------------------ | |
| 95 | 123 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + ```{include} ../CONTRIBUTING.rst | ||
| 2 | + ``` | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,7 @@ | |||
| 16 | 16 | changelog | |
| 17 | 17 | release-notes | |
| 18 | 18 | faq | |
| 19 | + contributing | ||
| 19 | 20 | ||
| 20 | 21 | ||
| 21 | 22 | Indices and tables | |
| Back | FazBrowse Home | New Git URL |
0 commit comments