Skip to repository content77 lines · 2.5 KB · yaml
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T01:41:31.669Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
catch_blank_issues.yml
1name: "Label new and reopened blank issues for triage"
2
3on:
4 issues:
5 types:
6 - opened
7 - reopened
8
9permissions:
10 contents: read
11
12jobs:
13 add-triage-label:
14 if: github.repository == 'zed-industries/zed'
15 runs-on: namespace-profile-2x4-ubuntu-2404
16 timeout-minutes: 5
17 steps:
18 - id: get-app-token
19 uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
20 with:
21 app-id: ${{ secrets.ZED_COMMUNITY_BOT_APP_ID }}
22 private-key: ${{ secrets.ZED_COMMUNITY_BOT_PRIVATE_KEY }}
23 owner: zed-industries
24 repositories: zed
25 permission-members: read
26 permission-issues: write
27
28 - id: check-staff
29 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
30 with:
31 github-token: ${{ steps.get-app-token.outputs.token }}
32 script: |
33 try {
34 const response = await github.rest.teams.getMembershipForUserInOrg({
35 org: 'zed-industries',
36 team_slug: 'staff',
37 username: context.payload.sender.login
38 });
39 return response.data.state === 'active';
40 } catch (error) {
41 if (error.status === 404) {
42 return false;
43 }
44 throw error;
45 }
46
47 - if: steps.check-staff.outputs.result == 'true'
48 env:
49 ISSUE_NUMBER: ${{ github.event.issue.number }}
50 run: |
51 echo "::notice::Skipping issue #$ISSUE_NUMBER - actor is staff member"
52
53 - if: steps.check-staff.outputs.result == 'false'
54 id: add-label
55 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
56 with:
57 github-token: ${{ steps.get-app-token.outputs.token }}
58 script: |
59 const issue = context.payload.issue;
60 const hasTriageLabel = issue.labels.some(
61 label => label.name === 'state:needs triage'
62 );
63
64 if (hasTriageLabel) {
65 console.log('Issue already has state:needs triage, skipping');
66 return;
67 }
68
69 await github.rest.issues.addLabels({
70 owner: context.repo.owner,
71 repo: context.repo.repo,
72 issue_number: issue.number,
73 labels: ['state:needs triage']
74 });
75
76 console.log(`Added state:needs triage to issue #${issue.number}`);
77