Skip to content

Commit ab36ff4

Browse files
authored
chore: onboard release please (#39)
<!-- Thanks for opening a PR! Here are some quick tips: If this is your first time contributing, [read our Contributing Guidelines](https://github.com/openfga/.github/blob/main/CONTRIBUTING.md) to learn how to create an acceptable PR for this repo. By submitting a PR to this repository, you agree to the terms within the [OpenFGA Code of Conduct](https://github.com/openfga/.github/blob/main/CODE_OF_CONDUCT.md) If your PR is under active development, please submit it as a "draft". Once it's ready, open it up for review. --> <!-- Provide a brief summary of the changes --> ## Description <!-- Provide a detailed description of the changes --> #### What problem is being solved? #### How is it being solved? #### What changes are made to solve it? ## References <!-- Provide a list of any applicable references here (GitHub Issue, [OpenFGA RFC](https://github.com/openfga/rfcs), other PRs, etc..). We prefer an accompanying issue for all non-trivial PRs. When referencing links, follow these examples: * closes https://github.com/openfga/{repo}/issues/{issue_number} * reverts https://github.com/openfga/{repo}/pull/{pr_number} * followup https://github.com/openfga/{repo}/pull/{pr_number} * blocked by https://github.com/openfga/{repo}/pull/{pr_number} --> ## Review Checklist - [ ] I have clicked on ["allow edits by maintainers"](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork). - [ ] I have added documentation for new/changed functionality in this PR or in a PR to [openfga.dev](https://github.com/openfga/openfga.dev) [Provide a link to any relevant PRs in the references section above] - [ ] The correct base branch is being used, if not `main` - [ ] I have added tests to validate that the change in functionality is working as expected
2 parents ca56b56 + 3cfc305 commit ab36ff4

4 files changed

Lines changed: 100 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR Title Conventional Commit Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, edited]
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
pr-title-check:
14+
permissions:
15+
pull-requests: read
16+
uses: openfga/.github/.github/workflows/pr-title-check.yml@main
17+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: release-please
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [main]
9+
workflow_dispatch:
10+
inputs:
11+
bump-type:
12+
description: >
13+
Version bump type. Select 'explicit' to supply an exact version via
14+
the 'release-version' field below. Select 'auto' to let
15+
conventional-commits determine the bump automatically.
16+
required: false
17+
type: choice
18+
default: 'auto'
19+
options:
20+
- auto
21+
- patch
22+
- minor
23+
- major
24+
- explicit
25+
release-version:
26+
description: >
27+
Explicit version to release (e.g. 1.2.3 or 1.4.0-beta.1).
28+
required: false
29+
type: string
30+
31+
jobs:
32+
release:
33+
permissions:
34+
contents: write
35+
pull-requests: write
36+
if: |
37+
github.event_name == 'workflow_dispatch' ||
38+
startsWith(github.event.head_commit.message, 'release:')
39+
uses: openfga/.github/.github/workflows/release-please.yml@main
40+
with:
41+
trigger-event: ${{ github.event_name }}
42+
bump-type: ${{ inputs.bump-type || 'auto' }}
43+
release-version: ${{ inputs.release-version || '' }}
44+
secrets:
45+
RELEASER_APP_CLIENT_ID: ${{ secrets.RELEASER_APP_CLIENT_ID }}
46+
RELEASER_APP_PRIVATE_KEY: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
47+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
48+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
49+

.release-please-manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
".": "0.1.2"
3+
}
4+

release-please-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "simple",
4+
"pull-request-title-pattern": "release: v${version}",
5+
"skip-github-release": true,
6+
"bootstrap-sha": "ca56b565a65266243939a4d7993d640e9aad0ab3",
7+
"packages": {
8+
".": {
9+
"package-name": "action-openfga-deploy",
10+
"include-component-in-tag": false,
11+
"changelog-path": "CHANGELOG.md",
12+
"changelog-type": "default",
13+
"bump-minor-pre-major": true,
14+
"bump-patch-for-minor-pre-major": true,
15+
"changelog-sections": [
16+
{ "type": "feat", "section": "Added", "hidden": false },
17+
{ "type": "fix", "section": "Fixed", "hidden": false },
18+
{ "type": "perf", "section": "Changed", "hidden": false },
19+
{ "type": "refactor", "section": "Changed", "hidden": false },
20+
{ "type": "revert", "section": "Removed", "hidden": false },
21+
{ "type": "docs", "section": "Documentation", "hidden": false },
22+
{ "type": "test", "section": "Tests", "hidden": true },
23+
{ "type": "ci", "section": "CI", "hidden": true },
24+
{ "type": "chore", "section": "Miscellaneous", "hidden": true },
25+
{ "type": "release", "section": "Miscellaneous", "hidden": true }
26+
]
27+
}
28+
}
29+
}
30+

0 commit comments

Comments
 (0)