Skip to content

Commit a6e13c7

Browse files
committed
update parity workflow to use stagehand-parity-bot app
1 parent ac944fa commit a6e13c7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/feature-parity.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
check-parity-label:
1313
runs-on: ubuntu-latest
1414
if: github.event.action == 'labeled' && github.event.label.name == 'parity'
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
issues: write
1519
steps:
1620
- name: Check out repository code
1721
uses: actions/checkout@v4
@@ -51,10 +55,19 @@ jobs:
5155
5256
console.log(`User ${context.actor} has ${permission.permission} access - proceeding with parity workflow`);
5357
54-
- name: Create issue in TS SDK repository
58+
- name: Generate GitHub App token
59+
id: generate-token
60+
uses: actions/create-github-app-token@v1
61+
with:
62+
app-id: ${{ secrets.PARITY_APP_ID }}
63+
private-key: ${{ secrets.PARITY_APP_PRIVATE_KEY }}
64+
owner: browserbase
65+
repositories: stagehand
66+
67+
- name: Create issue in Python SDK repository
5568
uses: actions/github-script@v7
5669
with:
57-
github-token: ${{ secrets.TS_REPO_TOKEN }}
70+
github-token: ${{ steps.generate-token.outputs.token }}
5871
script: |
5972
const { data: pullRequest } = await github.rest.pulls.get({
6073
owner: context.repo.owner,

0 commit comments

Comments
 (0)