Skip to content

Basics of Visual Design :Part 2 #24155

Basics of Visual Design :Part 2

Basics of Visual Design :Part 2 #24155

Workflow file for this run

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 == 'schedule' || 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: 5
days_until_unassign: 7
stale_assignment_label: Stale
- 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: 'This issue is already assigned to another contributor!\nPlease find/create a new issue to contribute to.\nYou can safely disregard the failed workflow notification for attempting to self-assign on 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: girlscript/winter-of-contributing #Change the Repo name
maxIssue: 3