2023-08-15 01:28:42 +00:00
|
|
|
name: Pull Request Labeled
|
|
|
|
|
|
|
|
on:
|
2023-11-28 23:33:07 +00:00
|
|
|
pull_request_target:
|
2023-08-15 01:28:42 +00:00
|
|
|
types: [labeled]
|
|
|
|
|
2023-11-28 23:33:07 +00:00
|
|
|
permissions: {}
|
2023-08-15 01:28:42 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-11-22 06:20:34 +00:00
|
|
|
pull-request-labeled-backport-requested:
|
|
|
|
name: backport/requested label added
|
|
|
|
if: github.event.label.name == 'backport/requested 🗳'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Trigger Slack workflow
|
2024-05-08 11:36:33 +00:00
|
|
|
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
2023-11-22 06:20:34 +00:00
|
|
|
with:
|
|
|
|
payload: |
|
|
|
|
{
|
|
|
|
"url": "${{ github.event.pull_request.html_url }}"
|
|
|
|
}
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.BACKPORT_REQUESTED_SLACK_WEBHOOK_URL }}
|
2023-08-15 01:28:42 +00:00
|
|
|
pull-request-labeled-deprecation-review-complete:
|
|
|
|
name: deprecation-review/complete label added
|
|
|
|
if: github.event.label.name == 'deprecation-review/complete ✅'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Generate GitHub App token
|
2024-02-14 10:13:03 +00:00
|
|
|
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
|
2023-08-15 01:28:42 +00:00
|
|
|
id: generate-token
|
2023-08-30 15:09:33 +00:00
|
|
|
with:
|
|
|
|
creds: ${{ secrets.RELEASE_BOARD_GH_APP_CREDS }}
|
|
|
|
org: electron
|
2023-08-15 01:28:42 +00:00
|
|
|
- name: Set status
|
2024-05-23 09:14:23 +00:00
|
|
|
uses: dsanders11/project-actions/edit-item@eb760c48894b5702398529cbb8f6e98378e315d0 # v1.3.0
|
2023-08-15 01:28:42 +00:00
|
|
|
with:
|
2023-09-28 15:26:04 +00:00
|
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
|
|
project-number: 94
|
2023-08-15 01:28:42 +00:00
|
|
|
field: Status
|
2023-09-28 15:26:04 +00:00
|
|
|
field-value: ✅ Reviewed
|