-
Notifications
You must be signed in to change notification settings - Fork 130
39 lines (34 loc) · 1.12 KB
/
github-intake-pr.yml
File metadata and controls
39 lines (34 loc) · 1.12 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
name: GitHub PR Intake
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- edited
permissions:
contents: read
issues: write
pull-requests: write
concurrency:
group: github-intake-pr-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
intake:
runs-on: ubuntu-latest
steps:
- name: Checkout trusted base-repository automation only
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false
- name: Sync PR metadata into GitLab intake record
env:
GITHUB_BACKLINK_MODE: ${{ vars.INTAKE_BACKLINK_MODE || 'none' }}
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLAB_BASE_URL: ${{ vars.GITLAB_BASE_URL }}
GITLAB_PROJECT_PATH: ${{ vars.GITLAB_PROJECT_PATH }}
GITLAB_API_TOKEN: ${{ secrets.GITLAB_INTAKE_TOKEN }}
GITLAB_INTAKE_LABEL: ${{ vars.GITLAB_INTAKE_LABEL || 'github-intake,github-intake::pr' }}
run: bash tools/github-intake/pr-intake.sh