Skip to content

Commit d9719a7

Browse files
ci: add workflow to handle release PR edit (#97)
1 parent dc178c6 commit d9719a7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Handle release PR title edits
2+
on:
3+
pull_request:
4+
types:
5+
- edited
6+
- unlabeled
7+
8+
jobs:
9+
update_pr_content:
10+
name: Update pull request content
11+
if: |
12+
(github.event.type == 'edited' && github.event.changes.title.from != github.event.pull_request.title) ||
13+
(github.event.type == 'unlabeled' && github.event.label.name == 'autorelease: custom version') &&
14+
github.event.pull_request.state == 'open' &&
15+
github.event.sender.login != 'stainless-bot' &&
16+
github.repository == 'Finch-API/finch-api-python'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: stainless-api/trigger-release-please@v1
21+
with:
22+
repo: ${{ github.event.repository.full_name }}
23+
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}

0 commit comments

Comments
 (0)