forked from release-drafter/release-drafter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Correctly mention bot accounts in release notes
As noted in release-drafter#60, bot accounts are currently being mis-mentioned, where instead of linking through to `dependabot[bot]` it'll tag a user `@dependabot` which isn't the same, and can result in unwanted notifications. To address this, we can retrieve the type of user that has authored a Pull Request, looking at the `__typename` to determine if it's a `Bot` or a `User` account, and provide a Markdown link to the Bot account's app page. Unfortunately this may result in a name such as: @[dependabot[bot]](https://github.com/apps/dependabot) But this is a better result than tagging the wrong account. Closes release-drafter#60.
- Loading branch information
1 parent
09c613e
commit 8b04f12
Showing
4 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters