diff --git a/.gitbook.yaml b/.gitbook.yaml new file mode 100644 index 0000000..6c8fbd8 --- /dev/null +++ b/.gitbook.yaml @@ -0,0 +1,4 @@ +root: docs +structure: + readme: README.md + summary: summary.md diff --git a/.github/IONOS.CLOUD.BLU.svg b/.github/IONOS.CLOUD.BLU.svg new file mode 100644 index 0000000..fa8a337 --- /dev/null +++ b/.github/IONOS.CLOUD.BLU.svg @@ -0,0 +1 @@ +IONOS.CLOUD Blu \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..f521e55 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,54 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: LiviusP + +--- + +## Description + + +## Expected behavior + + +## Environment + +GO version: +``` +``` +SDK version: +``` +``` +OS: +``` +``` + +## Configuration Files + + +## How to Reproduce + + +## Error and Debug Output + + +## Additional Notes + + +## References + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..75e05fe --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: IONOS Cloud API + url: https://devops.ionos.com/api/ + about: View API documentation diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..9029ee0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,51 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: LiviusP + +--- + +### Current SDK Version + + +``` +... +``` + +### Use-cases + + +### Attempted Solutions + + +### Proposal + + +### References + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2b1cbe7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build +on: + workflow_dispatch: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/issue-creation.yml b/.github/workflows/issue-creation.yml new file mode 100644 index 0000000..238a261 --- /dev/null +++ b/.github/workflows/issue-creation.yml @@ -0,0 +1,68 @@ +name: Issue Creation Tracker +on: + issues: + types: [ opened, reopened ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Git Issue Details + run: | + echo "Issue creator: ${{ github.event.issue.user.login }}" + echo "Issue title: ${{ github.event.issue.title }}" + echo "Issue number: ${{ github.event.issue.number }}" + echo "Issue url: ${{ github.event.issue.html_url }}" + - name: Google Chat Notification + run: | + curl --location --request POST '${{ secrets.ISSUE_TRACKER_WEBHOOK }}' \ + --header 'Content-Type: application/json' \ + --data-raw '{ + "cards": [ + { + "header": { + "title": "New Issue 🔨", + "subtitle": "Issue No: #${{ github.event.issue.number }}" + }, + "sections": [ + { + "widgets": [ + { + "keyValue": { + "topLabel": "Repository", + "content": "${{ github.repository }}" + }, + }, + { + "keyValue": { + "topLabel": "Title", + "content": "${{ github.event.issue.title }}" + } + }, + { + "keyValue": { + "topLabel": "Assigned Labels", + "content": "- ${{ join(github.event.issue.labels.*.name) }}" + } + }, + { + "buttons": [ + { + "textButton": { + "text": "OPEN ISSUE", + "onClick": { + "openLink": { + "url": "${{ github.event.issue.html_url }}" + } + } + } + } + ] + } + ] + } + ] + } + ] + }' diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md new file mode 100644 index 0000000..c5abfb0 --- /dev/null +++ b/docs/CHANGELOG.md @@ -0,0 +1,5 @@ +# CHANGELOG + +## 1.0.0 +### Initial release +Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud. diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..6cfe555 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=ionos-cloud_sdk-go-object-storage-management +sonar.organization=ionos-cloud + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=sdk-go-object-storage-management +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8