diff options
| author | Manuel Palenzuela Merino <[email protected]> | 2024-12-05 11:07:35 +0100 |
|---|---|---|
| committer | Manuel Palenzuela Merino <[email protected]> | 2024-12-05 11:08:17 +0100 |
| commit | ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d (patch) | |
| tree | 8aeaa3b76be6cdcf326acf3627b3d283a8b2c372 /main/civisibility/utils/testdata/fixtures/codeowners | |
| parent | Update README.md (diff) | |
| download | test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.tar.gz test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.tar.bz2 test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.zip | |
Add tests
Diffstat (limited to 'main/civisibility/utils/testdata/fixtures/codeowners')
| -rw-r--r-- | main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITHUB | 54 | ||||
| -rw-r--r-- | main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITLAB | 64 |
2 files changed, 118 insertions, 0 deletions
diff --git a/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITHUB b/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITHUB new file mode 100644 index 0000000..afbd198 --- /dev/null +++ b/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITHUB @@ -0,0 +1,54 @@ +# This is a comment. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# @global-owner1 and @global-owner2 will be requested for +# review when someone opens a pull request. +* @global-owner1 @global-owner2 + +# Order is important; the last matching pattern takes the most +# precedence. When someone opens a pull request that only +# modifies JS files, only @js-owner and not the global +# owner(s) will be requested for a review. +*.js @js-owner + +# You can also use email addresses if you prefer. They'll be +# used to look up users just like we do for commit author +# emails. +*.go [email protected] + +# Teams can be specified as code owners as well. Teams should +# be identified in the format @org/team-name. Teams must have +# explicit write access to the repository. In this example, +# the octocats team in the octo-org organization owns all .txt files. +*.txt @octo-org/octocats + +# In this example, @doctocat owns any files in the build/logs +# directory at the root of the repository and any of its +# subdirectories. +/build/logs/ @doctocat + +# The `docs/*` pattern will match files like +# `docs/getting-started.md` but not further nested files like +# `docs/build-app/troubleshooting.md`. +docs/* [email protected] + +# In this example, @octocat owns any file in an apps directory +# anywhere in your repository. +apps/ @octocat + +# In this example, @doctocat owns any file in the `/docs` +# directory in the root of your repository and any of its +# subdirectories. +/docs/ @doctocat + +# In this example, any change inside the `/scripts` directory +# will require approval from @doctocat or @octocat. +/scripts/ @doctocat @octocat + +# In this example, @octocat owns any file in the `/apps` +# directory in the root of your repository except for the `/apps/github` +# subdirectory, as its owners are left empty. +/apps/ @octocat +/apps/github \ No newline at end of file diff --git a/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITLAB b/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITLAB new file mode 100644 index 0000000..d0831c7 --- /dev/null +++ b/main/civisibility/utils/testdata/fixtures/codeowners/CODEOWNERS_GITLAB @@ -0,0 +1,64 @@ +# This is an example of a CODEOWNERS file. +# Lines that start with `#` are ignored. + +# app/ @commented-rule + +# Specify a default Code Owner by using a wildcard: +* @default-codeowner + +# Specify multiple Code Owners by using a tab or space: +* @multiple @code @owners + +# Rules defined later in the file take precedence over the rules +# defined before. +# For example, for all files with a filename ending in `.rb`: +*.rb @ruby-owner + +# Files with a `#` can still be accessed by escaping the pound sign: +\#file_with_pound.rb @owner-file-with-pound + +# Specify multiple Code Owners separated by spaces or tabs. +# In the following case the CODEOWNERS file from the root of the repo +# has 3 Code Owners (@multiple @code @owners): +CODEOWNERS @multiple @code @owners + +# You can use both usernames or email addresses to match +# users. Everything else is ignored. For example, this code +# specifies the `@legal` and a user with email `[email protected]` as the +# owner for the LICENSE file: +LICENSE @legal this_does_not_match [email protected] + +# Use group names to match groups, and nested groups to specify +# them as owners for a file: +README @group @group/with-nested/subgroup + +# End a path in a `/` to specify the Code Owners for every file +# nested in that directory, on any level: +/docs/ @all-docs + +# End a path in `/*` to specify Code Owners for every file in +# a directory, but not nested deeper. This code matches +# `docs/index.md` but not `docs/projects/index.md`: +/docs/* @root-docs + +# This code makes matches a `lib` directory nested anywhere in the repository: +lib/ @lib-owner + +# This code match only a `config` directory in the root of the repository: +/config/ @config-owner + +# If the path contains spaces, escape them like this: +path\ with\ spaces/ @space-owner + +# Code Owners section: +[Documentation] +ee/docs @docs +docs @docs + +[Database] +README.md @database +model/db @database + +# This section is combined with the previously defined [Documentation] section: +[DOCUMENTATION] +README.md @docs \ No newline at end of file |