-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 2.3 KB
/
Copy pathreviewer-bot-issues.yml
File metadata and controls
60 lines (56 loc) · 2.3 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
56
57
58
59
60
name: Reviewer Bot Issues
on:
issues:
types: [opened, edited, labeled, unlabeled, assigned, unassigned, reopened, closed]
permissions:
contents: read
env:
STATE_ISSUE_NUMBER: '314'
jobs:
reviewer-bot-issues:
runs-on: ubuntu-latest
permissions:
# Temporary lock debt: contents:write is allowed only for the existing lock-ref API operations.
contents: write
issues: write
pull-requests: write
actions: read
steps:
- name: Install uv
run: python -m pip install uv
- name: Checkout trusted bot source
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ github.sha }}
- name: Select trusted bot source
id: bot-source
uses: ./.github/actions/reviewer-bot-source
- name: Run reviewer bot
env:
BOT_SRC_ROOT: ${{ steps.bot-source.outputs.bot-src-root }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENT_NAME: issues
EVENT_ACTION: ${{ github.event.action }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
IS_PULL_REQUEST: 'false'
ISSUE_STATE: ${{ github.event.issue.state }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_CREATED_AT: ${{ github.event.issue.created_at }}
ISSUE_UPDATED_AT: ${{ github.event.issue.updated_at }}
ISSUE_CLOSED_AT: ${{ github.event.issue.closed_at }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
ISSUE_HTML_URL: ${{ github.event.issue.html_url }}
ISSUE_LABELS: ${{ toJson(github.event.issue.labels.*.name) }}
ISSUE_CHANGES_TITLE_FROM: ${{ github.event.changes.title.from }}
ISSUE_CHANGES_BODY_FROM: ${{ github.event.changes.body.from }}
LABEL_NAME: ${{ github.event.label.name }}
SENDER_LOGIN: ${{ github.event.sender.login }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
WORKFLOW_NAME: ${{ github.workflow }}
WORKFLOW_JOB_NAME: ${{ github.job }}
run: uv run --project "$BOT_SRC_ROOT" reviewer-bot