Skip to content

Commit 86c6e4f

Browse files
authored
Add policy for AI contributions (#7345)
1 parent 81e15d0 commit 86c6e4f

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ What issue is this PR targeting? If there is no issue that addresses the problem
55
Please read our [documentation](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/releasing.md) on release and version management.
66
If your PR is still work in progress please attach the relevant label.
77

8+
Was this change primarily generated using an AI tool?
9+
Kindly make this transparent and disclose which tool / model you have been using.
10+
Please note our [contribution guidlines](https://github.com/Project-OSRM/osrm-backend/blob/master/CONTRIBUTING.md) on the use of AI tools.
11+
812
## Tasklist
913

10-
- [ ] CHANGELOG.md entry ([How to write a changelog entry](http://keepachangelog.com/en/1.0.0/#how))
11-
- [ ] update relevant [Wiki pages](https://github.com/Project-OSRM/osrm-backend/wiki)
12-
- [ ] add tests (see [testing documentation](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/testing.md))
14+
- [ ] self-review code for correctness and following the [coding guidelines](https://github.com/Project-OSRM/osrm-backend/wiki/Coding-Standards)
15+
- [ ] add tests (see [testing](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/testing.md))
16+
- [ ] update relevant [wiki pages](https://github.com/Project-OSRM/osrm-backend/wiki)
17+
- [ ] CHANGELOG.md entry (see [how to](http://keepachangelog.com/en/1.0.0/#how))
1318
- [ ] review
1419
- [ ] adjust for comments
1520

16-
1721
## Requirements / Relations
1822

1923
Link any requirements here. Other pull requests this PR is based on?
24+

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ You can add a :+1: emoji reaction to the issue if you want to express interest i
1010

1111
# Developer
1212

13+
We follow the [LLVM AI Tool policy](https://llvm.org/docs/AIToolPolicy.html).
14+
15+
In short that means:
16+
- You are the author of your change and need to fully understand it regardless of how it was generated.
17+
- Your contribution should be worth more to the project than the time it takes to review it.
18+
- If your contribution is a large change and to signficiant amounts authored by AI tools, you should disclose that.
19+
- You are responsible for ensuring you have the right to license your contributions.
20+
21+
If you can not follow these guidelines PLEASE REFRAIN FROM CONTRIBUTING.
22+
1323
We use `clang-format` version `15` to consistently format the code base. There is a helper script under `scripts/format.sh`.
1424
The format is automatically checked by the `mason-linux-release` job of a Travis CI build.
1525
To save development time a local hook `.git/hooks/pre-push`

0 commit comments

Comments
 (0)