Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'generated-python/main' into introduce-g…
Browse files Browse the repository at this point in the history
…enerated-code
  • Loading branch information
andrii-balitskyi committed Mar 22, 2024
2 parents df315f8 + a3de314 commit abdc362
Show file tree
Hide file tree
Showing 76 changed files with 5,139 additions and 5,030 deletions.
30 changes: 0 additions & 30 deletions .devcontainer/Dockerfile

This file was deleted.

27 changes: 0 additions & 27 deletions .devcontainer/devcontainer.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
seamapi/** linguist-generated
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ runs:
- name: Install dependencies
if: inputs.install_dependencies == 'true'
shell: bash
run: poetry install --sync
run: poetry install --sync
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
target-branch: "main"
versioning-strategy: "auto"
allow:
- dependency-name: "@seamapi/*"
dependency-type: "development"
ignore:
- dependency-name: "@seamapi/*"
update-types: ["version-update:semver-major"]
groups:
seam:
dependency-type: development
update-types:
- patch
- minor
41 changes: 0 additions & 41 deletions .github/workflows/_build.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/_publish.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/check.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

# This workflow enables auto-merge for Dependabot PRs
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: contains(steps.metadata.outputs.dependency-names, '@seamapi/')
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
46 changes: 46 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Generate

on:
push:
branches-ignore:
- main
workflow_dispatch: {}

jobs:
commit:
name: Generate code
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: ${{ secrets.GIT_USER_NAME }}
git_committer_email: ${{ secrets.GIT_USER_EMAIL }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Setup
uses: ./.github/actions/setup
with:
install_dependencies: "true"
- name: Normalize package-lock.json
run: npm install
- name: Generate SDK
run: npm run generate
- name: Format code
run: poetry run black ./seamapi
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: Generate code"
commit_user_name: ${{ secrets.GIT_USER_NAME }}
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>
42 changes: 0 additions & 42 deletions .github/workflows/publish.yml

This file was deleted.

Loading

0 comments on commit abdc362

Please sign in to comment.