-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates source code for ownership change #279
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
max_line_length = 80 |
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3 | ||
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some yaml formatting in this file. But I think it will not affect the functionality.