Skip to content

Commit b34dea1

Browse files
Merge pull request #85 from refactorfirst/add-hyperlink
Hyperlinking RefactorFirst in report title
2 parents 4ba7ce4 + 092c082 commit b34dea1

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.github/workflows/maven-pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

18-
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v4
2020
with:
2121
java-version: 11
22+
distribution: 'zulu'
2223

2324
- name: Build With Maven
2425
run: mvn -B verify

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
steps:
1818
- name: Check out Git repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
ref: main
2222

2323
- name: Set up JDK 11
24-
uses: actions/setup-java@v3
24+
uses: actions/setup-java@v4
2525
with:
2626
java-version: 11
2727
distribution: 'zulu'

.github/workflows/maven.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up JDK 11
19-
uses: actions/setup-java@v3
19+
uses: actions/setup-java@v4
2020
with:
2121
java-version: 11
2222
distribution: 'zulu'
@@ -25,17 +25,16 @@ jobs:
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2727
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
28-
run: mvn -B verify #org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
28+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
2929

3030

3131
# Comment "Build With Maven" and uncomment the below when you want a snapshot build to be deployed
3232
# *********Don't forget to switch to Java 1.8 as well********
33-
- name: Publish Maven snapshot
34-
uses: samuelmeuli/action-maven-publish@v1
35-
with:
36-
gpg_private_key: ${{ secrets.gpg_private_key }}
37-
gpg_passphrase: ${{ secrets.gpg_passphrase }}
38-
nexus_username: ${{ secrets.nexus_username }}
39-
nexus_password: ${{ secrets.nexus_password }}
40-
maven_profiles: snapshot-release
41-
maven_args: -B
33+
# - name: Publish Maven snapshot
34+
# uses: samuelmeuli/action-maven-publish@v1
35+
# with:
36+
# gpg_private_key: ${{ secrets.gpg_private_key }}
37+
# gpg_passphrase: ${{ secrets.gpg_passphrase }}
38+
# nexus_username: ${{ secrets.nexus_username }}
39+
# nexus_password: ${{ secrets.nexus_password }}
40+
# maven_profiles: snapshot-release

report/src/main/java/org/hjug/refactorfirst/report/SimpleHtmlReport.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ public void printProjectHeader(
351351
+ " <div id=\"contentBox\">");
352352

353353
stringBuilder
354-
.append("<section>\n" + "<h2>RefactorFirst Report for ")
354+
.append(
355+
"<section>\n"
356+
+ "<h2><a href=\"https://github.com/refactorfirst/refactorfirst\" target=\"_blank\" title=\"Learn about RefactorFirst\" aria-label=\"RefactorFirst\">RefactorFirst</a> Report for ")
355357
.append(projectName)
356358
.append(" ")
357359
.append(projectVersion)

0 commit comments

Comments
 (0)