Commit Graph
3 Commits
Author SHA1 Message Date
dependabot[bot] 48280be9a5 chore(deps): bump actions/github-script from 6 to 9 (#11255) 2026-04-23 08:24:16 +08:00
Ashish KolheandClaude Sonnet 4.5 a3e01f1820 fix: use local copy of reusable workflow (#9956)
### **User description**
## Testing PR for Claude Workflow Fix

This PR fixes the cross-repo workflow access issue by using a local copy
of the reusable workflow.

### Changes:
- ✅ Added local copy of `claude-auto-implement-reusable.yml` 
- ✅ Updated `claude-pr-fix.yml` to use local path
- ✅ Updated `claude-auto-implement.yml` to use local path

### Security:
- ✅ Keeps o2-enterprise workflow access at "none" (most secure)
- ✅ No organization-wide exposure
- ✅ Self-contained implementation

### Testing Plan:
1. Add `@claude_fix test the workflow` comment on this PR
2. Verify workflow runs successfully
3. Check that it can access both openobserve and o2-enterprise repos
4. If successful, mark as ready for review and merge

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)


___

### **PR Type**
Enhancement


___

### **Description**
- Replace cross-repo workflow calls with dispatch events

- Switch `claude-auto-implement.yml` to dispatch pattern

- Migrate `claude-pr-fix.yml` to repository_dispatch


___

### Diagram Walkthrough


```mermaid
flowchart LR
  A["claude-auto-implement.yml"] -- "claude-impl-requested" --> C["o2-enterprise workflow"]
  B["claude-pr-fix.yml"] -- "claude-fix-requested" --> C
```



<details> <summary><h3> File Walkthrough</h3></summary>

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Configuration
changes</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>claude-auto-implement.yml</strong><dd><code>Switch
auto-implement to repository_dispatch</code>&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

.github/workflows/claude-auto-implement.yml

<ul><li>Remove direct reusable workflow call<br> <li> Add dispatch step
using <code>peter-evans/repository-dispatch@v4</code><br> <li> Configure
client-payload fields for dispatch</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9956/files#diff-8c42c989e1898874026d7b5ee03636f42ba74bb37fb7ce62c6741cbeb1b50125">+20/-14</a>&nbsp;
</td>

</tr>

<tr>
  <td>
    <details>
<summary><strong>claude-pr-fix.yml</strong><dd><code>Migrate PR fix to
repository_dispatch</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

.github/workflows/claude-pr-fix.yml

<ul><li>Remove direct reusable workflow step<br> <li> Add dispatch step
for claude-fix-requested event<br> <li> Eliminate create-pr and status
steps</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9956/files#diff-38d41a683d1962f3da3e5c040ca36285ddb03170285c12bef918173d881310b0">+18/-151</a></td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-11 00:51:08 +05:30
Ashish KolheandClaude Opus 4.5 c23f3ed23b chore: claude auto mode permissions (#9955)
### **PR Type**
Enhancement


___

### **Description**
- New auto-implement workflow with team permission checks
  • Detects PR vs issue and invokes reusable workflow

- New pr-fix workflow handling @claude_fix commands
  • Context detection, branch creation, PR creation, success comments

- Added permission check to base `claude.yml` workflow


___



<details> <summary><h3> File Walkthrough</h3></summary>

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>claude-auto-implement.yml</strong><dd><code>Add
auto-implement workflow with permissions</code>&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

.github/workflows/claude-auto-implement.yml

<ul><li>Introduce <code>claude-auto-implement</code> workflow
triggers<br> <li> Add team membership check for @claude_impl
commands<br> <li> Detect PR vs issue mode and set branch/pr outputs<br>
<li> Invoke openobserve/o2-enterprise reusable workflow</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9955/files#diff-8c42c989e1898874026d7b5ee03636f42ba74bb37fb7ce62c6741cbeb1b50125">+126/-0</a>&nbsp;
</td>

</tr>

<tr>
  <td>
    <details>
<summary><strong>claude-pr-fix.yml</strong><dd><code>Add pr-fix workflow
with permission check</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

.github/workflows/claude-pr-fix.yml

<ul><li>Introduce <code>claude-pr-fix</code> workflow for @claude_fix
commands<br> <li> Add team membership check and context detection<br>
<li> Call reusable workflow and create PR for issue fixes<br> <li> Post
success comments and reactions</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9955/files#diff-38d41a683d1962f3da3e5c040ca36285ddb03170285c12bef918173d881310b0">+279/-0</a>&nbsp;
</td>

</tr>
</table></td></tr><tr><td><strong>Configuration
changes</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>claude.yml</strong><dd><code>Add permission check to
base workflow</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

.github/workflows/claude.yml

<ul><li>Add <code>check-permission</code> job before main
<code>claude</code> job<br> <li> Verify <code>argocd-dev</code> team
membership on trigger<br> <li> Comment when unauthorized users invoke
commands</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9955/files#diff-53fec9c265fdba82268df5cd90315b8da57cce43d8e20efbf5c0bdcd1de1342e">+53/-0</a>&nbsp;
&nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 20:31:41 +05:30