Browse Source
This is an automated check for the Backports project to require one or more `Fixes #<issue>` items in the body of the pull request. Fixes #46164 Signed-off-by: Christopher Friedt <cfriedt@fb.com>pull/47945/head
2 changed files with 31 additions and 2 deletions
@ -0,0 +1,30 @@ |
|||||||
|
name: Backport Issue Check |
||||||
|
|
||||||
|
on: |
||||||
|
pull_request_target: |
||||||
|
branches: |
||||||
|
- v*-branch |
||||||
|
|
||||||
|
jobs: |
||||||
|
backport: |
||||||
|
name: Backport Issue Check |
||||||
|
runs-on: ubuntu-latest |
||||||
|
|
||||||
|
steps: |
||||||
|
- name: Check out source code |
||||||
|
uses: actions/checkout@v2 |
||||||
|
|
||||||
|
- name: Install Python dependencies |
||||||
|
run: | |
||||||
|
sudo pip3 install -U setuptools wheel pip |
||||||
|
pip3 install -U pygithub |
||||||
|
|
||||||
|
- name: Run backport issue checker |
||||||
|
env: |
||||||
|
GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }} |
||||||
|
run: | |
||||||
|
./scripts/release/list_backports.py \ |
||||||
|
-o ${{ github.event.repository.owner.login }} \ |
||||||
|
-r ${{ github.event.repository.name }} \ |
||||||
|
-b ${{ github.event.pull_request.base.ref }} \ |
||||||
|
-p ${{ github.event.pull_request.number }} |
Loading…
Reference in new issue