-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
42 lines (37 loc) · 1.4 KB
/
greetings.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
name: Greetings
on: [pull_request_target, issues]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "<a href="https://github.com/UFund-Me"><img alt="image" src="https://github.com/UFund-Me/Qbot/assets/29084184/39c4e22f-bc3a-4d13-b213-9e101675b038"></a> \nHey @{user}! Welcome to the **QBOT** repo on **Github**."
pr-message: "Message that will be displayed on users' first pull request"
auto-lgtm:
if: ${{ github.event.review.state == 'approved' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lazy-actions/lgtm-image-action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
favorite-image: 'https://your.favorite/image1.png,https://your.favorite/image2.png'
post-lgtm-image:
runs-on: ubuntu-latest
if: (!contains(github.actor, '[bot]')) # Exclude bot comment
steps:
- uses: ddradar/choose-random-action@v2
id: act
with:
contents: |
https://example.com/your-lgtm-image-1.jpg
https://example.com/your-lgtm-image-2.jpg
https://example.com/your-lgtm-image-3.jpg
- uses: ddradar/lgtm-action@v2.0.2
with:
image-url: ${{ steps.act.outputs.selected }}