diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bc95434 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Route every review to the maintainer. +* @adolfousier diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..886cfbf --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,25 @@ +name: Auto-assign issues & PRs + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + assign: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/github-script@v7 + with: + script: | + const number = context.payload.issue?.number ?? context.payload.pull_request.number; + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: number, + assignees: [context.repo.owner] + }); diff --git a/.gitignore b/.gitignore index c00360d..3de910d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.github/ /target /docker/.env client/target