From 81ba93934fc18d2ac642af4ce1a7772996cb5030 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
 <142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 27 Jun 2024 00:08:13 +0000
Subject: [PATCH 1/2] chore: go live (#2)

---
 .github/workflows/create-releases.yml         | 38 -------------------
 .../handle-release-pr-title-edit.yml          | 25 ------------
 .github/workflows/publish-pypi.yml            |  8 +++-
 .github/workflows/release-doctor.yml          |  3 +-
 CONTRIBUTING.md                               |  4 +-
 README.md                                     |  6 +--
 bin/check-release-environment                 |  4 --
 pyproject.toml                                |  6 +--
 8 files changed, 15 insertions(+), 79 deletions(-)
 delete mode 100644 .github/workflows/create-releases.yml
 delete mode 100644 .github/workflows/handle-release-pr-title-edit.yml

diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml
deleted file mode 100644
index 54b9eec2..00000000
--- a/.github/workflows/create-releases.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Create releases
-on:
-  schedule:
-    - cron: '0 5 * * *' # every day at 5am UTC
-  push:
-    branches:
-      - main
-
-jobs:
-  release:
-    name: release
-    if: github.ref == 'refs/heads/main' && github.repository == 'undefined/sdk'
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v4
-
-      - uses: stainless-api/trigger-release-please@v1
-        id: release
-        with:
-          repo: ${{ github.event.repository.full_name }}
-          stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
-
-      - name: Install Rye
-        if: ${{ steps.release.outputs.releases_created }}
-        run: |
-          curl -sSf https://rye.astral.sh/get | bash
-          echo "$HOME/.rye/shims" >> $GITHUB_PATH
-        env:
-          RYE_VERSION: 0.24.0
-          RYE_INSTALL_OPTION: "--yes"
-
-      - name: Publish to PyPI
-        if: ${{ steps.release.outputs.releases_created }}
-        run: |
-          bash ./bin/publish-pypi
-        env:
-          PYPI_TOKEN: ${{ secrets.PAYI_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/handle-release-pr-title-edit.yml b/.github/workflows/handle-release-pr-title-edit.yml
deleted file mode 100644
index f9c402cb..00000000
--- a/.github/workflows/handle-release-pr-title-edit.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: Handle release PR title edits
-on:
-  pull_request:
-    types:
-      - edited
-      - unlabeled
-
-jobs:
-  update_pr_content:
-    name: Update pull request content
-    if: |
-      ((github.event.action == 'edited' && github.event.changes.title.from != github.event.pull_request.title) ||
-      (github.event.action == 'unlabeled' && github.event.label.name == 'autorelease: custom version')) &&
-      startsWith(github.event.pull_request.head.ref, 'release-please--') &&
-      github.event.pull_request.state == 'open' &&
-      github.event.sender.login != 'stainless-bot' &&
-      github.event.sender.login != 'stainless-app' &&
-      github.repository == 'undefined/sdk'
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v4
-      - uses: stainless-api/trigger-release-please@v1
-        with:
-          repo: ${{ github.event.repository.full_name }}
-          stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml
index 533acf7a..71d84ca1 100644
--- a/.github/workflows/publish-pypi.yml
+++ b/.github/workflows/publish-pypi.yml
@@ -1,9 +1,13 @@
-# workflow for re-running publishing to PyPI in case it fails for some reason
-# you can run this workflow by navigating to https://www.github.com/undefined/sdk/actions/workflows/publish-pypi.yml
+# This workflow is triggered when a GitHub release is created.
+# It can also be run manually to re-publish to PyPI in case it failed for some reason.
+# You can run this workflow by navigating to https://www.github.com/Pay-i/pay-i-python/actions/workflows/publish-pypi.yml
 name: Publish PyPI
 on:
   workflow_dispatch:
 
+  release:
+    types: [published]
+
 jobs:
   publish:
     name: publish
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
index 561cd27a..479eb39f 100644
--- a/.github/workflows/release-doctor.yml
+++ b/.github/workflows/release-doctor.yml
@@ -7,7 +7,7 @@ jobs:
   release_doctor:
     name: release doctor
     runs-on: ubuntu-latest
-    if: github.repository == 'undefined/sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
+    if: github.repository == 'Pay-i/pay-i-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
 
     steps:
       - uses: actions/checkout@v4
@@ -16,5 +16,4 @@ jobs:
         run: |
           bash ./bin/check-release-environment
         env:
-          STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
           PYPI_TOKEN: ${{ secrets.PAYI_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 03450c4d..93e6fb95 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -59,7 +59,7 @@ If you’d like to use the repository from source, you can either install from g
 To install via git:
 
 ```bash
-pip install git+ssh://git@github.com/undefined/sdk.git
+pip install git+ssh://git@github.com/Pay-i/pay-i-python.git
 ```
 
 Alternatively, you can build from source and install the wheel file:
@@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
 
 ### Publish with a GitHub workflow
 
-You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/undefined/sdk/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
+You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/Pay-i/pay-i-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
 
 ### Publish manually
 
diff --git a/README.md b/README.md
index d5742ef7..72618dac 100644
--- a/README.md
+++ b/README.md
@@ -221,9 +221,9 @@ budget = response.parse()  # get the object that `budgets.create()` would have r
 print(budget.request_id)
 ```
 
-These methods return an [`APIResponse`](https://github.com/undefined/sdk/tree/main/src/payi/_response.py) object.
+These methods return an [`APIResponse`](https://github.com/Pay-i/pay-i-python/tree/main/src/payi/_response.py) object.
 
-The async client returns an [`AsyncAPIResponse`](https://github.com/undefined/sdk/tree/main/src/payi/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
+The async client returns an [`AsyncAPIResponse`](https://github.com/Pay-i/pay-i-python/tree/main/src/payi/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
 
 #### `.with_streaming_response`
 
@@ -314,7 +314,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
 
 We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
 
-We are keen for your feedback; please open an [issue](https://www.github.com/undefined/sdk/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/Pay-i/pay-i-python/issues) with questions, bugs, or suggestions.
 
 ## Requirements
 
diff --git a/bin/check-release-environment b/bin/check-release-environment
index a63bbde8..cad7e281 100644
--- a/bin/check-release-environment
+++ b/bin/check-release-environment
@@ -3,10 +3,6 @@
 warnings=()
 errors=()
 
-if [ -z "${STAINLESS_API_KEY}" ]; then
-  errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
-fi
-
 if [ -z "${PYPI_TOKEN}" ]; then
   warnings+=("The PAYI_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
 fi
diff --git a/pyproject.toml b/pyproject.toml
index ab8273cc..0393b234 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,8 +39,8 @@ classifiers = [
 
 
 [project.urls]
-Homepage = "https://github.com/undefined/sdk"
-Repository = "https://github.com/undefined/sdk"
+Homepage = "https://github.com/Pay-i/pay-i-python"
+Repository = "https://github.com/Pay-i/pay-i-python"
 
 
 
@@ -108,7 +108,7 @@ path = "README.md"
 [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
 # replace relative links with absolute links
 pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
-replacement = '[\1](https://github.com/undefined/sdk/tree/main/\g<2>)'
+replacement = '[\1](https://github.com/Pay-i/pay-i-python/tree/main/\g<2>)'
 
 [tool.black]
 line-length = 120

From d52abde8757aa50c92904b664ce62bb8c97ac944 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
 <142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 27 Jun 2024 00:08:23 +0000
Subject: [PATCH 2/2] release: 0.1.0-alpha.1

---
 .release-please-manifest.json |  2 +-
 CHANGELOG.md                  | 19 +++++++++++++++++++
 pyproject.toml                |  2 +-
 src/payi/_version.py          |  2 +-
 4 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644 CHANGELOG.md

diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c4762802..ba6c3483 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
 {
-  ".": "0.0.1-alpha.0"
+  ".": "0.1.0-alpha.1"
 }
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..eea5c778
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,19 @@
+# Changelog
+
+## 0.1.0-alpha.1 (2024-06-27)
+
+Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/Pay-i/pay-i-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
+
+### Features
+
+* **api:** update via SDK Studio ([ba34638](https://github.com/Pay-i/pay-i-python/commit/ba3463802b7366b450058f6ccdb13419b3bdbfe1))
+* **api:** update via SDK Studio ([d87c30c](https://github.com/Pay-i/pay-i-python/commit/d87c30c4d5c3d7dee3a4b96596c8df9e319ca690))
+* **api:** update via SDK Studio ([96d12c3](https://github.com/Pay-i/pay-i-python/commit/96d12c3c114642a13469ece184eaec8feee50b1a))
+* **api:** update via SDK Studio ([ba169b1](https://github.com/Pay-i/pay-i-python/commit/ba169b1e70894cb2a2f0497e4781121a334716cd))
+
+
+### Chores
+
+* go live ([#2](https://github.com/Pay-i/pay-i-python/issues/2)) ([81ba939](https://github.com/Pay-i/pay-i-python/commit/81ba93934fc18d2ac642af4ce1a7772996cb5030))
+* update SDK settings ([8ff0351](https://github.com/Pay-i/pay-i-python/commit/8ff0351ba46df46381eb41cf4eadf655ddb82049))
+* update SDK settings ([441d968](https://github.com/Pay-i/pay-i-python/commit/441d9681112eae338ced67f5186a4a2e371cb99c))
diff --git a/pyproject.toml b/pyproject.toml
index 0393b234..7c4478fb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "payi"
-version = "0.0.1-alpha.0"
+version = "0.1.0-alpha.1"
 description = "The official Python library for the payi API"
 dynamic = ["readme"]
 license = "Apache-2.0"
diff --git a/src/payi/_version.py b/src/payi/_version.py
index df182836..6a19c533 100644
--- a/src/payi/_version.py
+++ b/src/payi/_version.py
@@ -1,4 +1,4 @@
 # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 
 __title__ = "payi"
-__version__ = "0.0.1-alpha.0"  # x-release-please-version
+__version__ = "0.1.0-alpha.1"  # x-release-please-version
