Skip to content

Commit

Permalink
fix: support pull-request for slug and slug url
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Jan 25, 2021
1 parent 75ce03b commit 78985f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions __tests__/slugref.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ test('slug_ref: a very long name', () => {
'an-awesome-feature-very-very-very-very-very-very-very-long-more'
)
})

test('slug_ref: on pull-request ref', () => {
test_slug_ref('refs/pull/branch', 'branch')
})
4 changes: 4 additions & 0 deletions __tests__/slugurlref.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ test('slug_url_ref: test trailing', () => {
test('slug_url_ref: test trailing with dot', () => {
test_slug_url_ref('refs/heads/.an-awesome-Feature.', 'an-awesome-feature')
})

test('slug_url_ref: on pull-request ref', () => {
test_slug_url_ref('refs/pull/branch', 'branch')
})
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78985f8

Please sign in to comment.