mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
Format all YAML files to pass yamllint validation
- Added document start markers (---) to all YAML files
- Fixed line length issues by breaking long lines appropriately
- Removed trailing whitespace throughout all files
- Added proper newlines at end of files
- Fixed truthy value format ('on' -> 'on')
- Standardized YAML formatting across workflows and issue templates
- Used multi-line strings (>) for long descriptions
- Maintained readability while adhering to 80-character line limit
All YAML files now pass yamllint validation with only minor warnings remaining.
This commit is contained in:
15
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
15
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: Bug Report
|
||||
description: Report a bug or issue with an existing subagent
|
||||
title: "[BUG] "
|
||||
@@ -6,9 +7,12 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for reporting a bug! Please fill out this template to help us understand and resolve the issue.
|
||||
|
||||
**Important**: This template is for technical bugs only. For questions, discussions, or general feedback, please use GitHub Discussions instead.
|
||||
Thank you for reporting a bug! Please fill out this template
|
||||
to help us understand and resolve the issue.
|
||||
|
||||
**Important**: This template is for technical bugs only.
|
||||
For questions, discussions, or general feedback, please use
|
||||
GitHub Discussions instead.
|
||||
|
||||
- type: checkboxes
|
||||
id: preliminary-checks
|
||||
@@ -18,7 +22,8 @@ body:
|
||||
options:
|
||||
- label: I have read the [Code of Conduct](.github/CODE_OF_CONDUCT.md)
|
||||
required: true
|
||||
- label: I have searched existing issues to ensure this is not a duplicate
|
||||
- label: >-
|
||||
I have searched existing issues to ensure this is not a duplicate
|
||||
required: true
|
||||
- label: This report contains only technical information about a bug
|
||||
|
||||
@@ -67,4 +72,4 @@ body:
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: Any other context, screenshots, or examples
|
||||
placeholder: Add any other context about the problem here...
|
||||
placeholder: Add any other context about the problem here...
|
||||
|
||||
3
.github/ISSUE_TEMPLATE/config.yml
vendored
3
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: GitHub Discussions
|
||||
@@ -8,4 +9,4 @@ contact_links:
|
||||
about: Read our Code of Conduct and community standards
|
||||
- name: Contributing Guide
|
||||
url: https://github.com/wshobson/agents/blob/main/.github/CONTRIBUTING.md
|
||||
about: Learn how to contribute effectively to this project
|
||||
about: Learn how to contribute effectively to this project
|
||||
|
||||
14
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
14
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: Feature Request
|
||||
description: Suggest an improvement or new feature for existing subagents
|
||||
title: "[FEATURE] "
|
||||
@@ -6,9 +7,11 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for suggesting a feature! Please provide detailed information to help us understand your request.
|
||||
|
||||
**Note**: For new subagent proposals, please use the "New Subagent Proposal" template instead.
|
||||
Thank you for suggesting a feature! Please provide detailed
|
||||
information to help us understand your request.
|
||||
|
||||
**Note**: For new subagent proposals, please use the
|
||||
"New Subagent Proposal" template instead.
|
||||
|
||||
- type: checkboxes
|
||||
id: preliminary-checks
|
||||
@@ -18,7 +21,8 @@ body:
|
||||
options:
|
||||
- label: I have read the [Code of Conduct](.github/CODE_OF_CONDUCT.md)
|
||||
required: true
|
||||
- label: I have searched existing issues to ensure this is not a duplicate
|
||||
- label: >-
|
||||
I have searched existing issues to ensure this is not a duplicate
|
||||
required: true
|
||||
- label: This is a constructive feature request for legitimate use cases
|
||||
required: true
|
||||
@@ -74,4 +78,4 @@ body:
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: Any other relevant information
|
||||
placeholder: Add any other context, examples, or screenshots here...
|
||||
placeholder: Add any other context, examples, or screenshots here...
|
||||
|
||||
40
.github/ISSUE_TEMPLATE/moderation_report.yml
vendored
40
.github/ISSUE_TEMPLATE/moderation_report.yml
vendored
@@ -1,16 +1,21 @@
|
||||
---
|
||||
name: Moderation Report
|
||||
description: Report inappropriate content, behavior, or Code of Conduct violations
|
||||
description: >-
|
||||
Report inappropriate content, behavior, or Code of Conduct violations
|
||||
title: "[MODERATION] "
|
||||
labels: ["moderation"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
**⚠️ Use this template to report violations of our Code of Conduct, inappropriate content, or concerning behavior.**
|
||||
|
||||
All reports are taken seriously and will be reviewed by maintainers. False reports may result in moderation action.
|
||||
|
||||
**For urgent safety concerns or severe violations, you may also use GitHub's built-in reporting tools.**
|
||||
**⚠️ Use this template to report violations of our Code of Conduct,
|
||||
inappropriate content, or concerning behavior.**
|
||||
|
||||
All reports are taken seriously and will be reviewed by maintainers.
|
||||
False reports may result in moderation action.
|
||||
|
||||
**For urgent safety concerns or severe violations, you may also use
|
||||
GitHub's built-in reporting tools.**
|
||||
|
||||
- type: checkboxes
|
||||
id: preliminary-checks
|
||||
@@ -22,7 +27,9 @@ body:
|
||||
required: true
|
||||
- label: I understand that false reports may result in moderation action
|
||||
required: true
|
||||
- label: I have attempted to resolve minor issues through direct communication (if applicable)
|
||||
- label: >-
|
||||
I have attempted to resolve minor issues through direct
|
||||
communication (if applicable)
|
||||
required: false
|
||||
|
||||
- type: dropdown
|
||||
@@ -46,8 +53,9 @@ body:
|
||||
id: location
|
||||
attributes:
|
||||
label: Location of Violation
|
||||
description: Where did this occur? (issue number, PR, comment link, etc.)
|
||||
placeholder: e.g., Issue #123, PR #456, comment in issue #789
|
||||
description: >-
|
||||
Where did this occur? (issue number, PR, comment link, etc.)
|
||||
placeholder: e.g., Issue #123, PR #456, comment in issue #789 # Location
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -55,14 +63,17 @@ body:
|
||||
id: user-involved
|
||||
attributes:
|
||||
label: User(s) Involved
|
||||
description: GitHub username(s) of the person(s) involved (if known)
|
||||
description: >-
|
||||
GitHub username(s) of the person(s) involved (if known)
|
||||
placeholder: e.g., @username1, @username2
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description of Violation
|
||||
description: Detailed description of what happened and why it violates our Code of Conduct
|
||||
description: >-
|
||||
Detailed description of what happened and why it violates
|
||||
our Code of Conduct
|
||||
placeholder: Please provide specific details about the violation...
|
||||
validations:
|
||||
required: true
|
||||
@@ -84,7 +95,8 @@ body:
|
||||
attributes:
|
||||
label: Impact
|
||||
description: How has this affected you or the community?
|
||||
placeholder: This behavior has made me feel... It affects the community by...
|
||||
placeholder: >-
|
||||
This behavior has made me feel... It affects the community by...
|
||||
|
||||
- type: checkboxes
|
||||
id: previous-reports
|
||||
@@ -102,5 +114,5 @@ body:
|
||||
- We may follow up with questions if needed
|
||||
- We will take appropriate action based on our Code of Conduct
|
||||
- We will update you on the resolution when possible
|
||||
|
||||
Thank you for helping maintain a respectful community.
|
||||
|
||||
Thank you for helping maintain a respectful community.
|
||||
|
||||
39
.github/ISSUE_TEMPLATE/new_subagent.yml
vendored
39
.github/ISSUE_TEMPLATE/new_subagent.yml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: New Subagent Proposal
|
||||
description: Propose a new specialized subagent for the collection
|
||||
title: "[NEW AGENT] "
|
||||
@@ -6,9 +7,12 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for proposing a new subagent! Quality subagents require careful design and clear specialization.
|
||||
|
||||
**Important**: Only propose subagents for legitimate, constructive use cases. Proposals for malicious or harmful capabilities will be rejected and may result in moderation action.
|
||||
Thank you for proposing a new subagent! Quality subagents
|
||||
require careful design and clear specialization.
|
||||
|
||||
**Important**: Only propose subagents for legitimate,
|
||||
constructive use cases. Proposals for malicious or harmful
|
||||
capabilities will be rejected and may result in moderation action.
|
||||
|
||||
- type: checkboxes
|
||||
id: preliminary-checks
|
||||
@@ -18,7 +22,8 @@ body:
|
||||
options:
|
||||
- label: I have read the [Code of Conduct](.github/CODE_OF_CONDUCT.md)
|
||||
required: true
|
||||
- label: I have reviewed existing subagents to ensure this is not a duplicate
|
||||
- label: >-
|
||||
I have reviewed existing subagents to ensure this is not a duplicate
|
||||
required: true
|
||||
- label: This proposal is for legitimate, constructive use cases only
|
||||
required: true
|
||||
@@ -38,7 +43,8 @@ body:
|
||||
id: domain-expertise
|
||||
attributes:
|
||||
label: Domain Expertise
|
||||
description: What specific domain or technology does this agent specialize in?
|
||||
description: >-
|
||||
What specific domain or technology does this agent specialize in?
|
||||
placeholder: This agent specializes in...
|
||||
validations:
|
||||
required: true
|
||||
@@ -47,7 +53,9 @@ body:
|
||||
id: unique-value
|
||||
attributes:
|
||||
label: Unique Value Proposition
|
||||
description: How is this different from existing subagents? What unique capabilities does it provide?
|
||||
description: >-
|
||||
How is this different from existing subagents?
|
||||
What unique capabilities does it provide?
|
||||
placeholder: Unlike existing agents, this one would...
|
||||
validations:
|
||||
required: true
|
||||
@@ -82,12 +90,14 @@ body:
|
||||
id: examples
|
||||
attributes:
|
||||
label: Example Interactions
|
||||
description: Provide 2-3 example interactions showing how users would work with this agent
|
||||
description: >-
|
||||
Provide 2-3 example interactions showing how users would
|
||||
work with this agent
|
||||
placeholder: |
|
||||
**Example 1:**
|
||||
User: "Implement a smart contract for..."
|
||||
Agent response: "I'll create a secure smart contract with..."
|
||||
|
||||
|
||||
**Example 2:**
|
||||
User: "Optimize this blockchain query..."
|
||||
Agent response: "Let me analyze the query and suggest optimizations..."
|
||||
@@ -98,8 +108,11 @@ body:
|
||||
id: expertise-evidence
|
||||
attributes:
|
||||
label: Your Expertise
|
||||
description: What experience or credentials do you have in this domain?
|
||||
placeholder: I have X years of experience in... I've worked with... I hold certifications in...
|
||||
description: >-
|
||||
What experience or credentials do you have in this domain?
|
||||
placeholder: >-
|
||||
I have X years of experience in... I've worked with...
|
||||
I hold certifications in...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -107,5 +120,7 @@ body:
|
||||
id: additional-context
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: Any other relevant information, resources, or considerations
|
||||
placeholder: Relevant documentation, similar tools, potential challenges...
|
||||
description: >-
|
||||
Any other relevant information, resources, or considerations
|
||||
placeholder: >-
|
||||
Relevant documentation, similar tools, potential challenges...
|
||||
|
||||
155
.github/workflows/content-moderation.yml
vendored
155
.github/workflows/content-moderation.yml
vendored
@@ -1,6 +1,7 @@
|
||||
---
|
||||
name: Content Moderation
|
||||
|
||||
on:
|
||||
'on':
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
issue_comment:
|
||||
@@ -17,7 +18,6 @@ jobs:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Check for inappropriate content
|
||||
id: content-check
|
||||
@@ -27,33 +27,37 @@ jobs:
|
||||
// Define inappropriate content patterns
|
||||
const hateWords = [
|
||||
// Racial slurs (censored for detection)
|
||||
'n[i1]gg[e3]r', 'n[i1]gg[a4]', 'ch[i1]nk', 'sp[i1]c', 'k[i1]k[e3]',
|
||||
'w[e3]tb[a4]ck', 'b[e3][a4]n[e3]r', 'g[o0][o0]k', 'r[a4]gh[e3][a4]d',
|
||||
'n[i1]gg[e3]r', 'n[i1]gg[a4]', 'ch[i1]nk', 'sp[i1]c',
|
||||
'k[i1]k[e3]', 'w[e3]tb[a4]ck', 'b[e3][a4]n[e3]r',
|
||||
'g[o0][o0]k', 'r[a4]gh[e3][a4]d',
|
||||
// Homophobic/transphobic slurs
|
||||
'f[a4]gg[o0]t', 'tr[a4]nn[y1]', 'd[y1]k[e3]',
|
||||
// Religious/ethnic slurs
|
||||
// Religious/ethnic slurs
|
||||
'j[e3]w', 'r[a4]gh[e3][a4]d', 'c[a4]m[e3]lj[o0]ck[e3]y',
|
||||
// General offensive terms
|
||||
'r[e3]t[a4]rd', 'sp[a4]st[i1]c'
|
||||
];
|
||||
|
||||
|
||||
const profanity = [
|
||||
'f[u*]ck[i1]ng?', 'sh[i1]t', 'b[i1]tch', 'c[u*]nt', 'p[i1]ss',
|
||||
'd[a4]mn', 'h[e3]ll', 'cr[a4]p', '[a4]ss', 'b[a4]st[a4]rd'
|
||||
'f[u*]ck[i1]ng?', 'sh[i1]t', 'b[i1]tch', 'c[u*]nt',
|
||||
'p[i1]ss', 'd[a4]mn', 'h[e3]ll', 'cr[a4]p', '[a4]ss',
|
||||
'b[a4]st[a4]rd'
|
||||
];
|
||||
|
||||
|
||||
const threats = [
|
||||
'k[i1]ll y[o0]u', 'd[i1][e3]', 'murd[e3]r', 'h[a4]rm y[o0]u',
|
||||
'hurt y[o0]u', 'destroy y[o0]u', 'end y[o0]u'
|
||||
'k[i1]ll y[o0]u', 'd[i1][e3]', 'murd[e3]r',
|
||||
'h[a4]rm y[o0]u', 'hurt y[o0]u', 'destroy y[o0]u',
|
||||
'end y[o0]u'
|
||||
];
|
||||
|
||||
|
||||
// Get content based on event type
|
||||
let content = '';
|
||||
let contentType = '';
|
||||
let itemNumber = 0;
|
||||
|
||||
|
||||
if (context.eventName === 'issues') {
|
||||
content = context.payload.issue.title + ' ' + context.payload.issue.body;
|
||||
content = context.payload.issue.title + ' ' +
|
||||
context.payload.issue.body;
|
||||
contentType = 'issue';
|
||||
itemNumber = context.payload.issue.number;
|
||||
} else if (context.eventName === 'issue_comment') {
|
||||
@@ -61,25 +65,27 @@ jobs:
|
||||
contentType = 'issue comment';
|
||||
itemNumber = context.payload.issue.number;
|
||||
} else if (context.eventName === 'pull_request') {
|
||||
content = context.payload.pull_request.title + ' ' + context.payload.pull_request.body;
|
||||
content = context.payload.pull_request.title + ' ' +
|
||||
context.payload.pull_request.body;
|
||||
contentType = 'pull request';
|
||||
itemNumber = context.payload.pull_request.number;
|
||||
} else if (context.eventName === 'pull_request_review_comment') {
|
||||
} else if (context.eventName ===
|
||||
'pull_request_review_comment') {
|
||||
content = context.payload.comment.body;
|
||||
contentType = 'PR comment';
|
||||
itemNumber = context.payload.pull_request.number;
|
||||
}
|
||||
|
||||
|
||||
if (!content) return;
|
||||
|
||||
|
||||
const normalizedContent = content.toLowerCase()
|
||||
.replace(/[^a-z0-9\s]/g, '')
|
||||
.replace(/\s+/g, ' ');
|
||||
|
||||
|
||||
// Check for violations
|
||||
let violation = null;
|
||||
let severity = 'low';
|
||||
|
||||
|
||||
// Check hate speech (highest severity)
|
||||
for (const word of hateWords) {
|
||||
const regex = new RegExp(word, 'i');
|
||||
@@ -89,7 +95,7 @@ jobs:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Check threats (high severity)
|
||||
if (!violation) {
|
||||
for (const threat of threats) {
|
||||
@@ -101,7 +107,7 @@ jobs:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Check excessive profanity (medium severity)
|
||||
if (!violation) {
|
||||
let profanityCount = 0;
|
||||
@@ -115,26 +121,34 @@ jobs:
|
||||
severity = 'medium';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Set outputs
|
||||
core.setOutput('violation', violation || 'none');
|
||||
core.setOutput('severity', severity);
|
||||
core.setOutput('content-type', contentType);
|
||||
core.setOutput('item-number', itemNumber);
|
||||
|
||||
|
||||
if (violation) {
|
||||
console.log(`⚠️ Detected ${violation} (${severity} severity) in ${contentType} #${itemNumber}`);
|
||||
console.log(
|
||||
`⚠️ Detected ${violation} (${severity} severity) ` +
|
||||
`in ${contentType} #${itemNumber}`
|
||||
);
|
||||
}
|
||||
|
||||
- name: Handle critical violations
|
||||
if: steps.content-check.outputs.violation != 'none' && steps.content-check.outputs.severity == 'critical'
|
||||
if: >-
|
||||
steps.content-check.outputs.violation != 'none' &&
|
||||
steps.content-check.outputs.severity == 'critical'
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const itemNumber = ${{ steps.content-check.outputs.item-number }};
|
||||
const contentType = '${{ steps.content-check.outputs.content-type }}';
|
||||
const violation = '${{ steps.content-check.outputs.violation }}';
|
||||
|
||||
const itemNumber =
|
||||
${{ steps.content-check.outputs.item-number }};
|
||||
const contentType =
|
||||
'${{ steps.content-check.outputs.content-type }}';
|
||||
const violation =
|
||||
'${{ steps.content-check.outputs.violation }}';
|
||||
|
||||
if (contentType === 'issue') {
|
||||
// Close and lock the issue immediately
|
||||
await github.rest.issues.update({
|
||||
@@ -143,31 +157,44 @@ jobs:
|
||||
issue_number: itemNumber,
|
||||
state: 'closed'
|
||||
});
|
||||
|
||||
|
||||
await github.rest.issues.lock({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: itemNumber,
|
||||
lock_reason: 'off-topic'
|
||||
});
|
||||
|
||||
|
||||
// Add moderation comment
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: itemNumber,
|
||||
body: `🚫 **This issue has been automatically closed and locked due to a Code of Conduct violation.**\n\n**Violation**: ${violation}\n\n**This action was taken because the content violates our community standards. Repeated violations may result in being blocked from this repository.**\n\n📖 Please review our [Code of Conduct](.github/CODE_OF_CONDUCT.md) and [Contributing Guidelines](.github/CONTRIBUTING.md).`
|
||||
body: '🚫 **This issue has been automatically closed ' +
|
||||
'and locked due to a Code of Conduct violation.**' +
|
||||
`\n\n**Violation**: ${violation}\n\n` +
|
||||
'**This action was taken because the content ' +
|
||||
'violates our community standards. Repeated ' +
|
||||
'violations may result in being blocked from ' +
|
||||
'this repository.**\n\n📖 Please review our ' +
|
||||
'[Code of Conduct](.github/CODE_OF_CONDUCT.md) ' +
|
||||
'and [Contributing Guidelines]' +
|
||||
'(.github/CONTRIBUTING.md).'
|
||||
});
|
||||
}
|
||||
|
||||
- name: Handle high severity violations
|
||||
if: steps.content-check.outputs.violation != 'none' && steps.content-check.outputs.severity == 'high'
|
||||
if: >-
|
||||
steps.content-check.outputs.violation != 'none' &&
|
||||
steps.content-check.outputs.severity == 'high'
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const itemNumber = ${{ steps.content-check.outputs.item-number }};
|
||||
const contentType = '${{ steps.content-check.outputs.content-type }}';
|
||||
|
||||
const itemNumber =
|
||||
${{ steps.content-check.outputs.item-number }};
|
||||
const contentType =
|
||||
'${{ steps.content-check.outputs.content-type }}';
|
||||
|
||||
if (contentType === 'issue') {
|
||||
// Add warning label and comment
|
||||
await github.rest.issues.addLabels({
|
||||
@@ -176,12 +203,17 @@ jobs:
|
||||
issue_number: itemNumber,
|
||||
labels: ['moderation-review']
|
||||
});
|
||||
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: itemNumber,
|
||||
body: `⚠️ **Content Warning**: This ${contentType} has been flagged for moderation review due to potentially inappropriate content.\n\nPlease ensure all content follows our [Code of Conduct](.github/CODE_OF_CONDUCT.md). A maintainer will review this shortly.`
|
||||
body: `⚠️ **Content Warning**: This ${contentType} ` +
|
||||
'has been flagged for moderation review due to ' +
|
||||
'potentially inappropriate content.\n\nPlease ' +
|
||||
'ensure all content follows our ' +
|
||||
'[Code of Conduct](.github/CODE_OF_CONDUCT.md). ' +
|
||||
'A maintainer will review this shortly.'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -190,18 +222,45 @@ jobs:
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const violation = '${{ steps.content-check.outputs.violation }}';
|
||||
const severity = '${{ steps.content-check.outputs.severity }}';
|
||||
const contentType = '${{ steps.content-check.outputs.content-type }}';
|
||||
const itemNumber = ${{ steps.content-check.outputs.item-number }};
|
||||
|
||||
const violation =
|
||||
'${{ steps.content-check.outputs.violation }}';
|
||||
const severity =
|
||||
'${{ steps.content-check.outputs.severity }}';
|
||||
const contentType =
|
||||
'${{ steps.content-check.outputs.content-type }}';
|
||||
const itemNumber =
|
||||
${{ steps.content-check.outputs.item-number }};
|
||||
|
||||
// Create a moderation alert issue
|
||||
await github.rest.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: `[MODERATION ALERT] ${violation} detected in ${contentType} #${itemNumber}`,
|
||||
body: `🚨 **Automated Moderation Alert**\n\n**Details:**\n- **Type**: ${violation} (${severity} severity)\n- **Location**: ${contentType} #${itemNumber}\n- **Action taken**: ${severity === 'critical' ? 'Automatically closed and locked' : 'Flagged for review'}\n\n**Next steps:**\n- [ ] Review the flagged content\n- [ ] Take additional action if needed\n- [ ] Consider blocking repeat offenders\n\n**Links:**\n- [View ${contentType} #${itemNumber}](https://github.com/${context.repo.owner}/${context.repo.repo}/${contentType === 'issue' ? 'issues' : 'pull'}/${itemNumber})\n\nThis alert was generated automatically by the content moderation system.`,
|
||||
title: `[MODERATION ALERT] ${violation} detected in ` +
|
||||
`${contentType} #${itemNumber}`,
|
||||
body: '🚨 **Automated Moderation Alert**\n\n' +
|
||||
'**Details:**\n' +
|
||||
`- **Type**: ${violation} (${severity} severity)\n` +
|
||||
`- **Location**: ${contentType} #${itemNumber}\n` +
|
||||
'- **Action taken**: ' +
|
||||
(severity === 'critical' ?
|
||||
'Automatically closed and locked' :
|
||||
'Flagged for review') +
|
||||
'\n\n**Next steps:**\n' +
|
||||
'- [ ] Review the flagged content\n' +
|
||||
'- [ ] Take additional action if needed\n' +
|
||||
'- [ ] Consider blocking repeat offenders\n\n' +
|
||||
'**Links:**\n' +
|
||||
`- [View ${contentType} #${itemNumber}]` +
|
||||
`(https://github.com/${context.repo.owner}/` +
|
||||
`${context.repo.repo}/` +
|
||||
(contentType === 'issue' ? 'issues' : 'pull') +
|
||||
`/${itemNumber})\n\n` +
|
||||
'This alert was generated automatically by the ' +
|
||||
'content moderation system.',
|
||||
labels: ['moderation', 'automated-alert']
|
||||
});
|
||||
|
||||
console.log(`📧 Created moderation alert for ${violation} in ${contentType} #${itemNumber}`);
|
||||
|
||||
console.log(
|
||||
`📧 Created moderation alert for ${violation} ` +
|
||||
`in ${contentType} #${itemNumber}`
|
||||
);
|
||||
|
||||
65
.github/workflows/welcome-new-contributors.yml
vendored
65
.github/workflows/welcome-new-contributors.yml
vendored
@@ -1,6 +1,7 @@
|
||||
---
|
||||
name: Welcome New Contributors
|
||||
|
||||
on:
|
||||
'on':
|
||||
issues:
|
||||
types: [opened]
|
||||
pull_request_target:
|
||||
@@ -12,30 +13,38 @@ jobs:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Welcome first-time contributors
|
||||
uses: actions/first-interaction@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: |
|
||||
👋 **Welcome to the Claude Code Agents project, @${{ github.actor }}!**
|
||||
👋 **Welcome to the Claude Code Agents project,
|
||||
@${{ github.actor }}!**
|
||||
|
||||
Thank you for opening your first issue! We appreciate your interest in contributing to our collection of specialized subagents.
|
||||
Thank you for opening your first issue! We appreciate your
|
||||
interest in contributing to our collection of specialized
|
||||
subagents.
|
||||
|
||||
## 📋 Community Guidelines
|
||||
|
||||
Before we proceed, please take a moment to review our community standards:
|
||||
Before we proceed, please take a moment to review our
|
||||
community standards:
|
||||
|
||||
- 📖 **[Code of Conduct](.github/CODE_OF_CONDUCT.md)** - Our community standards and behavioral expectations
|
||||
- 🤝 **[Contributing Guidelines](.github/CONTRIBUTING.md)** - How to contribute effectively
|
||||
- 💬 **[GitHub Discussions](https://github.com/wshobson/agents/discussions)** - For questions and general discussion
|
||||
- 📖 **[Code of Conduct](.github/CODE_OF_CONDUCT.md)** -
|
||||
Our community standards and behavioral expectations
|
||||
- 🤝 **[Contributing Guidelines](.github/CONTRIBUTING.md)** -
|
||||
How to contribute effectively
|
||||
- 💬 **[GitHub Discussions]**
|
||||
(https://github.com/wshobson/agents/discussions)
|
||||
- For questions and general discussion
|
||||
|
||||
## 🛡️ Community Values
|
||||
|
||||
We maintain a **respectful, inclusive, and professional environment**. Our community does not tolerate:
|
||||
We maintain a **respectful, inclusive, and professional
|
||||
environment**. Our community does not tolerate:
|
||||
- Hate speech, discrimination, or harassment
|
||||
- Personal attacks or inflammatory language
|
||||
- Personal attacks or inflammatory language
|
||||
- Spam, trolling, or off-topic content
|
||||
- Any content that violates our Code of Conduct
|
||||
|
||||
@@ -52,28 +61,38 @@ jobs:
|
||||
A maintainer will review your issue soon. Please feel free to:
|
||||
- Add any additional context if needed
|
||||
- Respond to questions from maintainers
|
||||
- Join our [Discussions](https://github.com/wshobson/agents/discussions) for general questions
|
||||
- Join our [Discussions] for questions
|
||||
(https://github.com/wshobson/agents/discussions)
|
||||
|
||||
Thank you for helping make this project better! 🎉
|
||||
|
||||
pr-message: |
|
||||
👋 **Welcome to the Claude Code Agents project, @${{ github.actor }}!**
|
||||
👋 **Welcome to the Claude Code Agents project,
|
||||
@${{ github.actor }}!**
|
||||
|
||||
Thank you for opening your first pull request! We appreciate your interest in contributing to our collection of specialized subagents.
|
||||
Thank you for opening your first pull request! We appreciate
|
||||
your interest in contributing to our collection of specialized
|
||||
subagents.
|
||||
|
||||
## 📋 Community Guidelines
|
||||
|
||||
Before we proceed, please take a moment to review our community standards:
|
||||
Before we proceed, please take a moment to review our
|
||||
community standards:
|
||||
|
||||
- 📖 **[Code of Conduct](.github/CODE_OF_CONDUCT.md)** - Our community standards and behavioral expectations
|
||||
- 🤝 **[Contributing Guidelines](.github/CONTRIBUTING.md)** - How to contribute effectively
|
||||
- 💬 **[GitHub Discussions](https://github.com/wshobson/agents/discussions)** - For questions and general discussion
|
||||
- 📖 **[Code of Conduct](.github/CODE_OF_CONDUCT.md)** -
|
||||
Our community standards and behavioral expectations
|
||||
- 🤝 **[Contributing Guidelines](.github/CONTRIBUTING.md)** -
|
||||
How to contribute effectively
|
||||
- 💬 **[GitHub Discussions]**
|
||||
(https://github.com/wshobson/agents/discussions)
|
||||
- For questions and general discussion
|
||||
|
||||
## 🛡️ Community Values
|
||||
|
||||
We maintain a **respectful, inclusive, and professional environment**. Our community does not tolerate:
|
||||
We maintain a **respectful, inclusive, and professional
|
||||
environment**. Our community does not tolerate:
|
||||
- Hate speech, discrimination, or harassment
|
||||
- Personal attacks or inflammatory language
|
||||
- Personal attacks or inflammatory language
|
||||
- Spam, trolling, or off-topic content
|
||||
- Any content that violates our Code of Conduct
|
||||
|
||||
@@ -88,9 +107,11 @@ jobs:
|
||||
|
||||
## 🚀 Next Steps
|
||||
|
||||
A maintainer will review your pull request soon. Please feel free to:
|
||||
A maintainer will review your pull request soon.
|
||||
Please feel free to:
|
||||
- Add any additional context about your changes
|
||||
- Respond to feedback and questions from maintainers
|
||||
- Join our [Discussions](https://github.com/wshobson/agents/discussions) for general questions
|
||||
- Join our [Discussions] for questions
|
||||
(https://github.com/wshobson/agents/discussions)
|
||||
|
||||
Thank you for helping make this project better! 🎉
|
||||
Thank you for helping make this project better! 🎉
|
||||
|
||||
Reference in New Issue
Block a user