-
Notifications
You must be signed in to change notification settings - Fork 67
50 lines (47 loc) · 1.74 KB
/
ctt-bot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: OCF Conformance Bot
on:
pull_request:
types:
- synchronize
- opened
jobs:
info-comment:
name: Info comment
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
installation_id: 24124545
- name: Publish comment
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ steps.generate_token.outputs.token }}
issue-number: ${{ github.event.pull_request.number }}
body: |
:tada: Thank you for your code contribution! To guarantee the change/addition is conformant to the [OCF Specification](https://openconnectivity.org), we would like to ask you to execute OCF Conformance Testing of your change :point_up: **when your work is ready to be reviewed**.
---
:information_source: To verify your latest change (${{ github.event.pull_request.head.sha }}), label this PR with `OCF Conformance Testing`.
:warning: Label is removed with every code change.
remove-label:
name: Remove label
if: github.event.action == 'synchronize'
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
installation_id: 24124545
- name: Remove label
uses: mondeja/remove-labels-gh-action@v1
with:
token: ${{ steps.generate_token.outputs.token }}
labels: |
OCF Conformance Testing