-
-
Notifications
You must be signed in to change notification settings - Fork 185
44 lines (41 loc) · 1.87 KB
/
assigner.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
# name: Assigner
# on:
# issue_comment:
# types: [created]
# jobs:
# slash_assign:
# # If the acton was triggered by a new comment that starts with `/assign`
# # or a on a schedule
# if: >
# (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/assign')) || github.event_name == 'workflow_dispatch'
# runs-on: ubuntu-latest
# steps:
# - name: Assign the user or unassign stale assignments
# uses: JasonEtco/[email protected]
# with:
# assigned_label: Assigned
# days_until_warning: 3
# days_until_unassign: 4
# stale_assignment_label: Stale
# assigned_comment: "This issue [has been assigned]({{ comment.html_url }}) to {{ comment.user.login }}!\nIt will become unassigned if it is not closed within {{ totalDays }} days. A maintainer can also add the **{{ inputs.pin_label }}** label to prevent it from being unassigned."
# fail_comment: "This issue is already assigned to a contributor."
# - name: Message failure
# if: ${{ failure() }}
# uses: actions/github-script@v4
# with:
# script: |
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: 'The issue is already assigned!\nPlease find/create a new issue to contribute to.\nYou can safely disregard the failed workflow notification for this issue. ❌',
# });
# - name: Checkout code
# uses: actions/checkout@main
# - name: Run Action
# uses: Suvraneel/Issue_Watcher@main
# with:
# token: "${{ secrets.GITHUB_TOKEN }}"
# author: "${{github.actor}}"
# repo: narayan954/dummygram #Change the Repo name
# maxIssue: 1