Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .devcontainer/default/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Terraform Admin Guide Samples - Default",
"image": "mcr.microsoft.com/devcontainers/base:debian",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/robbert229/devcontainer-features/opentofu:1": {
"version": "1.9.0"
}
},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"HashiCorp.terraform",
"Github.copilot",
"gamunu.opentofu"
]
},
"codespaces": {}
},
"hostRequirements": {
"memory": "4gb"
},
// If you want to use SSO please install xdg-utils in the container
//"postCreateCommand": "bash ./.devcontainer/scripts/install-xdg.sh",
"remoteUser": "vscode"
}
38 changes: 38 additions & 0 deletions .devcontainer/withenvfile/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "Terraform Admin Guide Samples - with env file",
"image": "mcr.microsoft.com/devcontainers/base:debian",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/robbert229/devcontainer-features/opentofu:1": {
"version": "1.9.0"
}
},
"customizations": {
"vscode": {
"extensions": [
"Github.copilot",
"HashiCorp.terraform",
"gamunu.opentofu"
],
// Set *default* container specific settings.json values on container create.
"settings": {}
},
"codespaces": {}
},
"hostRequirements": {
"memory": "4gb"
},
// If you want to use SSO please install xdg-utils in the container
//"postCreateCommand": "bash ./.devcontainer/scripts/install-xdg.sh",
"remoteUser": "vscode",
// This devcontainer expects a file named .devcontainer/devcontainer.env to exist.
// you should place the following environment variables in that file:
// - BTP_USERNAME
// - BTP_PASSWORD
"runArgs": [
"--env-file",
".devcontainer/devcontainer.env"
]
}
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# They will be requested for review when someone opens a
# pull request.
* @lechnerc77 @NHingerl @bzarske
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 🐞 Bug report
description: File a bug/issue to help us improve
title: "[BUG]"
labels: [bug, needs-triage]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: dropdown
id: area
attributes:
label: What type of issue are you facing
description: What type of issue are you facing?
options:
- bug report
- documentation issue
validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: Provide a clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Add screenshots to help explain your problem
description: |
If applicable, add screenshots to help explain your problem.

Tip: You can attach images or files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: |
Add any other context like links or references about the problem here. Anything that will give us more context about the issue you are encountering!

Tip: You can attach images or files by clicking this area to highlight it and then dragging files in.
validations:
required: false
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 💡Feature request
description: Suggest an idea for this project
title: "[FEATURE]"
labels: [enhancement, pending-decision]
body:
- type: dropdown
attributes:
label: What area do you want to see improved?
description: Specify the main area that you want to see improved.
options:
- samples
- documentation
- other
validations:
required: true
- type: textarea
id: area
attributes:
label: Is your feature request related to a problem? Please describe.
description: Provide a clear and concise description of what the problem is e.g., I am always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you would like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you have considered
description: A clear and concise description of any alternative solutions or features you have considered.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: |
Add any other context like links or references about the problem here. Anything that will give us more context about the issue you are encountering!

Tip: You can attach images or files by clicking this area to highlight it and then dragging files in.
validations:
required: false
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Purpose
<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? -->
- ...

## Pull Request Type

What kind of change does this Pull Request introduce?
<!-- Please check the one that applies to this PR using "X". -->
```
[ ] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
```

## Other Information
<!-- Add any other helpful information that may be needed here. -->
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
31 changes: 31 additions & 0 deletions .github/workflows/feature-request-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Feature Request - Community Note"

on:
issues:
types:
- opened

jobs:
community_note:
name: 'Add Community Note'
if: ${{ contains(github.event.issue.labels.*.name, 'enhancement') }}
runs-on: ubuntu-latest
steps:
- name: 'Add community note to new Issues'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for the feature request. We evaluate it and update the issue accordingly.

## Community Note

### Voting for Prioritization

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original post to help the community and maintainers prioritize this request.
* Please **do not** leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

### Volunteering to Work on This Issue

* If you are interested in working on this issue, please leave a comment.
* If this would be your first contribution, please review the [contribution guide](https://github.com/SAP/terraform-exporter-btp/blob/main/CONTRIBUTING.md).
14 changes: 14 additions & 0 deletions .github/workflows/issue-comment-created.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Issue Comment Created Triage

on:
issue_comment:
types: [created]

jobs:
issue_comment_triage:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: |
needs author feedback
44 changes: 44 additions & 0 deletions .github/workflows/links-watcher-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Periodic Link Checker

on:
schedule:
- cron: "30 0 * * 1"
workflow_dispatch:

permissions:
contents: read
issues: write

jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- name: "Checkout source code"
uses: actions/checkout@v4
- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
with:
args: --verbose --no-progress --max-concurrency 2 --exclude-loopback './**/*.md'
output: ./lychee/out.md
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Find existing issue
id: find_issue
uses: micalevisk/last-issue-action@v2
if: failure()
with:
state: open
labels: |
broken link
automated issue
- name: Create or update issue for broken links
uses: peter-evans/create-issue-from-file@v5
if: failure()
with:
title: Link Checker Report
# If issue number is empty a new issue gets created
issue-number: ${{ steps.find_issue.outputs.issue-number }}
content-filepath: ./lychee/out.md
labels: broken link, automated issue
24 changes: 24 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Linter to enforce semantic pull request titles (see https://www.conventionalcommits.org/en/v1.0.0/)
name: "Semantic PR Check"

on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review

permissions:
pull-requests: read

jobs:
main:
if: github.event.pull_request.draft == false
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61 changes: 61 additions & 0 deletions .github/workflows/set-default-values-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

name: Set default values to PR
# Add the PR to the central project (status in project is set via workflow in project)
# Add the creator of the PR as assignee
# Add the next available milestone to the PR

on:
pull_request:
types:
- opened

permissions:
issues: write
pull-requests: write

jobs:
set-default-values:
runs-on: ubuntu-latest
steps:
- name: Add creator as assignee
if: ${{ github.actor != 'dependabot[bot]' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{github.repository}}/issues/${{github.event.number}}/assignees \
-f "assignees[]=${{github.actor}}"

- name: Set default labels
if: ${{ github.actor != 'dependabot[bot]' }}
uses: actions/github-script@v7
env:
TITLE: ${{ github.event.pull_request.title }}
with:
script: |
const title = process.env.TITLE;

let defaultLabels = [];
if (title.startsWith("feat:")) {
defaultLabels.push("enhancement");
} else if (title.startsWith("fix:")) {
defaultLabels.push("bug");
} else if (title.startsWith("docs:")) {
defaultLabels.push("documentation");
} else if (title.startsWith("test:")) {
defaultLabels.push("test setup");
} else if (title.startsWith("refactor:")) {
defaultLabels.push("refactoring");
} else {
defaultLabels.push("internal");
}

await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: defaultLabels
});
Loading