Add action for automated backports

This commit is contained in:
Fedor Indutny 2021-06-01 11:04:56 -07:00 committed by GitHub
parent e4d7e1e9c8
commit 8841de17a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 0 deletions

View File

@ -4,6 +4,9 @@ coverage/**
dist/**
release/**
# Github workflows
.github/**
# Generated files
js/curve/*
js/components.js

29
.github/workflows/backport.yml vendored Normal file
View File

@ -0,0 +1,29 @@
# Copyright 2021 Signal Messenger, LLC
# SPDX-License-Identifier: AGPL-3.0-only
name: Backport
on:
issue_comment:
types: [created]
pull_request:
types: [closed]
jobs:
backport:
name: Apply labels and open backport pull requests
if: ${{ github.repository == 'signalapp/Signal-Desktop-Private' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.AUTOMATED_GITHUB_PAT }}
repository: signalapp/Signal-Backport-Action-Private
path: ./.github/actions/backport
- name: Run action
uses: ./.github/actions/backport
with:
token: ${{ secrets.AUTOMATED_GITHUB_PAT }}
git-email: backport-bot@signal.org
git-name: Backport Bot

View File

@ -30,6 +30,9 @@ test/blanket_mocha.js
# Test fixtures
test/fixtures.js
# Github workflows
.github/**
# Managed by Transifex:
# Note: the negate pattern only works because it's targeting the same depth as the
# glob on the previous line.

View File

@ -64,6 +64,9 @@ const excludedFilesRegexps = [
'^libtextsecure/test/.+',
'^test/.+',
// Github workflows
'^.github/.+',
// Modules we trust
'^node_modules/core-js-pure/.+',
'^node_modules/core-js/.+',