|
38 | 38 | opencode run -m opencode/claude-sonnet-4-6 "A new issue has been created: |
39 | 39 |
|
40 | 40 | Issue number: ${{ github.event.issue.number }} |
| 41 | + Issue author association: ${{ github.event.issue.author_association }} |
41 | 42 |
|
42 | 43 | Lookup this issue with gh issue view ${{ github.event.issue.number }}. |
43 | 44 |
|
|
49 | 50 |
|
50 | 51 | Check whether the issue follows our contributing guidelines and issue templates. |
51 | 52 |
|
| 53 | + If the issue author association is OWNER or MEMBER, skip this compliance check. Do not add the needs:compliance label for organization-owned issues. |
| 54 | +
|
52 | 55 | This project has three issue templates that every issue MUST use one of: |
53 | 56 |
|
54 | 57 | 1. Bug Report - requires a Description field with real content |
|
83 | 86 |
|
84 | 87 | Based on your findings, post a SINGLE comment on issue #${{ github.event.issue.number }}. Build the comment as follows: |
85 | 88 |
|
86 | | - If the issue is NOT compliant, start the comment with: |
| 89 | + If the issue is NOT compliant and the author association is not OWNER or MEMBER, start the comment with: |
87 | 90 | <!-- issue-compliance --> |
88 | 91 | Then explain what needs to be fixed and that they have 2 hours to edit the issue before it is automatically closed. Also add the label needs:compliance to the issue using: gh issue edit ${{ github.event.issue.number }} --add-label needs:compliance |
89 | 92 |
|
@@ -148,9 +151,12 @@ jobs: |
148 | 151 | } |
149 | 152 | run: | |
150 | 153 | opencode run -m opencode/claude-sonnet-4-6 "Issue #${{ github.event.issue.number }} was previously flagged as non-compliant and has been edited. |
| 154 | + Issue author association: ${{ github.event.issue.author_association }} |
151 | 155 |
|
152 | 156 | Lookup this issue with gh issue view ${{ github.event.issue.number }}. |
153 | 157 |
|
| 158 | + If the issue author association is OWNER or MEMBER, remove the needs:compliance label if present, delete the previous compliance comment if present, and do not post a new comment. |
| 159 | +
|
154 | 160 | Re-check whether the issue now follows our contributing guidelines and issue templates. |
155 | 161 |
|
156 | 162 | This project has three issue templates that every issue MUST use one of: |
|
0 commit comments