-
Notifications
You must be signed in to change notification settings - Fork 114
56 lines (44 loc) · 2.13 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File location: .github/workflows/greetings.yml
name: Greetings Workflow with Assign User
on:
issues:
types: [opened] # Trigger when a new issue is opened
pull_request_target:
types: [opened] # Trigger when a new pull request is opened
jobs:
greet-and-assign:
runs-on: ubuntu-latest # The environment
steps:
- name: Checkout repository content
uses: actions/checkout@v3 # Checkout the repository
- name: Run greeting and assign action
uses: ./ # This points to the custom action defined in action.yml at the root
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # GitHub authentication token
issue-message: 'Welcome, @{{ github.actor }}! Thanks for opening this issue!' # Issue greeting message
pr-message: 'Great job, @{{ github.actor }}! Thanks for the pull request!' # PR greeting message
footer: 'The maintainers will review your request soon. Stay tuned!' # Footer message
assign-user: 'specific-username' # Replace with the GitHub username you want to assign
# # File location: .github/workflows/greetings.yml
# name: Greetings Workflow with Auto-Assign
# on: # Trigger events
# push:
# branches: [main]
# issues:
# types: [opened] # Trigger on issue opened
# pull_request_target:
# types: [opened] # Trigger on pull request opened
# jobs:
# greet-and-assign:
# runs-on: ubuntu-latest # The environment
# steps:
# - name: Checkout repository content
# uses: actions/checkout@v3 # Checks out the repository
# - name: Run greeting and assign action
# uses: ./ # This points to the root directory where action.yml resides
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }} # GitHub authentication
# issue-message: 'Welcome, @{{ github.actor }}! Thanks for opening this issue!'
# pr-message: 'Great job, @{{ github.actor }}! Thanks for the pull request!'
# footer: 'The maintainers will review your request soon. Stay tuned!'
# assign-user: 'username-to-assign' # You can replace this with any username or GitHub handle