@@ -4,9 +4,9 @@ GIT_STATUS=`git status | grep "nothing to commit, working tree clean" | wc -l`
44if (( "$GIT_STATUS " > 0 )) ; then
55 git checkout master
66 git pull
7- cd eFormAPI/eFormAPI.Web
87 CURRENT_NUMBER_OF_COMMITS=` git log --oneline | wc -l`
98
9+ cd eFormAPI/eFormAPI.Web
1010 PACKAGES=(' Microting.eForm' ' Microting.eFormApi.BasePn' ' Microting.EformAngularFrontendBase' ' Microsoft.AspNetCore.Identity.UI' ' Microsoft.AspNetCore.Authentication.JwtBearer' ' Microsoft.AspNetCore.Mvc.NewtonsoftJson' ' Microsoft.EntityFrameworkCore.InMemory' ' System.Configuration.ConfigurationManager' ' Sentry' )
1111 # PACKAGES=('Microting.eForm' 'Microting.eFormApi.BasePn' 'Microting.EformAngularFrontendBase')
1212 PROJECT_NAME=' eFormAPI.Web.csproj'
@@ -43,6 +43,84 @@ if (( "$GIT_STATUS" > 0 )); then
4343 git commit -a -m " closes #$ISSUE_NUMBER "
4444 fi
4545 done
46+
47+ cd ..
48+ cd eFormAPI.Integration.Test
49+ PACKAGES=(' Microsoft.NET.Test.Sdk' ' NUnit' ' NUnit3TestAdapter' ' NUnit.Analyzers' )
50+ PROJECT_NAME=' eFormAPI.Integration.Test.csproj'
51+ REPOSITORY=' eform-angular-frontend'
52+
53+ for PACKAGE_NAME in ${PACKAGES[@]} ; do
54+
55+ OLD_VERSION=` dotnet list package | grep " $PACKAGE_NAME " | grep -oP ' \d\.\d+\.\d.*' | grep -oP ' \d.* \b' | xargs`
56+
57+ dotnet add $PROJECT_NAME package $PACKAGE_NAME
58+
59+ NEW_VERSION=` dotnet list package | grep " $PACKAGE_NAME " | grep -oP ' \d\.\d+\.\d.*$' | grep -oP ' \d\.\d+\.\d.*$' | grep -oP ' \d\.\d+\.\d.*$' | xargs`
60+
61+ if [ $NEW_VERSION != $OLD_VERSION ]; then
62+ echo " We have a new version of $PACKAGE_NAME , so creating github issue and do a commit message to close that said issue"
63+ RESULT=` curl -X " POST" " https://api.github.com/repos/microting/$REPOSITORY /issues?state=all" \
64+ -H " Cookie: logged_in=no" \
65+ -H " Authorization: token $CHANGELOG_GITHUB_TOKEN " \
66+ -H " Content-Type: text/plain; charset=utf-8" \
67+ -d $' {
68+ "title": "Bump ' $PACKAGE_NAME ' from ' $OLD_VERSION ' to ' $NEW_VERSION ' ",
69+ "body": "TBD",
70+ "assignees": [
71+ "renemadsen"
72+ ],
73+ "labels": [
74+ ".NET",
75+ "backend",
76+ "enhancement"
77+ ]
78+ }' `
79+ ISSUE_NUMBER=` echo $RESULT | grep -oP ' number": \d+,' | grep -oP ' \d+' `
80+ git add .
81+ git commit -a -m " closes #$ISSUE_NUMBER "
82+ fi
83+ done
84+
85+
86+ cd ..
87+ cd eFormAPI.Web.Integration.Tests
88+ PACKAGES=(' Microsoft.NET.Test.Sdk' ' NUnit' ' NUnit3TestAdapter' ' NUnit.Analyzers' )
89+ PROJECT_NAME=' eFormAPI.Web.Integration.Tests.csproj'
90+ REPOSITORY=' eform-angular-frontend'
91+
92+ for PACKAGE_NAME in ${PACKAGES[@]} ; do
93+
94+ OLD_VERSION=` dotnet list package | grep " $PACKAGE_NAME " | grep -oP ' \d\.\d+\.\d.*' | grep -oP ' \d.* \b' | xargs`
95+
96+ dotnet add $PROJECT_NAME package $PACKAGE_NAME
97+
98+ NEW_VERSION=` dotnet list package | grep " $PACKAGE_NAME " | grep -oP ' \d\.\d+\.\d.*$' | grep -oP ' \d\.\d+\.\d.*$' | grep -oP ' \d\.\d+\.\d.*$' | xargs`
99+
100+ if [ $NEW_VERSION != $OLD_VERSION ]; then
101+ echo " We have a new version of $PACKAGE_NAME , so creating github issue and do a commit message to close that said issue"
102+ RESULT=` curl -X " POST" " https://api.github.com/repos/microting/$REPOSITORY /issues?state=all" \
103+ -H " Cookie: logged_in=no" \
104+ -H " Authorization: token $CHANGELOG_GITHUB_TOKEN " \
105+ -H " Content-Type: text/plain; charset=utf-8" \
106+ -d $' {
107+ "title": "Bump ' $PACKAGE_NAME ' from ' $OLD_VERSION ' to ' $NEW_VERSION ' ",
108+ "body": "TBD",
109+ "assignees": [
110+ "renemadsen"
111+ ],
112+ "labels": [
113+ ".NET",
114+ "backend",
115+ "enhancement"
116+ ]
117+ }' `
118+ ISSUE_NUMBER=` echo $RESULT | grep -oP ' number": \d+,' | grep -oP ' \d+' `
119+ git add .
120+ git commit -a -m " closes #$ISSUE_NUMBER "
121+ fi
122+ done
123+
46124 NEW_NUMBER_OF_COMMITS=` git log --oneline | wc -l`
47125
48126 if (( $NEW_NUMBER_OF_COMMITS > $CURRENT_NUMBER_OF_COMMITS )) ; then
0 commit comments