Skip to content
Open

Beta #49

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
889ee65
chore(deps-dev): bump @types/node from 16.10.3 to 16.11.1 (#36)
dependabot[bot] Oct 18, 2021
31be5fb
chore(deps-dev): bump ts-node from 10.2.1 to 10.3.0 (#38)
dependabot[bot] Oct 18, 2021
123b57c
chore(deps-dev): bump nock from 13.1.3 to 13.1.4 (#42)
dependabot[bot] Oct 25, 2021
154ac05
chore(deps-dev): bump @types/lodash from 4.14.175 to 4.14.176 (#41)
dependabot[bot] Oct 25, 2021
97ab42e
chore(deps-dev): bump ts-node from 10.3.0 to 10.4.0 (#39)
dependabot[bot] Oct 25, 2021
db90d35
chore(deps-dev): bump typescript from 4.4.3 to 4.4.4 (#37)
dependabot[bot] Oct 25, 2021
60e0951
chore(deps-dev): bump @types/node from 16.11.1 to 16.11.5 (#44)
dependabot[bot] Oct 25, 2021
855c241
chore(deps-dev): bump husky from 7.0.2 to 7.0.4 (#43)
dependabot[bot] Oct 25, 2021
fc09874
chore(deps-dev): bump xo from 0.45.0 to 0.46.3 (#48)
dependabot[bot] Nov 1, 2021
9a1519c
chore(deps-dev): bump @types/node from 16.11.5 to 16.11.6 (#47)
dependabot[bot] Nov 1, 2021
aa9f1ef
chore(deps-dev): bump lint-staged from 11.2.3 to 11.2.6 (#46)
dependabot[bot] Nov 1, 2021
4c29600
chore(deps-dev): bump @types/node from 16.11.6 to 16.11.11 (#61)
dependabot[bot] Dec 11, 2021
1670420
chore(deps-dev): bump lint-staged from 11.2.6 to 12.1.2 (#60)
dependabot[bot] Dec 11, 2021
5457ddf
chore(deps-dev): bump sinon from 11.1.2 to 12.0.1 (#51)
dependabot[bot] Dec 11, 2021
15e28ad
chore(deps-dev): bump nock from 13.1.4 to 13.2.1 (#55)
dependabot[bot] Dec 11, 2021
0d9de4d
chore(deps-dev): bump xo from 0.46.3 to 0.47.0 (#59)
dependabot[bot] Dec 11, 2021
8b2aa41
fix(deps): bump debug from 4.3.2 to 4.3.3 (#66)
dependabot[bot] Dec 11, 2021
85be6f8
chore(deps-dev): bump semantic-release from 18.0.0 to 18.0.1 (#63)
dependabot[bot] Dec 11, 2021
21f09f7
chore(deps-dev): bump @types/node from 16.11.11 to 16.11.12 (#62)
dependabot[bot] Dec 11, 2021
df38496
chore(deps-dev): bump @types/lodash from 4.14.176 to 4.14.178 (#64)
dependabot[bot] Dec 11, 2021
a7dc0a9
chore: fix linter
nitzano Dec 12, 2021
482d562
chore(deps-dev): bump @types/semantic-release from 17.2.2 to 17.2.3 (…
dependabot[bot] Dec 12, 2021
249473f
upgrade tyescript
nitzano Dec 13, 2021
e22d256
Merge branch 'beta' of github.com:nitzano/semantic-release-github-mil…
nitzano Dec 13, 2021
1f8ca82
chore(deps-dev): bump @types/node from 16.11.12 to 17.0.10 (#79)
dependabot[bot] Jan 27, 2022
94e2896
chore(deps-dev): bump lint-staged from 12.1.2 to 12.3.1 (#81)
dependabot[bot] Jan 27, 2022
d59bcde
chore(deps-dev): bump typescript from 4.5.3 to 4.5.5 (#80)
dependabot[bot] Jan 27, 2022
2f37b1d
chore(deps-dev): bump @types/node from 17.0.10 to 17.0.21 (#92)
dependabot[bot] Mar 25, 2022
9017299
chore(deps-dev): bump lint-staged from 12.3.1 to 12.3.7 (#95)
dependabot[bot] Mar 25, 2022
77e5c19
chore(deps-dev): bump ava from 3.15.0 to 4.1.0 (#94)
dependabot[bot] Mar 25, 2022
38455cd
chore(deps-dev): bump nock from 13.2.1 to 13.3.0 (#128)
dependabot[bot] Aug 20, 2023
7bd185e
chore(deps-dev): bump lint-staged from 12.3.7 to 15.2.1 (#154)
dependabot[bot] Feb 5, 2024
ed1fd0e
fix(deps): bump @octokit/rest from 18.12.0 to 20.1.1 (#163)
dependabot[bot] Mar 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"license": "MIT",
"dependencies": {
"@octokit/plugin-throttling": "^3.5.2",
"@octokit/rest": "^18.12.0",
"@octokit/rest": "^20.1.1",
"@semantic-release/error": "^3.0.0",
"aggregate-error": "^4.0.0",
"debug": "^4.3.2",
"debug": "^4.3.3",
"git-url-parse": "^11.6.0",
"lodash": "^4.17.21",
"node-emoji": "^1.11.0"
Expand All @@ -47,21 +47,21 @@
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/git-url-parse": "^9.0.1",
"@types/lodash": "^4.14.175",
"@types/node": "^16.10.3",
"@types/semantic-release": "^17.2.2",
"ava": "^3.15.0",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.21",
"@types/semantic-release": "^17.2.3",
"ava": "^4.1.0",
"faker": "^5.5.3",
"husky": "^7.0.2",
"lint-staged": "^11.2.3",
"nock": "^13.1.3",
"husky": "^7.0.4",
"lint-staged": "^15.2.1",
"nock": "^13.3.0",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"semantic-release": "18.0.0",
"sinon": "^11.1.2",
"ts-node": "^10.2.1",
"typescript": "^4.4.3",
"xo": "^0.45.0"
"semantic-release": "18.0.1",
"sinon": "^12.0.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.5",
"xo": "^0.47.0"
},
"peerDependencies": {
"semantic-release": ">=18.0.0"
Expand All @@ -85,4 +85,4 @@
"ts-node/register"
]
}
}
}
4 changes: 2 additions & 2 deletions src/config/resolve-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {getLogger} from '../logger';
import {Configuration, PluginConfig} from './types';
import {getLogger} from '../logger.js';
import {Configuration, PluginConfig} from './types.js';

const logger = getLogger().extend('resolve-config');

Expand Down
2 changes: 1 addition & 1 deletion src/github/client/create-client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {throttling} from '@octokit/plugin-throttling';
import {Octokit} from '@octokit/rest';
import {getLogger} from '../../logger';
import {getLogger} from '../../logger.js';

const logger = getLogger();

Expand Down
2 changes: 1 addition & 1 deletion src/github/client/get-client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Octokit} from '@octokit/rest';
import {createClient} from './create-client';
import {createClient} from './create-client.js';

let client: Octokit;

Expand Down
3 changes: 3 additions & 0 deletions src/github/utils/get-milestone-by-name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Noop

export const noop = 'noop';
4 changes: 2 additions & 2 deletions src/github/utils/list-milestones.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Octokit} from '@octokit/rest';
import {getLogger} from '../../logger';
import {GithubMilestone} from '../../types/github-milestone';
import {getLogger} from '../../logger.js';
import {GithubMilestone} from '../../types/github-milestone.js';

const debugLogger = getLogger().extend('list-milestones');

Expand Down
6 changes: 3 additions & 3 deletions src/github/utils/test/list-milestones.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Octokit} from '@octokit/rest';
import test from 'ava';
import nock from 'nock';
import {createClient} from '../../client/create-client';
import {listMilestones} from '../list-milestones';
import {FAKE_MILESTONES} from './fixtures/fake-milestones';
import {createClient} from '../../client/create-client.js';
import {listMilestones} from '../list-milestones.js';
import {FAKE_MILESTONES} from './fixtures/fake-milestones.js';

test.afterEach.always(() => {
// Clear nock
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Context, GlobalConfig} from 'semantic-release';
import {GithubMilestone} from './types/github-milestone';
import {verifyGithub} from './verify-conditions/verify-github';
import {verifyMilestones} from './verify-release/verify-milestones';
import {GithubMilestone} from './types/github-milestone.js';
import {verifyGithub} from './verify-conditions/verify-github.js';
import {verifyMilestones} from './verify-release/verify-milestones.js';

let verified: boolean;
let milestones: GithubMilestone[] = [];
Expand Down
12 changes: 6 additions & 6 deletions src/verify-conditions/verify-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import SemanticReleaseError from '@semantic-release/error';
import AggregateError from 'aggregate-error';
import gitUrlParse, {GitUrl} from 'git-url-parse';
import {Context, GlobalConfig} from 'semantic-release';
import {resolveConfig} from '../config/resolve-config';
import {PluginConfig} from '../config/types';
import {createClient} from '../github/client/create-client';
import {listMilestones} from '../github/utils/list-milestones';
import {getLogger} from '../logger';
import {GithubMilestone} from '../types/github-milestone';
import {resolveConfig} from '../config/resolve-config.js';
import {PluginConfig} from '../config/types.js';
import {createClient} from '../github/client/create-client.js';
import {listMilestones} from '../github/utils/list-milestones.js';
import {getLogger} from '../logger.js';
import {GithubMilestone} from '../types/github-milestone.js';

const debugLogger = getLogger();

Expand Down
2 changes: 1 addition & 1 deletion src/verify-release/find-milestone.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {find} from 'lodash';
import {GithubMilestone} from '../types/github-milestone';
import {GithubMilestone} from '../types/github-milestone.js';

function compareMilestone(
milestones: GithubMilestone[],
Expand Down
8 changes: 4 additions & 4 deletions src/verify-release/verify-milestones.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import AggregateError from 'aggregate-error';
import {emojify} from 'node-emoji';
import {Context, GlobalConfig} from 'semantic-release';
import {getLogger} from '../logger';
import {GithubMilestone} from '../types/github-milestone';
import {findMilestone} from './find-milestone';
import {BranchInfo} from './types';
import {getLogger} from '../logger.js';
import {GithubMilestone} from '../types/github-milestone.js';
import {findMilestone} from './find-milestone.js';
import {BranchInfo} from './types.js';

const debugLogger = getLogger();

Expand Down
Loading
Loading