-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove examples and use the official repo instead (#1528)
* Remove examples and add a makefile for cloning them from the official repo Signed-off-by: Radoslav Dimitrov <[email protected]> * Update provider.yaml --------- Signed-off-by: Radoslav Dimitrov <[email protected]>
- Loading branch information
Showing
44 changed files
with
163 additions
and
2,304 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Copyright 2023 Stacklok, Inc | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
# This is a sample provider integrating minder with GitHub | ||
# There are details which you'll need to fill in yourself. | ||
version: v1 | ||
type: provider | ||
name: github | ||
context: | ||
organization: ACME | ||
def: | ||
endpoint: 'https://api.github.com/' | ||
auth: | ||
type: oauth2 | ||
client_id: 'your-client-id' | ||
client_secret: 'your-client-secret' | ||
scopes: ['repo', 'read:org'] | ||
client_types: | ||
- rest | ||
- graphql | ||
entities: | ||
- repositories | ||
- build_environments | ||
- artifacts | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright 2023 Stacklok, Inc | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
url: https://api.github.com/repos/jakubtestorg/bad-npm/pulls/3 | ||
commitSHA: bd9958a63c9b95ccc2bc0cf1eef65a87529aed16 | ||
number: 3 | ||
repo_owner: jakubtestorg | ||
repo_name: bad-npm | ||
patches: | ||
- name: package-lock.json | ||
patch_Url: https://github.com/jakubtestorg/bad-npm/raw/123/package-lock.json | ||
authorID: 144222806 |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright 2023 Stacklok, Inc | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
owner: stacklok | ||
name: Demo-Repo-Go | ||
repoId: 605597568 | ||
HookUrl: | ||
clone_url: "https://github.com/stacklok/Demo-Repo-Go.git" | ||
CreatedAt: 2021-03-19T16:00:00Z | ||
UpdatedAt: 2021-03-19T16:00:00Z | ||
Registered: true |
15 changes: 15 additions & 0 deletions
15
examples/github/versioned_artifact.yaml → cmd/dev/examples/versioned_artifact.yaml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright 2023 Stacklok, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
default: init-examples | ||
|
||
.PHONY: init-examples | ||
init-examples: ## clone example rules and profiles | ||
git clone https://github.com/stacklok/minder-rules-and-profiles.git examples/rules-and-profiles | true |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Minder examples | ||
|
||
## Bootstrap the examples directory | ||
|
||
Run `make` to clone the examples from the [https://github.com/stacklok/minder-rules-and-profiles](https://github.com/stacklok/minder-rules-and-profiles) | ||
```bash | ||
make | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.