Skip to content

Commit

Permalink
chore: expand workflow to prs (#523)
Browse files Browse the repository at this point in the history
* chore: expand workflow to prs

* chore: mod to handle issues and pr separate

* chore: slight mod codeowners
  • Loading branch information
GangGreenTemperTatum authored Dec 27, 2024
1 parent c8458a5 commit c80e538
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Ads - Triage OWASP Top 10 LLM Apps Issues
name: Ads - Triage OWASP Top 10 LLM Apps Issues and PRs

on:
issues:
types: [opened, labeled, reopened]
types:
- opened
- labeled
- reopened
pull_request:
types:
- opened
- labeled
- reopened

env:
BOARD_NAME: "OWASP Top 10 for LLM Applications"
Expand Down Expand Up @@ -39,12 +47,22 @@ jobs:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting! Please ensure labels are applied appropriately to the issue so that the workflow automation can triage this to the correct member of the core team'
})
const eventName = context.eventName;
if (eventName === 'issues') {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting! Please ensure labels are applied appropriately so that the workflow automation can triage this to the assigned member of the OWASP core team'
});
} else if (eventName === 'pull_request' && context.payload.action === 'opened') {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for your pull request! Please ensure appropriate labels are applied for review routing.'
});
}
triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# Shared Community Files and Areas:
# TBC

## Either Ads or Steve can approve changes to CODEOWNERS:
## Either Ads or Steve can approve changes to CODEOWNERS or github:
CODEOWNERS @GangGreenTemperTatum @virtualsteve-star
.github/ @GangGreenTemperTatum @virtualsteve-star

## Data Gathering
data_gathering/* @emmanuelgjr @GangGreenTemperTatum
Expand Down

0 comments on commit c80e538

Please sign in to comment.