Skip to content

Commit e66fc0b

Browse files
feat: Create Agent Payments Protocol (AP2)
This commit introduces the foundational elements of the protocol, including core data structures and documentation. Co-authored-by: Holt Skinner <[email protected]> Release-As: 0.1.0
1 parent 7b37bc8 commit e66fc0b

File tree

151 files changed

+13557
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+13557
-2
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
#
4+
# For syntax help see:
5+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
6+
7+
* @google-agentic-commerce/google-payments-swe
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 🐞 Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
type: "Bug"
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for stopping by to let us know something could be better!
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: Also tell us what you expected to happen and how to reproduce the issue.
15+
placeholder: Tell us what you see!
16+
value: "A bug happened!"
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: logs
21+
attributes:
22+
label: Relevant log output
23+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
24+
render: shell
25+
- type: checkboxes
26+
id: terms
27+
attributes:
28+
label: Code of Conduct
29+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/google-agentic-commerce/AP2?tab=coc-ov-file#readme)
30+
options:
31+
- label: I agree to follow this project's Code of Conduct
32+
required: true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: 💡 Feature Request
2+
description: Suggest an idea for this repository
3+
title: "[Feat]: "
4+
type: "Feature"
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for stopping by to let us know something could be better!
10+
- type: textarea
11+
id: problem
12+
attributes:
13+
label: Is your feature request related to a problem? Please describe.
14+
description: A clear and concise description of what the problem is.
15+
placeholder: Ex. I'm always frustrated when [...]
16+
- type: textarea
17+
id: describe
18+
attributes:
19+
label: Describe the solution you'd like
20+
description: A clear and concise description of what you want to happen.
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: alternatives
25+
attributes:
26+
label: Describe alternatives you've considered
27+
description: A clear and concise description of any alternative solutions or features you've considered.
28+
- type: textarea
29+
id: context
30+
attributes:
31+
label: Additional context
32+
description: Add any other context or screenshots about the feature request here.
33+
- type: checkboxes
34+
id: terms
35+
attributes:
36+
label: Code of Conduct
37+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/google-agentic-commerce/AP2?tab=coc-ov-file#readme)
38+
options:
39+
- label: I agree to follow this project's Code of Conduct
40+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Description
2+
3+
Thank you for opening a Pull Request!
4+
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
5+
6+
- [ ] Follow the [`CONTRIBUTING` Guide](https://github.com/google-agentic-commerce/AP2?tab=contributing-ov-file#how-to-contribute).
7+
- [ ] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification.
8+
- [ ] Ensure the tests and linter pass
9+
- [ ] Appropriate docs were updated (if necessary)
10+
11+
Fixes #<issue_number_goes_here> 🦕

.github/linters/.markdownlint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"default": true,
3+
"MD013": false,
4+
"MD007": {
5+
"indent": 4
6+
},
7+
"MD033": false,
8+
"MD046": false,
9+
"MD024": false
10+
}

.github/linters/.stylelintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": ["stylelint-config-standard"],
3+
"rules": {
4+
"custom-property-pattern": null
5+
},
6+
"overrides": [
7+
{
8+
"extends": ["stylelint-config-recommended-scss"],
9+
"files": ["*.scss", "**/*.scss"],
10+
"customSyntax": "postcss-scss"
11+
}
12+
]
13+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Conventional Commits"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
main:
15+
permissions:
16+
pull-requests: read
17+
statuses: write
18+
name: Validate PR Title
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: semantic-pull-request
22+
uses: amannn/action-semantic-pull-request@v6
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
validateSingleCommit: false

.github/workflows/docs.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Docs Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".github/workflows/docs.yml"
9+
- "requirements-docs.txt"
10+
- "mkdocs.yml"
11+
- "docs/**"
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- ".github/workflows/docs.yml"
17+
- "requirements-docs.txt"
18+
- "mkdocs.yml"
19+
- "docs/**"
20+
21+
jobs:
22+
build_and_deploy:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: write
26+
actions: read
27+
28+
if: github.repository == 'google-agentic-commerce/AP2'
29+
30+
steps:
31+
- name: Checkout Code
32+
uses: actions/checkout@v5
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
fetch-depth: 0
36+
37+
- name: Configure Git Credentials
38+
run: |
39+
git config --global user.name github-actions[bot]
40+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
41+
42+
- name: Setup Python
43+
uses: actions/setup-python@v6
44+
with:
45+
python-version: 3.13
46+
47+
- name: Restore pip cache
48+
uses: actions/cache@v4
49+
with:
50+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-docs.txt') }}
51+
path: ~/.cache/pip
52+
restore-keys: |
53+
${{ runner.os }}-pip-
54+
55+
- name: Install documentation dependencies
56+
run: pip install -r requirements-docs.txt
57+
58+
- name: Build Documentation (PR Check)
59+
if: github.event_name == 'pull_request'
60+
run: mkdocs build
61+
62+
- name: Deploy development version from main branch
63+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
64+
run: |
65+
mkdocs gh-deploy --force

.github/workflows/linter.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Lint Code Base
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
name: Lint Code Base
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Lint Code Base
19+
uses: super-linter/super-linter/slim@v8
20+
env:
21+
DEFAULT_BRANCH: main
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
LOG_LEVEL: WARN
24+
SHELLCHECK_OPTS: -e SC1091 -e 2086
25+
VALIDATE_ALL_CODEBASE: false
26+
FILTER_REGEX_EXCLUDE: "^(\\.github/|\\.vscode/).*|CODE_OF_CONDUCT.md|CHANGELOG.md"
27+
VALIDATE_PYTHON_BLACK: false
28+
VALIDATE_PYTHON_FLAKE8: false
29+
VALIDATE_PYTHON_ISORT: false
30+
VALIDATE_PYTHON_MYPY: false
31+
VALIDATE_PYTHON_PYLINT: false
32+
VALIDATE_CHECKOV: false
33+
VALIDATE_NATURAL_LANGUAGE: false
34+
MARKDOWN_CONFIG_FILE: ".markdownlint.json"
35+
VALIDATE_MARKDOWN_PRETTIER: false
36+
VALIDATE_JAVASCRIPT_PRETTIER: false
37+
VALIDATE_JSON_PRETTIER: false
38+
VALIDATE_YAML_PRETTIER: false
39+
VALIDATE_GIT_COMMITLINT: false
40+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
release-type: simple

0 commit comments

Comments
 (0)