Skip to content

Commit

Permalink
Update and rename .github/workflows/CODEOWNERS to .github/CODEOWNERS
Browse files Browse the repository at this point in the history
Create workflow to create subissues for issues tagged with 'everyone'
  • Loading branch information
ehharvey committed Sep 22, 2024
1 parent 0526af4 commit 5069e54
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ehharvey
1 change: 0 additions & 1 deletion .github/workflows/CODEOWNERS

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/create-everyone-subissues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Create subissues for issues tagged with 'everyone'
on:
issues:
types: [labeled, assigned]
permissions: write-all

jobs:
createSubissues:
runs-on: ubuntu-latest
if: contains(github.event.issue.labels.*.name, 'everyone')
strategy:
matrix:
assignee: ${{ github.event.issue.assignees.*.login }}
steps:
- uses: actions/checkout@v4

- name: Create subissue
run: gh issue create --title "${{ github.event.issue.title }}" --body "${{ github.event.issue.body }}" --assignee "${{ matrix.assignee }}" > subissue.txt
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true
id: createSubissues

- name: Add subissue link as comment to parent issue
run: gh issue comment "${{ github.event.issue.number }}" -b "${{ matrix.assignee }} generated-subissue $(cat subissue.txt)"
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true
id: addSubissueLink

0 comments on commit 5069e54

Please sign in to comment.