| # 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setting up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.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" |