mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Bumps [dsanders11/project-actions](https://github.com/dsanders11/project-actions) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/dsanders11/project-actions/releases)
- [Commits](2134fe7cc7...5767984408)
---
updated-dependencies:
- dependency-name: dsanders11/project-actions
dependency-version: 2.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: PR Triage Automation
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [synchronize, review_requested]
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
set-needs-review:
|
|
name: Set status to Needs Review
|
|
if: >-
|
|
(github.event_name == 'pull_request_target' && github.event.action == 'synchronize')
|
|
|| (github.event_name == 'pull_request_target' && github.event.action == 'review_requested')
|
|
|| (github.event_name == 'issue_comment'
|
|
&& github.event.issue.pull_request
|
|
&& github.event.comment.user.login == github.event.issue.user.login)
|
|
runs-on: ubuntu-slim
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Generate GitHub App token
|
|
uses: electron/github-app-auth-action@e14e47722ed120360649d0789e25b9baece12725 # v2.0.0
|
|
id: generate-token
|
|
with:
|
|
creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
|
|
org: electron
|
|
- name: Set status to Needs Review
|
|
uses: dsanders11/project-actions/edit-item@5767984408ccc6742f83acc8b8d8ea5e09f329af # v2.0.0
|
|
with:
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
project-number: 118
|
|
field: Status
|
|
field-value: 🌀 Needs Review
|
|
fail-if-item-not-found: false
|