Skip to content

Commit

Permalink
ci: update this-danger arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Dec 1, 2023
1 parent 4feab04 commit e7a60c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/danger-this.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ jobs:
run: npx danger --dangerfile=src/dangerfile.ts ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTRIBUTING_GUIDE_FILE: 'CONTRIBUTING.md'
MAX_COMMITS: '7'
MAX_COMMITS_WARN: '9'
7 changes: 3 additions & 4 deletions src/outputInstructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ export default async function (): Promise<void> {

// Contributors guide link, if exists in the repository
if (config.instructions.contributingGuideFile) {
const contributionsGuideLink = `https://github.com/${repositoryOwner}/${repositoryName}/blob/${await getDefaultBranch()}/${
config.instructions.contributingGuideFile
}`;
const defaultBranch = await getDefaultBranch();
const contributionsGuideLink = `https://github.com/${repositoryOwner}/${repositoryName}/blob/${defaultBranch}/${config.instructions.contributingGuideFile}`;
instructions += `<hr>`;
instructions += `📘 Please review the project's <a href="${contributionsGuideLink}}">Contributions Guide</a> for key guidelines on code, documentation, testing, and more.<br>`;
instructions += `📘 Please review the project's <a href="${contributionsGuideLink}">Contributions Guide</a> for key guidelines on code, documentation, testing, and more.<br>`;
}

// Contributor License Agreement, if provided link to it
Expand Down

0 comments on commit e7a60c1

Please sign in to comment.