-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][githubgen] remove deprecated code (#37498)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description - This PR removes the githubgen code that was deprecated as part of #37294 - To be merged once release 0.119.0 is out <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Part of #37294 <!--Describe the documentation added.--> #### Documentation old readme was updated, the rest of the change is transparent since it's all hidden behind make commands <!--Please delete paragraphs that you did not use before submitting.--> --------- Signed-off-by: Moritz Wiesinger <[email protected]>
- Loading branch information
Showing
20 changed files
with
3 additions
and
689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,6 @@ jobs: | |
- internal | ||
- pkg | ||
- cmd-0 | ||
- cmd-1 | ||
- other | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04-arm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,3 @@ | ||
⚠️ This executable has moved to [opentelemetry-go-build-tools](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/githubgen). | ||
|
||
This code is deprecated and will be removed soon. See https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/37294. | ||
|
||
# githubgen | ||
|
||
This executable is used to generate the `.github/CODEOWNERS` and `.github/ALLOWLIST` files. | ||
|
||
It reads status metadata from `metadata.yaml` files located throughout the repository. | ||
|
||
It checks that codeowners are known members of the OpenTelemetry organization. | ||
|
||
## Usage | ||
|
||
``` | ||
$> make gengithub | ||
``` | ||
The equivalent of: | ||
``` | ||
$> cd cmd/githubgen && $(GOCMD) install . | ||
$> GITHUB_TOKEN=<mypattoken> githubgen --folder . [--allowlist cmd/githubgen/allowlist.txt] | ||
``` | ||
|
||
## Checking codeowners against OpenTelemetry membership via Github API | ||
|
||
To authenticate, set the environment variable `GITHUB_TOKEN` to a PAT token. If a PAT is not available you can use the `--skipgithub` flag to avoid checking for membership in the GitHub organization. | ||
|
||
For each codeowner, the script will check if the user is registered as a member of the OpenTelemetry organization. | ||
|
||
If any codeowner is missing, it will stop and print names of missing codeowners. | ||
|
||
These can be added to allowlist.txt as a workaround. | ||
|
||
If a codeowner is present in allowlist.txt and also a member of the OpenTelemetry organization, the script will error out. | ||
|
||
See https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/37294. |
Oops, something went wrong.