diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6238657..df3321f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -29,7 +29,7 @@ jobs: if: "github.event_name == 'schedule'" steps: - name: Mark issue stale - uses: actions/stale@v3 + uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this issue should stay open, please remove the `O: stale 🤖` label or comment on the issue." diff --git a/lib/RallyValidate.js b/lib/RallyValidate.js index e260537..cb3f8b6 100644 --- a/lib/RallyValidate.js +++ b/lib/RallyValidate.js @@ -330,11 +330,11 @@ class RallyValidate { if (bodyList && bodyList.length > 0) { message += 'The following Rally artifacts have been found in the body of this pull request, with validation status below\n\n' message += '| Artifact | Rally Status | Project | Validation |\n' - message += '| --- | --- | --- | --- | \n' + message += '| :------- | :----------- | :------ | ---------- | \n' bodyList.forEach(artifact => { if (!artifact.isValid) { isSuccess = false } // Append the status to the PR comment - message += `| ${artifact.key} | \`${artifact.status}\` | \`${artifact.projectName}\` | ${artifact.statusIcon} \`${artifact.validState}\` |\n` + message += `| [${artifact.key}](${artifact.artifact._ref}) | \`${artifact.status}\` | \`${artifact.projectName}\` | ${artifact.statusIcon} \`${artifact.validState}\` |\n` }) } else { message += '\n:heavy_exclamation_mark: No valid artifacts were found in the pull request body' @@ -361,11 +361,11 @@ class RallyValidate { if (titleList && titleList.length > 0) { message += 'The following Rally artifacts have been found in the title of this pull request, with validation status below\n\n' message += '| Artifact | Rally Status | Project | Validation |\n' - message += '| --- | --- | --- | --- |\n' + message += '| :------- | :----------- | :------ | ---------- |\n' titleList.forEach(artifact => { if (!artifact.isValid) { isSuccess = false } // Append the status to the PR comment - message += `| ${artifact.key} | \`${artifact.status}\` | \`${artifact.projectName}\` | ${artifact.statusIcon} \`${artifact.validState}\` |\n` + message += `| [${artifact.key}](${artifact.artifact._ref}) | \`${artifact.status}\` | \`${artifact.projectName}\` | ${artifact.statusIcon} \`${artifact.validState}\` |\n` }) } else { message += '\n:heavy_exclamation_mark: No valid artifacts were found in the pull request title' @@ -391,12 +391,12 @@ class RallyValidate { // Set the content headers let message = '\n### Commit validation\n' message += '| Artifact | Commit SHA | Rally Status | Project | Validation |\n' - message += '| --- | --- | --- | --- | --- |\n' + message += '| :------- | :--------- | :----------- | :------ | ---------- |\n' // Process commits with Rally artifacts in them commitsWithArtifact.forEach(artifact => { if (!artifact.rally.isValid) { isSuccess = false } // Append the status to the PR comment - message += `| ${artifact.rally.key} | [${artifact.sha_short}](${artifact.commit_url}) | \`${artifact.rally.status}\` | \`${artifact.rally.projectName}\` | ${artifact.rally.statusIcon} \`${artifact.rally.validState}\` |\n` + message += `| [${artifact.rally.key}](${artifact.rally.artifact._ref})) | [${artifact.sha_short}](${artifact.commit_url}) | \`${artifact.rally.status}\` | \`${artifact.rally.projectName}\` | ${artifact.rally.statusIcon} \`${artifact.rally.validState}\` |\n` }) // Process commits without Rally artifacts if (commitsWithoutArtifact && commitsWithoutArtifact.length > 0) {