Skip to content

Commit

Permalink
☝ Bump kzu/oss template
Browse files Browse the repository at this point in the history
Fixes #25 (broken repository link to source in package description)
  • Loading branch information
kzu committed Dec 10, 2020
1 parent 302aa83 commit 9fb55b8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Questions
url: https://github.com/kzu/oss/discussions?discussions_q=category%3AQ%26A
about: Want to know how to do something? Check out the Discussions > Q&A area!
- name: Ideas
url: https://github.com/kzu/oss/discussions?discussions_q=category%3AIdeas
about: Suggest an idea to make the project better through the Discussions > Ideas area!
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
Configuration: Release

jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
Expand Down Expand Up @@ -50,4 +50,4 @@ jobs:
path: '*.binlog'

- name: 🚀 nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
10 changes: 7 additions & 3 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
weak
[file ".github/workflows/release.yml"]
url = https://github.com/kzu/oss/blob/main/.github/workflows/release.yml
etag = fe4eae2bf3738645bca3b8f9f90ace482802fdd818c6d6651dccbb311ebeb231
etag = 0142be91e1ec4607aa398975c4e066ea07f9a610b412eaf53f9f2f9d86aa70fc
weak
[file ".github/workflows/tag.yml"]
url = https://github.com/kzu/oss/blob/main/.github/workflows/tag.yml
Expand Down Expand Up @@ -68,7 +68,7 @@
weak
[file "src/Directory.Build.targets"]
url = https://github.com/kzu/oss/blob/main/src/Directory.Build.targets
etag = 87357cb36379ac589c3981bddec4c5f7f89c55356573bd203acbea4b66fe3427
etag = a8ae94f091decde21c9f9b2d851647c1cb573746956c29448346d0ccb1478652
weak
[file "src/kzu.snk"]
url = https://github.com/kzu/oss/blob/main/src/kzu.snk
Expand All @@ -80,7 +80,7 @@
weak
[file ".netconfig"]
url = https://github.com/kzu/oss/blob/main/.netconfig
etag = 42998b33e06eb5c76b14cf6d7582ca3cc49d30421474a5f2b319865afd909dd0
etag = f9bcd2682af965d509ff87ea135ad4a8eaff5a627a6922d67c67e83489e39455
weak
[file "Directory.Build.rsp"]
url = https://github.com/kzu/oss/blob/main/Directory.Build.rsp
Expand All @@ -90,3 +90,7 @@
url = https://github.com/kzu/oss/blob/main/_config.yml
etag = c7f2063ead734d0afc383a07c35da2864a221311da8e1c0c6fea8939e932d2ab
weak
[file ".github/ISSUE_TEMPLATE/config.yml"]
url = https://github.com/kzu/oss/blob/main/.github/ISSUE_TEMPLATE/config.yml
etag = b5ce64e6967276086eb89f86f57364da9c4deac988c7e0e04810a4f8caaa1400
weak
12 changes: 6 additions & 6 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@
Condition="'$(SourceControlInformationFeatureSupported)' == 'true' And
'$(IsPackable)' == 'true'">
<PropertyGroup>
<Description Condition="'$(SourceRevisionId)' != ''">$(Description)

Built from $(RepositoryUrl)/tree/$(SourceRevisionId.Substring(0, 9))
</Description>
<PackageDescription>$(Description)</PackageDescription>

<!-- The project must specify PublishRepositoryUrl=true in order to publish the URL, in order to prevent inadvertent leak of internal URL. -->
<RepositoryUrl Condition="'$(RepositoryUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(PrivateRepositoryUrl)</RepositoryUrl>
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(RepositoryUrl)</PackageProjectUrl>

<RepositoryCommit Condition="'$(RepositoryCommit)' == ''">$(SourceRevisionId)</RepositoryCommit>
<RepositorySha Condition="'$(SourceRevisionId)' != ''">$(SourceRevisionId.Substring(0, 9))</RepositorySha>

<Description Condition="'$(SourceRevisionId)' != '' and '$(RepositoryUrl)' != ''">$(Description)

Built from $(RepositoryUrl)/tree/$(SourceRevisionId.Substring(0, 9))
</Description>
<PackageDescription>$(Description)</PackageDescription>
</PropertyGroup>
</Target>

Expand Down

0 comments on commit 9fb55b8

Please sign in to comment.