-
Notifications
You must be signed in to change notification settings - Fork 1
chore: add dotagents #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add dotagents #871
Changes from all commits
8b6a26c
d002075
8933678
cd6da0e
62792e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Bug Report | ||
| description: File a report to help us improve Phenotype | ||
| labels: ["bug"] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Thanks for taking the time to fill out this bug report! | ||
| - type: textarea | ||
| id: bug-description | ||
| attributes: | ||
| label: Bug Description | ||
| description: A clear and concise description of what the bug is. | ||
| placeholder: What happened? | ||
| validations: | ||
| required: true | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||
| name: Feature Request | ||||||
| description: Suggest an idea for Phenotype | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix product name in template copy. Line 2 still references Suggested patch-description: Suggest an idea for Phenotype
+description: Suggest an idea for cliproxyapi-plusplus📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| labels: ["enhancement"] | ||||||
| body: | ||||||
| - type: textarea | ||||||
| id: feature-description | ||||||
| attributes: | ||||||
| label: Feature Description | ||||||
| description: A clear and concise description of what you want to happen. | ||||||
| validations: | ||||||
| required: true | ||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||||||||||||||||||||||||||||||||||||||
| name: quality-gate | ||||||||||||||||||||||||||||||||||||||||||
| on: [pull_request] | ||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||
| verify: | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||
| - name: Run quality checks | ||||||||||||||||||||||||||||||||||||||||||
| run: ./scripts/quality-gate.sh verify | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Set explicit GITHUB_TOKEN permissions for least privilege. This workflow has no Suggested patch name: quality-gate
on: [pull_request]
+permissions:
+ contents: read
jobs:
verify:📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Release Drafter | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| update_release_draft: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: release-drafter/release-drafter@v6 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
Comment on lines
+7
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: For release-drafter/release-drafter@v6 using the default GITHUB_TOKEN, the workflow requires the following permissions: permissions: contents: write pull-requests: read contents: write is required to create and update GitHub releases (draft or published). pull-requests: read is required to access pull request data for generating release notes from merged PRs. If using the autolabeler feature, upgrade to pull-requests: write. These permissions can be set at the workflow level (applied to the job/step) or job/step level for finer control. Workflow-level read permissions (e.g., contents: read) are often used at the top for initial checkout/access, with write escalated in the release-drafter job. Example workflow: name: Release Drafter on: push: branches: [main] permissions: contents: write pull-requests: read jobs: update_release_draft: runs-on: ubuntu-latest steps: - uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Citations:
Declare explicit token permissions for Release Drafter. Without a Suggested patch name: Release Drafter
on:
push:
branches:
- main
+permissions:
+ contents: write
+ pull-requests: read
jobs:
update_release_draft:🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||||||||||||
| name: self-merge-gate | ||||||||||||||||
| on: [pull_request_review] | ||||||||||||||||
| jobs: | ||||||||||||||||
| check: | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
| if: github.event.review.state == 'approved' | ||||||||||||||||
| steps: | ||||||||||||||||
| - name: Check self-merge eligibility | ||||||||||||||||
| run: ./scripts/self-merge-gate.sh | ||||||||||||||||
|
Comment on lines
+7
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add repository checkout before running local script. Line 9 executes a repo script, but the job never checks out code. This will fail at runtime. Suggested patch jobs:
check:
runs-on: ubuntu-latest
if: github.event.review.state == 'approved'
steps:
+ - uses: actions/checkout@v4
- name: Check self-merge eligibility
run: ./scripts/self-merge-gate.sh📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Tag Automation | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| jobs: | ||
| tag: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Create release tag | ||
| run: echo "Creating release for ${{ github.ref_name }}" | ||
|
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Implement real tag automation (current step is a no-op). Line 12 only prints a message; it does not create any release or perform tag-related automation. Suggested patch name: Tag Automation
on:
push:
tags:
- 'v*'
+permissions:
+ contents: write
jobs:
tag:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- name: Create release tag
- run: echo "Creating release for ${{ github.ref_name }}"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: gh release create "${{ github.ref_name }}" --generate-notes🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Auto-generated by dotagents. Do not edit. | ||
| version = 1 | ||
|
|
||
| [skills.dotagents] | ||
| source = "getsentry/dotagents" | ||
| resolved_url = "https://github.com/getsentry/dotagents" | ||
| resolved_path = "skills/dotagents" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| version = 1 | ||
|
|
||
| [[skills]] | ||
| name = "dotagents" | ||
| source = "getsentry/dotagents" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update repository name in bug template description.
Line 2 uses
Phenotype; this should match the current project name to avoid confusion.Suggested patch
📝 Committable suggestion
🤖 Prompt for AI Agents