Skip to content

Commit

Permalink
Update external dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Nov 7, 2023
1 parent c7110f5 commit 04266f7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
14 changes: 5 additions & 9 deletions README_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@
codeowners(<a href="#codeowners-name">name</a>, <a href="#codeowners-pattern">pattern</a>, <a href="#codeowners-patterns">patterns</a>, <a href="#codeowners-team">team</a>, <a href="#codeowners-teams">teams</a>)
</pre>


A codeowners-rule represents one or many rows in a CODEOWNERS file.

`team` and `teams` are mutually exclusive.
`pattern` and `patterns` are mutually exclusive.


**ATTRIBUTES**


| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| <a id="codeowners-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
| <a id="codeowners-pattern"></a>pattern | A pattern of files (eg: '*.bzl') that the team(s) should get ownership of. In the generated CODEOWNERS, the path to this target will be prepended to the pattern. | String | optional | "" |
| <a id="codeowners-patterns"></a>patterns | A list of patterns, one row will be printed per pattern. See docs of <code>pattern</code> for more info. | List of strings | optional | [] |
| <a id="codeowners-team"></a>team | The GitHub team that should get ownership of the matching files. One of team and teams must be set. | String | optional | "" |
| <a id="codeowners-teams"></a>teams | A list of the GitHub teams that should get ownership of the matching files. One of team and teams must be set. | List of strings | optional | [] |
| <a id="codeowners-pattern"></a>pattern | A pattern of files (eg: '*.bzl') that the team(s) should get ownership of. In the generated CODEOWNERS, the path to this target will be prepended to the pattern. | String | optional | `""` |
| <a id="codeowners-patterns"></a>patterns | A list of patterns, one row will be printed per pattern. See docs of `pattern` for more info. | List of strings | optional | `[]` |
| <a id="codeowners-team"></a>team | The GitHub team that should get ownership of the matching files. One of team and teams must be set. | String | optional | `""` |
| <a id="codeowners-teams"></a>teams | A list of the GitHub teams that should get ownership of the matching files. One of team and teams must be set. | List of strings | optional | `[]` |


<a id="generate_codeowners"></a>
Expand All @@ -37,17 +35,15 @@ A codeowners-rule represents one or many rows in a CODEOWNERS file.
generate_codeowners(<a href="#generate_codeowners-name">name</a>, <a href="#generate_codeowners-generated_comment">generated_comment</a>, <a href="#generate_codeowners-owners">owners</a>)
</pre>


Creates a GitHub-compatible CODEOWNERS file based on the `owners`.


**ATTRIBUTES**


| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| <a id="generate_codeowners-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
| <a id="generate_codeowners-generated_comment"></a>generated_comment | A comment to insert at the top of the generated file | String | optional | "# This file was generated by rules_codeowners / Bazel. Don't edit it directly" |
| <a id="generate_codeowners-generated_comment"></a>generated_comment | A comment to insert at the top of the generated file | String | optional | `"# This file was generated by rules_codeowners / Bazel. Don't edit it directly"` |
| <a id="generate_codeowners-owners"></a>owners | A list of codeowners and generate_codeowners. One generate_codeowners can include another generate_codeowners to achieve nested rules. | <a href="https://bazel.build/concepts/labels">List of labels</a> | required | |


30 changes: 24 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,42 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
name = "bazel_skylib",
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
],
sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

http_archive(
name = "io_bazel_stardoc",
sha256 = "05fb57bb4ad68a360470420a3b6f5317e4f722839abc5b17ec4ef8ed465aaa47",
sha256 = "62bd2e60216b7a6fec3ac79341aa201e0956477e7c8f6ccc286f279ad1d96432",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz",
"https://github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz",
"https://github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz",
],
)

load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()

load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")

rules_jvm_external_deps()

load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")

rules_jvm_external_setup()

load("@io_bazel_stardoc//:deps.bzl", "stardoc_external_deps")

stardoc_external_deps()

load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_install")

stardoc_pinned_maven_install()

0 comments on commit 04266f7

Please sign in to comment.