mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
feat(workflow): add auto-assign GitHub Action for issue assignment
Implement an auto-assign workflow to automatically assign newly opened issues to the repository owner. Impact: Streamlines issue management by ensuring the owner is automatically assigned to new issues.
This commit is contained in:
parent
b1e0245a60
commit
1706bd7c0e
2 changed files with 36 additions and 0 deletions
25
.github/workflows/auto-assign.yml
vendored
Normal file
25
.github/workflows/auto-assign.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
name: Auto-assign
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
auto-assign:
|
||||
name: Assign to owner
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- name: Assign issue to owner
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
await github.rest.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
assignees: [context.repo.owner],
|
||||
});
|
||||
11
CODEOWNERS
Normal file
11
CODEOWNERS
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# CODEOWNERS
|
||||
#
|
||||
# This file defines code owners for this repository.
|
||||
# Code owners are automatically requested for review when a pull request
|
||||
# modifies files they own.
|
||||
#
|
||||
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
|
||||
#
|
||||
# NOTE: This file is updated automatically by initialize.sh when using the blueprint.
|
||||
|
||||
* @jpawlowski
|
||||
Loading…
Reference in a new issue