-
Notifications
You must be signed in to change notification settings - Fork 130
37 lines (32 loc) · 1.06 KB
/
github-intake-issue.yml
File metadata and controls
37 lines (32 loc) · 1.06 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
name: GitHub Issue Intake
on:
issues:
types:
- opened
- reopened
- edited
permissions:
contents: read
issues: write
concurrency:
group: github-intake-issue-${{ github.event.issue.number }}
cancel-in-progress: false
jobs:
intake:
runs-on: ubuntu-latest
steps:
- name: Checkout trusted automation from default branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
- name: Sync issue metadata into GitLab
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::issue' }}
run: bash tools/github-intake/issue-intake.sh