Skip to content

[Doc] "[Doc] cherry-pick Bugcrowd Researcher" && ls -la #3

[Doc] "[Doc] cherry-pick Bugcrowd Researcher" && ls -la

[Doc] "[Doc] cherry-pick Bugcrowd Researcher" && ls -la #3

Workflow file for this run

name: backport
on:
pull_request_target:
branches:
- main
types:
- closed
jobs:
backport:
runs-on: ubuntu-latest
if: >
${{ github.event.pull_request.merged == true }} &&
!contains(github.event.pull_request.title, 'cherry-pick') &&
!contains(github.event.pull_request.title, 'backport') && (
contains(github.event.pull_request.labels.*.name, '2.5') ||
contains(github.event.pull_request.labels.*.name, '2.4') ||
contains(github.event.pull_request.labels.*.name, '2.3') ||
contains(github.event.pull_request.labels.*.name, '2.2') )
env:
PR_NUMBER: ${{ github.event.number }}
steps:
- name: backport branch-2.5
if: contains(github.event.pull_request.labels.*.name, '2.5')
uses: thollander/actions-comment-pull-request@v1
with:
message: |
@Mergifyio backport branch-2.5
GITHUB_TOKEN: ${{ secrets.PAT }}
- uses: actions-ecosystem/action-remove-labels@v1
if: contains(github.event.pull_request.labels.*.name, '2.5')
with:
labels: 2.5
- name: backport branch-2.4
if: contains(github.event.pull_request.labels.*.name, '2.4')
uses: thollander/actions-comment-pull-request@v1
with:
message: |
@Mergifyio backport branch-2.4
GITHUB_TOKEN: ${{ secrets.PAT }}
- uses: actions-ecosystem/action-remove-labels@v1
if: contains(github.event.pull_request.labels.*.name, '2.4')
with:
labels: 2.4
- name: backport branch-2.3
if: contains(github.event.pull_request.labels.*.name, '2.3')
uses: thollander/actions-comment-pull-request@v1
with:
message: |
@Mergifyio backport branch-2.3
GITHUB_TOKEN: ${{ secrets.PAT }}
- uses: actions-ecosystem/action-remove-labels@v1
if: contains(github.event.pull_request.labels.*.name, '2.3')
with:
labels: 2.3
- name: backport branch-2.2
if: contains(github.event.pull_request.labels.*.name, '2.2')
uses: thollander/actions-comment-pull-request@v1
with:
message: |
@Mergifyio backport branch-2.2
GITHUB_TOKEN: ${{ secrets.PAT }}
- uses: actions-ecosystem/action-remove-labels@v1
if: contains(github.event.pull_request.labels.*.name, '2.2')
with:
labels: 2.2