blob: 00fe838c7aee5913b88ae115b5231cd145769f9c [file] [edit]
# Copyright 2026 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Issue Greeter
on:
issues:
types:
- opened
permissions:
contents: read
jobs:
issue-greeter:
runs-on: ubuntu-24.04
permissions:
contents: read
issues: write
# Only comment on issues opened by someone new to IREE or to GitHub as a whole.
if: >-
github.repository == 'iree-org/iree' &&
github.event.issue.author_association != 'COLLABORATOR' &&
github.event.issue.author_association != 'CONTRIBUTOR' &&
github.event.issue.author_association != 'MANNEQUIN' &&
github.event.issue.author_association != 'MEMBER' &&
github.event.issue.author_association != 'OWNER'
steps:
- name: Checking out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Setting up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- name: Installing dependencies
run: python -m pip install --disable-pip-version-check PyGithub==2.4.0
- name: Greet first-time contributor
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
run: |
python ./build_tools/github_actions/github_automation.py \
--token "$GH_TOKEN" \
issue-greeter \
--issue-number "$ISSUE_NUMBER" \
--author "$ISSUE_AUTHOR"