-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add changelog test to verify that the changelog is correctly linked * Update changelog * Add #497 * Specify that the fuzzy completion is only for functions * Fix formatting * update changelog for #505 * Update changelog for #501, #473, and #504 * Update changelog for #507 and vscode #176 * Update changelog for #511 * Update changelog for #492
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
defmodule ElixirLS.Utils.ChangelogTest do | ||
use ExUnit.Case, async: true | ||
|
||
test "changelog pull requests are correctly linked" do | ||
contents = File.read!("../../CHANGELOG.md") | ||
|
||
String.split(contents, "\n", trim: true) | ||
|> Enum.each(fn line -> | ||
case Regex.run(~r/\/pull\/(\d+)/, line, capture: :all_but_first) do | ||
[pr_number] -> | ||
assert String.match?(line, ~r/\[.*#{pr_number}\]/) | ||
|
||
_ -> | ||
nil | ||
end | ||
end) | ||
end | ||
end |