Skip to content

Commit 115d997

Browse files
authoredJan 14, 2024
Initial commit
0 parents  commit 115d997

38 files changed

+956
-0
lines changed
 

‎.devcontainer/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ARG VARIANT=6.0-bullseye
2+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}

‎.devcontainer/devcontainer.json

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
3+
{
4+
"name": "C# (.NET)",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
//https://mcr.microsoft.com/en-us/product/devcontainers/dotnet/about
9+
// Update 'VERSION' to pick a .NET Core version: 3.1, 7.0
10+
// Append "VARIANT"-bullseye or -focal to pin to an OS version.
11+
"VARIANT": "6.0-bullseye"//<-- HIER DIE VERSION ÄNDERN
12+
13+
}
14+
},
15+
16+
// Features to add to the dev container. More info: https://containers.dev/features.
17+
18+
"features": {
19+
"ghcr.io/devcontainers/features/dotnet:1": {
20+
"version": "latest"
21+
}
22+
},
23+
24+
// Configure tool-specific properties.
25+
"customizations": {
26+
// Configure properties specific to VS Code.
27+
"vscode": {
28+
"settings": {},
29+
"extensions": [
30+
"ms-dotnettools.csharp",
31+
"ms-vscode.powershell",
32+
"visualstudioexptteam.vscodeintellicode",
33+
"yzhang.markdown-all-in-one"
34+
]
35+
}
36+
},
37+
38+
// Use 'portsAttributes' to set default properties for specific forwarded ports.
39+
// More info: https://containers.dev/implementors/json_reference/#port-attributes
40+
"portsAttributes": {
41+
"5000": {
42+
"label": "Hello Remote World",
43+
"onAutoForward": "notify"
44+
},
45+
"5001": {
46+
"protocol": "https"
47+
}
48+
},
49+
50+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
51+
// "forwardPorts": [5000, 5001],
52+
53+
// Use 'postCreateCommand' to run commands after the container is created.
54+
"postCreateCommand":"dotnet restore"
55+
56+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
57+
// "remoteUser": "root"
58+
}

‎.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

‎.github/workflows/issues.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

‎.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Github Issue Copier
2+
# You may pin to the exact commit or the version.
3+
#uses: soichisumi/issue-copy-action@0da68355f63b8318c7a93d0cecd4578909544bda
4+
uses: soichisumi/issue-copy-action@v0.2.0
5+
with:
6+
# Github token
7+
githubToken: ${{ secrets.GITHUB_TOKEN }}
8+
# Repository to which generated issue is copied. format: $OWNER/$REPO_NAME
9+
targetRepository: GSO-SW/MultiTool
10+
# Keyword to trigger this action. The action is executed in the case of lowercased issue comment matched with lowercased keyword.
11+
keyword: /copy"
12+
# Content of newly created issue
13+
contentOfNewIssue: 'prefix of newly created issue'

‎.github/workflows/milestones.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

‎.github/workflows/saveIssues.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Backup Issues and Milestones
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
backup:
8+
runs-on: ubuntu-latest
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GSO_TOKEN_INTERNAL }}
11+
12+
steps:
13+
14+
- if: ${{ env.super_secret != '' }}
15+
run: echo 'This step will only run if the secret has a value set.'
16+
- if: ${{ env.super_secret == '' }}
17+
run: echo 'This step will only run if the secret does not have a value set.'
18+
19+
20+
- name: Debug working directory
21+
run: |
22+
ls -al
23+
24+
- name: Check Token
25+
run: |
26+
curl -I "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/GSO-SW
27+
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
32+
- name: Backup Issues and Milestones
33+
run: |
34+
curl -H "Authorization: token ${GITHUB_TOKEN}" \
35+
https://api.github.com/repos/${{ github.repository }}/issues?state=all \
36+
> issues.json || echo "issues.json not found"
37+
curl -H "Authorization: token ${GITHUB_TOKEN}" \
38+
https://api.github.com/repos/${{ github.repository }}/milestones?state=all \
39+
> milestones.json || echo "milestones.json not found"
40+
41+
42+
43+

0 commit comments

Comments
 (0)
Please sign in to comment.