Skip to content

Commit

Permalink
GiHub
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski committed May 9, 2024
1 parent db7920e commit be6292a
Show file tree
Hide file tree
Showing 10 changed files with 215 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Bug report
description: Create a report to help us improve
title: "Bug title"
labels: [bug]
body:
- type: textarea
validations:
required: true
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is
- type: textarea
validations:
required: true
attributes:
label: To Reproduce
description: Steps to reproduce the behavior
- type: textarea
validations:
required: true
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen
- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem
- type: textarea
validations:
required: true
attributes:
label: OS version
description: Which OS versions did you see the issue on?
- type: textarea
validations:
required: true
attributes:
label: .NET version
description: Which .NET versions did you see the issue on?
- type: textarea
validations:
required: true
attributes:
label: OpenAPI Client NuGet version
description: Which OpenAPI Client NuGet versions did you see the issue on?
- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem here
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
target-branch: "development"
directory: "/"
schedule:
interval: "daily"
labels:
- "Actions"

# Maintain dependencies for nuget
- package-ecosystem: "nuget"
target-branch: "development"
directory: "/"
schedule:
interval: "daily"
labels:
- "NuGet"
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [lepoco]
29 changes: 29 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
release:
- base-branch: 'main'

PR:
- base-branch: [ 'main', 'development' ]

github_actions:
- changed-files:
- any-glob-to-any-file: '.github/workflows/**'

documentation:
- changed-files:
- any-glob-to-any-file: [ 'docs/**', 'documentation/**' ]

dotnet:
- changed-files:
- any-glob-to-any-file: '**/*.cs'

update:
- changed-files:
- any-glob-to-any-file: 'src/Directory.Build.props'

NuGet:
- changed-files:
- any-glob-to-any-file: [ 'src/OpenApi.Client/**', 'src/Directory.Packages.props' ]

dependencies:
- changed-files:
- any-glob-to-any-file: [ 'src/Directory.Packages.props' ]
32 changes: 32 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--- Please provide a general summary of your changes in the title above -->

## Pull request type

<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Update
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

Issue Number: N/A

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by this PR. -->

-
-

## Other information

<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
32 changes: 32 additions & 0 deletions .github/workflows/reflection-events-cd-nuget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: openapi-client-cd-nuget

on:
push:
branches: [main]

workflow_dispatch:

jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1.3
with:
msbuild-architecture: x64
- uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build src\ReflectionEvents\ReflectionEvents.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true

- name: Publish the package to NuGet.org
run: nuget push **\*.nupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json'
15 changes: 15 additions & 0 deletions .github/workflows/reflection-events-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: openapi-client-labeler

on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
31 changes: 31 additions & 0 deletions .github/workflows/reflection-events-pr-validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: openapi-client-pr-validator

on:
pull_request:
branches: [development]
push:
branches: [development]

workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1.3
with:
msbuild-architecture: x64
- uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build src\OpenApi.Client\OpenApi.Client.csproj --configuration Release --no-restore
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PropertyGroup>
<Version>1.0.0</Version>
<PackageVersion>1.0.0-preview.1</PackageVersion>
<PackageVersion>1.0.0</PackageVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
Binary file modified build/nuget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be6292a

Please sign in to comment.