diff --git a/update-codeowners-from-packages/README.md b/update-codeowners-from-packages/README.md index 0798f681..8d55fcba 100644 --- a/update-codeowners-from-packages/README.md +++ b/update-codeowners-from-packages/README.md @@ -36,6 +36,7 @@ If you want to combine the automatically generated `CODEOWNERS` with the manuall | ----------------- | -------- | ----------------------------------------------------- | | token | true | The token for pull requests. | | codeowners-manual | false | The path to the manually maintained `CODEOWNERS`. | +| global-codeowners | false | The GitHub IDs of global codeowners. | | pr-base | false | Refer to `peter-evans/create-pull-request`. | | pr-branch | false | The same as above. | | pr-title | false | The same as above. | diff --git a/update-codeowners-from-packages/action.yaml b/update-codeowners-from-packages/action.yaml index 7a81b8ba..e696551b 100644 --- a/update-codeowners-from-packages/action.yaml +++ b/update-codeowners-from-packages/action.yaml @@ -9,6 +9,9 @@ inputs: description: "" required: false default: .github/CODEOWNERS-manual + global-codeowners: + description: "" + required: false pr-base: description: "" required: false @@ -71,6 +74,10 @@ runs: line+=" $maintainer" done + if [ -n "${{ inputs.global-codeowners }}" ]; then + line+=" ${{ inputs.global-codeowners }}" + fi + echo "$line" >>.github/CODEOWNERS done shell: bash