Remove automated changelog stuff

Refs #7460
This commit is contained in:
Jason Fields 2022-06-27 22:35:17 -04:00
parent 1e419f8543
commit 1927ebcb3e
5 changed files with 6 additions and 2919 deletions

View File

@ -122,6 +122,8 @@ This is my hack to simulate a click event based API in an IDE that doesn't have
## Release
Before you push a release, be sure to make sure the changelog is updated!
To push a release:
```bash
@ -132,9 +134,8 @@ git push --follow-tags
The above Gulp command will:
1. Bump the package version based off the semver supplied. Supported values: patch, minor, major.
2. Create a changelog using [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator).
3. Create a Git commit with the above changes.
4. Create a Git tag using the new package version.
2. Create a Git commit with the above changes.
3. Create a Git tag using the new package version.
In addition to building and testing the extension, when a tag is applied to the commit, the CI server will also create a GitHub release and publish the new version to the Visual Studio marketplace.

View File

@ -1,10 +0,0 @@
project=vim
user=vscodevim
base=build/CHANGELOG.base.md
bugs-label=**Fixed Bugs:**
bug-labels=kind/bug
enhancement-label=**Enhancements:**
enhancement-labels=kind/enhancement,kind/feature
exclude-labels=status/by-design,status/duplicate,status/user-error,status/already-resolved,kind/question,kind/discussion,pr/dependency,upstream/different-plugin,upstream/vscode
since-tag=v1.16.0
max-issues=500

View File

@ -22,4 +22,3 @@ tslint.json
webpack.config.js
gulpfile.js
renovate.json
.github_changelog_generator

File diff suppressed because it is too large Load Diff

View File

@ -70,59 +70,15 @@ function validateArgs(done) {
);
}
const gitHubToken = options.gitHubToken || process.env.CHANGELOG_GITHUB_TOKEN;
if (!gitHubToken) {
return done(
new PluginError('createChangelog', {
message:
'Missing GitHub API Token. Supply token using `--gitHubToken` option or `CHANGELOG_GITHUB_TOKEN` environment variable.',
})
);
}
done();
}
function createChangelog(done) {
const imageName = 'jpoon/github-changelog-generator';
const version = require('./package.json').version;
const options = minimist(process.argv.slice(2), releaseOptions);
const gitHubToken = options.gitHubToken || process.env.CHANGELOG_GITHUB_TOKEN;
var dockerRunCmd = spawn(
'docker',
[
'run',
'-it',
'--rm',
'-v',
process.cwd() + ':/usr/local/src/your-app',
imageName,
'--token',
gitHubToken,
'--future-release',
'v' + version,
],
{
cwd: process.cwd(),
stdio: 'inherit',
}
);
dockerRunCmd.on('exit', function (exitCode) {
done(exitCode);
});
}
function createGitTag() {
return gulp.src(['./package.json']).pipe(tag_version());
}
function createGitCommit() {
return gulp
.src(['./package.json', './yarn.lock', 'CHANGELOG.md'])
.pipe(git.commit('bump version'));
return gulp.src(['./package.json', './yarn.lock']).pipe(git.commit('bump version'));
}
function updateVersion(done) {
@ -297,16 +253,8 @@ gulp.task(
);
gulp.task('prepare-test', gulp.parallel('tsc', copyPackageJson));
gulp.task('test', gulp.series('prepare-test', 'run-test'));
gulp.task('changelog', gulp.series(validateArgs, createChangelog));
gulp.task(
'release',
gulp.series(
validateArgs,
updateVersion,
createChangelog,
'prettier',
createGitCommit,
createGitTag
)
gulp.series(validateArgs, updateVersion, 'prettier', createGitCommit, createGitTag)
);
gulp.task('default', gulp.series('build', 'test'));