Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 96d8dd3

Browse files
committed
actions: Add action to perform checks for pull requests
Use github actions for performing wip and DCO checks on PRs. Note since external actions for DCO check access github token, a particular sha for the actions is used. Fixes: github.com/kata-containers/kata-containers#437 Signed-off-by: Archana Shinde <[email protected]>
1 parent e01f289 commit 96d8dd3

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pull request WIP checks
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
pr_wip_check:
14+
runs-on: ubuntu-latest
15+
name: WIP Check
16+
steps:
17+
- name: WIP Check
18+
uses: tim-actions/wip-check@1c2a1ca6c110026b3e2297bb2ef39e1747b5a755
19+
with:
20+
labels: '["do-not-merge", "wip", "rfc"]'
21+
keywords: '["WIP", "wip", "RFC", "rfc", "dnm", "DNM", "do-not-merge"]'

.github/workflows/dco-check.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: DCO check
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
9+
jobs:
10+
dco_check_job:
11+
runs-on: ubuntu-latest
12+
name: DCO Check
13+
steps:
14+
- name: Get PR Commits
15+
id: 'get-pr-commits'
16+
uses: tim-actions/get-pr-commits@ed97a21c3f83c3417e67a4733ea76887293a2c8f
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
- name: DCO Check
20+
uses: tim-actions/dco@2fd0504dc0d27b33f542867c300c60840c6dcb20
21+
with:
22+
commits: ${{ steps.get-pr-commits.outputs.commits }}

0 commit comments

Comments
 (0)