Skip to content

Commit 6a602e1

Browse files
committed
add bc linter to github workflow
1 parent 10eb24c commit 6a602e1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/bc-lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: BC Lint
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
# branches-ignore:
10+
# - <branches to ignore bc-linter>
11+
12+
jobs:
13+
bc_lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Run BC Lint Action
20+
uses: pytorch/test-infra/.github/actions/bc-lint@main
21+
with:
22+
repo: ${{ github.event.pull_request.head.repo.full_name }}
23+
base_sha: ${{ github.event.pull_request.base.sha }}
24+
head_sha: ${{ github.event.pull_request.head.sha }}
25+
suppression: ${{ contains(github.event.pull_request.labels.*.name, 'suppress-bc-linter') }}
26+
docs_link: 'https://github.com/pytorch/test-infra/wiki/BC-Linter'

0 commit comments

Comments
 (0)