Skip to content

Commit 7024b09

Browse files
eyalgalCopilot
andauthored
ci: honest greeting + split PR/issue response jobs (#3272)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent dab8fff commit 7024b09

1 file changed

Lines changed: 53 additions & 11 deletions

File tree

β€Ž.github/workflows/immediate-response.yamlβ€Ž

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,62 @@ on:
1111
permissions: read-all
1212

1313
jobs:
14-
respond:
15-
name: Respond to Issue or PR
16-
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' && github.repository == 'integrations/terraform-provider-github'
14+
# ──────────────────────────────────────────────
15+
# PR Response
16+
# ──────────────────────────────────────────────
17+
respond-to-pr:
18+
name: Respond to PR
19+
if: >
20+
github.event_name == 'pull_request_target' &&
21+
github.actor != 'dependabot[bot]' &&
22+
github.actor != 'renovate[bot]' &&
23+
github.actor != 'github-actions[bot]' &&
24+
github.actor != 'octokitbot' &&
25+
github.repository == 'integrations/terraform-provider-github'
1726
runs-on: ubuntu-latest
1827
permissions:
19-
issues: write
2028
pull-requests: write
21-
defaults:
22-
run:
23-
shell: bash
2429
steps:
25-
- name: Comment
30+
- name: Comment on PR
31+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
32+
with:
33+
issue-number: ${{ github.event.pull_request.number }}
34+
body: |
35+
πŸ‘‹ Hi, and thank you for this contribution!
36+
37+
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
38+
39+
You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.
40+
41+
---
42+
<sub>πŸ€– This is an automated message.</sub>
43+
44+
# ──────────────────────────────────────────────
45+
# Issue Response
46+
# ──────────────────────────────────────────────
47+
respond-to-issue:
48+
name: Respond to Issue
49+
if: >
50+
github.event_name == 'issues' &&
51+
github.actor != 'dependabot[bot]' &&
52+
github.actor != 'renovate[bot]' &&
53+
github.actor != 'github-actions[bot]' &&
54+
github.actor != 'octokitbot' &&
55+
github.repository == 'integrations/terraform-provider-github'
56+
runs-on: ubuntu-latest
57+
permissions:
58+
issues: write
59+
steps:
60+
- name: Comment on issue
2661
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
2762
with:
28-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
29-
body: >
30-
πŸ‘‹ Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`. You & others like you are the reason all of this works! So thank you & happy coding! πŸš€
63+
issue-number: ${{ github.event.issue.number }}
64+
body: |
65+
πŸ‘‹ Hi, and thank you for opening this issue!
66+
67+
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
68+
69+
You can help us prioritize by adding details, reproduction steps, or a πŸ‘ to issues that matter to you, and by joining the discussion on open issues and PRs.
70+
71+
---
72+
<sub>πŸ€– This is an automated message.</sub>

0 commit comments

Comments
Β (0)