Skip to content

Commit

Permalink
Correct GitHub badge event parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Donat <donatj@gmail.com>
  • Loading branch information
donatj committed Dec 4, 2023
1 parent b7c9699 commit d6497dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Documentation/Badges/BadgeGitHubActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ protected function init() : void {
}

if( $event = $this->getOption('event') ) {
$src = 'branch=' . urlencode($event) . '&';
$src = 'event=' . urlencode($event) . '&';
}

$src = rtrim($src, '&?');

$href = sprintf('%s/%s/actions/workflows/%s', self::URL_GITHUB_BASE, $name, urlencode($workflow));

$this->setOptionDefault(self::OPT_SRC, $src);
Expand Down

0 comments on commit d6497dc

Please sign in to comment.