Skip to content

Commit bd6bfca

Browse files
chore(ci): update of CLA workflow (#16)
CLA will not executed on PRs in draft state [skip ci] Co-authored-by: borislavr <noreply@github.com>
1 parent e38ad0e commit bd6bfca

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/cla.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: CLA Assistant
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened, closed, synchronize]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
CLAAssistant:
14+
if: github.event.pull_request.draft == false
15+
permissions:
16+
actions: write
17+
contents: write
18+
pull-requests: write
19+
statuses: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: "CLA Assistant"
23+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
24+
uses: contributor-assistant/github-action@v2.6.1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }}
28+
with:
29+
path-to-signatures: 'signatures/version1/cla.json'
30+
path-to-document: 'https://github.com/Netcracker/qubership-github-workflows/blob/main/CLA/cla.md'
31+
# branch should not be protected
32+
branch: 'main'
33+
allowlist: NetcrackerCLPLCI,web-flow,bot*
34+
remote-repository-name: cla-storage
35+
remote-organization-name: Netcracker

0 commit comments

Comments
 (0)