-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates source code for ownership change
Signed-off-by: Jean du Plessis <[email protected]>
- Loading branch information
1 parent
a41bb83
commit c67f2e2
Showing
226 changed files
with
4,598 additions
and
2,835 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
|
||
SPDX-License-Identifier: CC0-1.0 |
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,3 @@ | ||
SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
|
||
SPDX-License-Identifier: CC0-1.0 |
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,3 @@ | ||
SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
|
||
SPDX-License-Identifier: CC0-1.0 |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Comment Commands | ||
|
||
on: issue_comment | ||
|
@@ -8,85 +12,85 @@ jobs: | |
if: startsWith(github.event.comment.body, '/points') | ||
|
||
steps: | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: points | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
- name: Handle Command | ||
uses: actions/github-script@v4 | ||
env: | ||
POINTS: ${{ steps.command.outputs.command-arguments }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const points = process.env.POINTS | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: points | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
- name: Handle Command | ||
uses: actions/github-script@v4 | ||
env: | ||
POINTS: ${{ steps.command.outputs.command-arguments }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const points = process.env.POINTS | ||
if (isNaN(parseInt(points))) { | ||
console.log("Malformed command - expected '/points <int>'") | ||
github.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: "confused" | ||
}) | ||
return | ||
} | ||
const label = "points/" + points | ||
if (isNaN(parseInt(points))) { | ||
console.log("Malformed command - expected '/points <int>'") | ||
github.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: "confused" | ||
}) | ||
return | ||
} | ||
const label = "points/" + points | ||
// Delete our needs-points-label label. | ||
try { | ||
await github.issues.deleteLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: ['needs-points-label'] | ||
}) | ||
console.log("Deleted 'needs-points-label' label.") | ||
} | ||
catch(e) { | ||
console.log("Label 'needs-points-label' probably didn't exist.") | ||
} | ||
// Delete our needs-points-label label. | ||
try { | ||
await github.issues.deleteLabel({ | ||
// Add our points label. | ||
github.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: ['needs-points-label'] | ||
labels: [label] | ||
}) | ||
console.log("Deleted 'needs-points-label' label.") | ||
} | ||
catch(e) { | ||
console.log("Label 'needs-points-label' probably didn't exist.") | ||
} | ||
// Add our points label. | ||
github.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: [label] | ||
}) | ||
console.log("Added '" + label + "' label.") | ||
console.log("Added '" + label + "' label.") | ||
# NOTE(negz): See also backport.yml, which is the variant that triggers on PR | ||
# merge rather than on comment. | ||
backport: | ||
runs-on: ubuntu-20.04 | ||
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/backport') | ||
steps: | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: backport | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: backport | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Open Backport PR | ||
uses: zeebe-io/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_workspace: ${{ github.workspace }} | ||
version: v0.0.4 | ||
- name: Open Backport PR | ||
uses: zeebe-io/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_workspace: ${{ github.workspace }} | ||
version: v0.0.4 |
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,19 @@ | ||
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: REUSE Compliance Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: REUSE Compliance Check | ||
uses: fsfe/reuse-action@v2 | ||
- name: REUSE SPDX SBOM | ||
uses: fsfe/reuse-action@v2 | ||
with: | ||
args: spdx |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
[submodule "build"] | ||
path = build | ||
url = https://github.com/upbound/build | ||
path = build | ||
url = https://github.com/upbound/build |
Oops, something went wrong.