Skip to content

Commit

Permalink
Merge pull request #1 from aditosoftware/migrate-gitlab-to-github
Browse files Browse the repository at this point in the history
chore: migrated from gitlab to github
  • Loading branch information
rH4rtinger authored Sep 17, 2024
2 parents cd44722 + b6fc6bd commit 754ec5a
Show file tree
Hide file tree
Showing 16 changed files with 1,271 additions and 589 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Assign the designer team the whole repository
* @aditosoftware/devs-designer
71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-reports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
⚠️ Do not share security issues here, instead use the **Report a vulnerability** in the security tab.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Describe exactly what happened to have this bug appear.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: Describe what you expect to happen.
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: Steps to reproduce
description: |
Describe the steps to reproduce this bug.
This will be automatically formatted into code, so no need for backticks.
placeholder: |
1.
2.
3.
render: shell
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
validations:
required: true
- type: input
id: os
attributes:
label: Operating System
description: What OS are you using?
placeholder: Windows 10, macOS 14.6.1, ubuntu 24, ...
validations:
required: true
- type: input
id: input-version
attributes:
label: Input version
description: What version of vscode-input are you using?
placeholder: 1.0.2
validations:
required: true
- type: input
id: vscode-version
attributes:
label: VSCode version
description: What version of VSCode are you using?
placeholder: 1.93.0
validations:
required: true
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature Request
description: Request a new feature.
title: "[Feature]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to request a new feature!
- type: textarea
id: description
attributes:
label: Description
description: Describe the feature here.
validations:
required: true
- type: textarea
id: implementation-ideas
attributes:
label: Implementation ideas
description: If you have any implementation ideas, you can share them here.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# Please check before merging

- [ ] Is the content of the `README.md` file still up-to-date?
- [ ] Have you added an entry to the `CHANGELOG.md`?
- [ ] Is the pull request title written in the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format?
- [ ] VSCode: Did you follow the [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview)?

# Description

Please describe your pull request.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ESLint

on:
pull_request:

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint
31 changes: 31 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Project

on:
pull_request:

jobs:
build:
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
os: [macos-13, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check Node.js version
run: node -v

- name: Check npm versions
run: npm -v

- name: Run clean install
run: npm ci

- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
33 changes: 33 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run compile
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
12 changes: 0 additions & 12 deletions .gitlab/merge_request_templates/Default.md

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default defineConfig({
version: "insiders",
mocha: {
parallel: false,
retries: 5
},
});
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["ms-vscode.extension-test-runner"]
"recommendations": ["ms-vscode.extension-test-runner", "esbenp.prettier-vscode"]
}
13 changes: 9 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@
},
"peacock.color": "#1857a4",
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"sonarlint.connectedMode.project": {
"connectionId": "SonarQube",
"projectKey": "plattform-designer-vscode-input"
}
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"editor.formatOnPaste": true,
"editor.formatOnType": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.tabSize": 2
}
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ All notable changes to the "vscode-input" module will be documented in this file

The format is based on [Keep a Changelog](http://keepachangelog.com/) and and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## 2.0.1

### Changed

- Upgraded dependencies:
- sinon to 19.0.2
- @vscode/test-cli to 0.0.10
- @vscode/test-electron to 2.4.1
- @types/mocha to 10.0.8
- @types/chai to 4.3.19

## 2.0.0

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ These input elements should be used for any multi step inputs.

## Installation

This module is published at [GitLab](https://gitlab.adito.de/plattform/designer/vscode-input/-/packages) and [Nexus](https://nexus.adito.cloud/#browse/browse:xrm). Please check the corresponding sites on how to add the npm repository to your project.

After you have added the repository to your project, you can install it normally.
You can install this dependency normally.

```shell
npm i @aditosoftware/vscode-input
npm install @aditosoftware/vscode-input
```

## Usage

### Basic Usage

Your project is expected to have any dependency to [@aditosoftware/vscode-logging](https://gitlab.adito.de/plattform/designer/vscode-logging) and configure it accordingly.
Your project is expected to have any dependency to [@aditosoftware/vscode-logging](https://github.com/aditosoftware/vscode-logging) and configure it accordingly.

Before you can start using any multi step inputs, you need to initialize the logging via `initializeLogger`. This can be done in your `activate` function of the extension.

Expand Down
Loading

0 comments on commit 754ec5a

Please sign in to comment.