Skip to content

Commit d530f8e

Browse files
authored
Transfer repo to refined-github organization (#113)
1 parent edba1c9 commit d530f8e

File tree

6 files changed

+35
-35
lines changed

6 files changed

+35
-35
lines changed

demo/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
const defaultUrl = 'https://github.com/fregante/github-url-detection';
2+
const defaultUrl = 'https://github.com/refined-github/github-url-detection';
33
export let url = '';
44
import * as urlDetection from '../index';
55
import collector from '../collector';

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<body>
1818
<h1>
19-
<a href="https://github.com/fregante/github-url-detection">
20-
fregante/github-url-detection
19+
<a href="https://github.com/refined-github/github-url-detection">
20+
refined-github/github-url-detection
2121
</a>
2222
</h1>
2323
<main class="container">

index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -617,14 +617,14 @@ collect.set('isMarketplaceAction', [
617617
export const isActionJobRun = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('runs/'));
618618
collect.set('isActionJobRun', [
619619
'https://github.com/sindresorhus/refined-github/runs/639481849',
620-
'https://github.com/fregante/github-url-detection/runs/1224552520?check_suite_focus=true',
620+
'https://github.com/refined-github/github-url-detection/runs/1224552520?check_suite_focus=true',
621621
]);
622622

623623
export const isActionRun = (url: URL | HTMLAnchorElement | Location = location): boolean => /^(actions\/)?runs/.test(getRepo(url)?.path!);
624624
collect.set('isActionRun', [
625625
'https://github.com/sindresorhus/refined-github/runs/639481849',
626-
'https://github.com/fregante/github-url-detection/runs/1224552520?check_suite_focus=true',
627-
'https://github.com/fregante/github-url-detection/actions/runs/294962314',
626+
'https://github.com/refined-github/github-url-detection/runs/1224552520?check_suite_focus=true',
627+
'https://github.com/refined-github/github-url-detection/actions/runs/294962314',
628628
]);
629629

630630
export const isNewAction = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'actions/new';
@@ -634,9 +634,9 @@ collect.set('isNewAction', [
634634

635635
export const isRepositoryActions = (url: URL | HTMLAnchorElement | Location = location): boolean => /^actions(\/workflows\/.+\.ya?ml)?$/.test(getRepo(url)?.path!);
636636
collect.set('isRepositoryActions', [
637-
'https://github.com/fregante/github-url-detection/actions',
638-
'https://github.com/fregante/github-url-detection/actions/workflows/demo.yml',
639-
'https://github.com/fregante/github-url-detection/actions/workflows/esm-lint.yml',
637+
'https://github.com/refined-github/github-url-detection/actions',
638+
'https://github.com/refined-github/github-url-detection/actions/workflows/demo.yml',
639+
'https://github.com/refined-github/github-url-detection/actions/workflows/esm-lint.yml',
640640
]);
641641

642642
export const isUserTheOrganizationOwner = (): boolean => isOrganizationProfile() && exists('[aria-label="Organization"] [data-tab-item="org-header-settings-tab"]');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test",
1111
"extension"
1212
],
13-
"repository": "fregante/github-url-detection",
13+
"repository": "refined-github/github-url-detection",
1414
"funding": "https://github.com/sponsors/fregante",
1515
"license": "MIT",
1616
"author": "Federico Brigante <me@fregante.com> (https://fregante.com)",

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
55
Battle-tested by and extracted from the [Refined GitHub](https://github.com/sindresorhus/refined-github) extension.
66

7-
- Try the live [demo](https://fregante.github.io/github-url-detection/)
8-
- See the code and expected URLs for [every detection](https://github.com/fregante/github-url-detection/blob/main/index.ts)
7+
- Try the live [demo](https://refined-github.github.io/github-url-detection/)
8+
- See the code and expected URLs for [every detection](https://github.com/refined-github/github-url-detection/blob/main/index.ts)
99

1010
## Install
1111

@@ -21,7 +21,7 @@ import * as pageDetect from 'github-url-detection';
2121
## Usage
2222

2323
```js
24-
const href = 'https://github.com/fregante/github-url-detection/issues/1';
24+
const href = 'https://github.com/refined-github/github-url-detection/issues/1';
2525
if (pageDetect.isIssue(new URL(href))) { // Pass the URL as an `URL` object
2626
alert('The passed URL is of an issue!')
2727
}
@@ -50,7 +50,7 @@ if (pageDetect.isConversationList()) {
5050
```
5151

5252
```js
53-
if (pageDetect.isConversationList(new URL('https://github.com/fregante/github-url-detection/pulls'))) {
53+
if (pageDetect.isConversationList(new URL('https://github.com/refined-github/github-url-detection/pulls'))) {
5454
alert('You’re looking at a issues or PRs list!')
5555
}
5656
```

test.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -141,46 +141,46 @@ test('getRepositoryInfo', t => {
141141
t.is(getRepositoryInfoAdapter('https://github.com'), undefined);
142142
t.is(getRepositoryInfoAdapter('https://gist.github.com/'), undefined);
143143
t.is(getRepositoryInfoAdapter('https://github.com/settings/developers'), undefined);
144-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection'), {
145-
owner: 'fregante',
144+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection'), {
145+
owner: 'refined-github',
146146
name: 'github-url-detection',
147-
nameWithOwner: 'fregante/github-url-detection',
147+
nameWithOwner: 'refined-github/github-url-detection',
148148
path: '',
149149
});
150-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/'), {
151-
owner: 'fregante',
150+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/'), {
151+
owner: 'refined-github',
152152
name: 'github-url-detection',
153-
nameWithOwner: 'fregante/github-url-detection',
153+
nameWithOwner: 'refined-github/github-url-detection',
154154
path: '',
155155
});
156-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/blame/master/package.json'), {
157-
owner: 'fregante',
156+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/blame/master/package.json'), {
157+
owner: 'refined-github',
158158
name: 'github-url-detection',
159-
nameWithOwner: 'fregante/github-url-detection',
159+
nameWithOwner: 'refined-github/github-url-detection',
160160
path: 'blame/master/package.json',
161161
});
162-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/commit/57bf4'), {
163-
owner: 'fregante',
162+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/commit/57bf4'), {
163+
owner: 'refined-github',
164164
name: 'github-url-detection',
165-
nameWithOwner: 'fregante/github-url-detection',
165+
nameWithOwner: 'refined-github/github-url-detection',
166166
path: 'commit/57bf4',
167167
});
168-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/compare/test-branch?quick_pull=0'), {
169-
owner: 'fregante',
168+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/compare/test-branch?quick_pull=0'), {
169+
owner: 'refined-github',
170170
name: 'github-url-detection',
171-
nameWithOwner: 'fregante/github-url-detection',
171+
nameWithOwner: 'refined-github/github-url-detection',
172172
path: 'compare/test-branch',
173173
});
174-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/tree/master/distribution'), {
175-
owner: 'fregante',
174+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/tree/master/distribution'), {
175+
owner: 'refined-github',
176176
name: 'github-url-detection',
177-
nameWithOwner: 'fregante/github-url-detection',
177+
nameWithOwner: 'refined-github/github-url-detection',
178178
path: 'tree/master/distribution',
179179
});
180-
t.deepEqual(getRepositoryInfoAdapter('https://github.com/fregante/github-url-detection/tree/master/distribution/'), {
181-
owner: 'fregante',
180+
t.deepEqual(getRepositoryInfoAdapter('https://github.com/refined-github/github-url-detection/tree/master/distribution/'), {
181+
owner: 'refined-github',
182182
name: 'github-url-detection',
183-
nameWithOwner: 'fregante/github-url-detection',
183+
nameWithOwner: 'refined-github/github-url-detection',
184184
path: 'tree/master/distribution',
185185
});
186186
}

0 commit comments

Comments
 (0)