-
Notifications
You must be signed in to change notification settings - Fork 275
55 lines (48 loc) · 1.49 KB
/
auto-request-same-site.yml
File metadata and controls
55 lines (48 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Auto-request same-site reviewers
on:
# Works for PRs from branches and forks (runs in base-repo context)
pull_request_target:
types:
- opened
- ready_for_review
# Manual trigger for testing
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to test with'
required: true
type: number
permissions:
contents: read
pull-requests: write
issues: write
jobs:
assign:
runs-on: ubuntu-latest
steps:
- name: Get GitHub App installation token
id: app
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.E2B_GH_APP_AUTO_REQUEST_SAME_SITE_APP_ID }}
private-key: ${{ secrets.E2B_GH_APP_AUTO_REQUEST_SAME_SITE_APP_PRIVATE_KEY }}
owner: e2b-dev
- name: Checkout repo (needed because the script lives in the repo)
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install deps
run: npm install
working-directory: .github/actions/auto-request-same-site
- name: Run same-site override
env:
APP_TOKEN: ${{ steps.app.outputs.token }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
ORG: e2b-dev
SF_TEAM_SLUG: eng-sf
PRG_TEAM_SLUG: eng-prg
REVIEWERS_TO_REQUEST: "1"
PR_NUMBER: ${{ inputs.pr_number }}
run: node .github/actions/auto-request-same-site/script.js