Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:34:37.947Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

comment_on_potential_duplicate_issues.yml

75 lines · 2.5 KB · yaml
1name: Comment on potential duplicate bug/crash reports
2
3on:
4  issues:
5    types: [opened]
6  workflow_dispatch:
7    inputs:
8      issue_number:
9        description: "Issue number to analyze"
10        required: true
11        type: number
12
13concurrency:
14  group: potential-duplicate-check-${{ github.event.issue.number || inputs.issue_number }}
15  cancel-in-progress: true
16
17permissions: {}
18
19jobs:
20  identify-duplicates:
21    # For manual testing, allow running on any branch; for automatic runs, only on main repo
22    if: github.event_name == 'workflow_dispatch' || github.repository == 'zed-industries/zed'
23    runs-on: ubuntu-latest
24    timeout-minutes: 5
25
26    permissions:
27      contents: read
28      issues: write
29
30    steps:
31      - name: Checkout repository
32        uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
33        with:
34          sparse-checkout: script/github-check-new-issue-for-duplicates.py
35          sparse-checkout-cone-mode: false
36
37      - name: Get github app token
38        id: get-app-token
39        uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
40        with:
41          app-id: ${{ secrets.ZED_COMMUNITY_BOT_APP_ID }}
42          private-key: ${{ secrets.ZED_COMMUNITY_BOT_PRIVATE_KEY }}
43          owner: zed-industries
44          repositories: zed
45          permission-issues: write
46
47      - name: Set up Python
48        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
49        with:
50          python-version: "3.12"
51
52      - name: Install dependencies
53        run: pip install requests
54
55      - name: Run duplicate detection
56        id: detect
57        env:
58          GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}
59          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY_ISSUE_DEDUP }}
60          ISSUE_NUMBER: ${{ github.event.issue.number || inputs.issue_number }}
61        run: |
62          python script/github-check-new-issue-for-duplicates.py "$ISSUE_NUMBER" > result.json
63          cat result.json
64
65      - name: Write job summary
66        if: always()
67        run: |
68          echo '```json' >> "$GITHUB_STEP_SUMMARY"
69          if [[ -f result.json ]] && jq empty result.json 2>/dev/null; then
70            jq . result.json >> "$GITHUB_STEP_SUMMARY"
71          else
72            echo '{"error": "No valid result.json generated. Check logs for details."}' >> "$GITHUB_STEP_SUMMARY"
73          fi
74          echo '```' >> "$GITHUB_STEP_SUMMARY"
75
Served at tenant.openagents/omega Member data and write actions are omitted.