Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
399e1e0d
Commit
399e1e0d
authored
2 years ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Added test for comit id
parent
31c31d4f
No related branches found
No related tags found
1 merge request
!29
830 Version Header
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FitConnect/FitConnect.csproj
+7
-0
7 additions, 0 deletions
FitConnect/FitConnect.csproj
FitConnect/ProjectSpecification.cs
+3
-1
3 additions, 1 deletion
FitConnect/ProjectSpecification.cs
with
10 additions
and
1 deletion
FitConnect/FitConnect.csproj
+
7
−
0
View file @
399e1e0d
...
...
@@ -49,6 +49,9 @@
<EmbeddedResource Include="TrustedRootCertificates\PCA-1-Verwaltung-17.pem" />
<None Remove="Certificates\PCA-1-Verwaltung-20.pem" />
<EmbeddedResource Include="TrustedRootCertificates\PCA-1-Verwaltung-20.pem" />
<None Update="commitId.tmp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
...
...
@@ -63,4 +66,8 @@
<Compile Remove="Services\Models\v1\Api\ReplyChannel.cs" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="git rev-parse --short HEAD > commitId.tmp" />
</Target>
</Project>
This diff is collapsed.
Click to expand it.
FitConnect/ProjectSpecification.cs
+
3
−
1
View file @
399e1e0d
...
...
@@ -18,7 +18,9 @@ internal static class ProjectSpecification {
private
static
string
?
GetCommitId
()
{
const
string
commitFileName
=
"commitId.tmp"
;
return
File
.
Exists
(
commitFileName
)
?
File
.
ReadAllText
(
commitFileName
)
:
null
;
return
File
.
Exists
(
commitFileName
)
?
File
.
ReadAllLines
(
commitFileName
).
First
()
:
"development"
;
}
public
static
byte
[]
CalculateCallbackHmac
(
string
callbackSecret
,
long
timestamp
,
string
body
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment