GeezerVison is showing github.com — fix: update workflows for better automation (#14809) · widomin/opencode@24c6391
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/compliance-close.yml +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
65 | 65 | body: closeMessage, |
66 | 66 | }); |
67 | 67 |
|
| 68 | + try { |
| 69 | + await github.rest.issues.removeLabel({ |
| 70 | + owner: context.repo.owner, |
| 71 | + repo: context.repo.repo, |
| 72 | + issue_number: item.number, |
| 73 | + name: 'needs:compliance', |
| 74 | + }); |
| 75 | + } catch (e) {} |
| 76 | +
|
68 | 77 | if (isPR) { |
69 | 78 | await github.rest.pulls.update({ |
70 | 79 | owner: context.repo.owner, |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/pr-standards.yml +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -108,11 +108,11 @@ jobs: |
108 | 108 |
|
109 | 109 | await removeLabel('needs:title'); |
110 | 110 |
|
111 | | - // Step 2: Check for linked issue (skip for docs/refactor PRs) |
112 | | - const skipIssueCheck = /^(docs|refactor)\s*(\([a-zA-Z0-9-]+\))?\s*:/.test(title); |
| 111 | + // Step 2: Check for linked issue (skip for docs/refactor/feat PRs) |
| 112 | + const skipIssueCheck = /^(docs|refactor|feat)\s*(\([a-zA-Z0-9-]+\))?\s*:/.test(title); |
113 | 113 | if (skipIssueCheck) { |
114 | 114 | await removeLabel('needs:issue'); |
115 | | - console.log('Skipping issue check for docs/refactor PR'); |
| 115 | + console.log('Skipping issue check for docs/refactor/feat PR'); |
116 | 116 | return; |
117 | 117 | } |
118 | 118 | const query = ` |
@@ -189,7 +189,7 @@ jobs: |
189 | 189 |
|
190 | 190 | const body = pr.body || ''; |
191 | 191 | const title = pr.title; |
192 | | - const isDocsOrRefactor = /^(docs|refactor)\s*(\([a-zA-Z0-9-]+\))?\s*:/.test(title); |
| 192 | + const isDocsRefactorOrFeat = /^(docs|refactor|feat)\s*(\([a-zA-Z0-9-]+\))?\s*:/.test(title); |
193 | 193 |
|
194 | 194 | const issues = []; |
195 | 195 |
|
@@ -225,8 +225,8 @@ jobs: |
225 | 225 | } |
226 | 226 | } |
227 | 227 |
|
228 | | - // Check: issue reference (skip for docs/refactor) |
229 | | - if (!isDocsOrRefactor && hasIssueSection) { |
| 228 | + // Check: issue reference (skip for docs/refactor/feat) |
| 229 | + if (!isDocsRefactorOrFeat && hasIssueSection) { |
230 | 230 | const issueMatch = body.match(/### Issue for this PR\s*\n([\s\S]*?)(?=###|$)/); |
231 | 231 | const issueContent = issueMatch ? issueMatch[1].trim() : ''; |
232 | 232 | const hasIssueRef = /(closes|fixes|resolves)\s+#\d+/i.test(issueContent) || /#\d+/.test(issueContent); |
|