2023-08-15 01:28:42 +00:00
|
|
|
name: Pull Request Labeled
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [labeled]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
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
|
|
|
|
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
|
|
|
|
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
|
2023-08-30 15:09:33 +00:00
|
|
|
uses: electron/github-app-auth-action@cc6751b3b5e4edc5b9a4ad0a021ac455653b6dc8 # v1.0.0
|
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
|
2023-09-28 15:26:04 +00:00
|
|
|
uses: dsanders11/project-actions/edit-item@a24415515fa60a22f71f9d9d00e36ca82660cde9 # v1.0.1
|
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
|