- improve action specification
- clean up imports for tests
This commit is contained in:
@@ -1,12 +1,5 @@
|
|||||||
import {wait} from '../src/wait'
|
|
||||||
import * as process from 'process'
|
|
||||||
import * as cp from 'child_process'
|
|
||||||
import * as path from 'path'
|
|
||||||
import {ReleaseNotes} from '../src/releaseNotes'
|
import {ReleaseNotes} from '../src/releaseNotes'
|
||||||
import {readConfiguration} from '../src/utils'
|
import {readConfiguration} from '../src/utils'
|
||||||
import {createCommandManager} from '../src/git-helper'
|
|
||||||
import * as core from '@actions/core'
|
|
||||||
import {Tags} from '../src/tags'
|
|
||||||
|
|
||||||
// shows how the runner will run a javascript action with env / stdout protocol
|
// shows how the runner will run a javascript action with env / stdout protocol
|
||||||
/*
|
/*
|
||||||
|
|||||||
+10
-10
@@ -1,30 +1,30 @@
|
|||||||
name: 'Release Changelog Builder'
|
name: 'Release Changelog Builder'
|
||||||
description: 'Pulls all merged pull requests, and constructs the changelog for a release'
|
description: 'A GitHub action that builds your release notes fast, easy and exactly the way you want.'
|
||||||
author: 'Mike Penz'
|
author: 'Mike Penz'
|
||||||
branding:
|
branding:
|
||||||
icon: 'award'
|
icon: 'award'
|
||||||
color: 'green'
|
color: 'green'
|
||||||
inputs:
|
inputs:
|
||||||
configuration:
|
configuration:
|
||||||
description: 'path to the configuration file'
|
description: 'Defines the relative path to the configuration file.'
|
||||||
path:
|
path:
|
||||||
description: 'the path to runt his action in'
|
description: 'Defines the directory the repo is located in (checkout directory)'
|
||||||
owner:
|
owner:
|
||||||
description: 'the owner of the repository to create the changelog for'
|
description: 'Defines the owner of the repository to create the changelog for'
|
||||||
repo:
|
repo:
|
||||||
description: 'the repository to create the changelog for'
|
description: 'Defines the repository to create the changelog for'
|
||||||
fromTag:
|
fromTag:
|
||||||
description: 'the previous tag to compare against'
|
description: 'Defines the previous tag to compare against'
|
||||||
toTag:
|
toTag:
|
||||||
description: 'the new tag created'
|
description: 'Defines the newly tag created'
|
||||||
ignorePreReleases:
|
ignorePreReleases:
|
||||||
description: 'defines if only full releases should be considered to compare against (Only used if fromTag is not defined). E.g. for 1.0.1... 1.0.0-rc02 <- ignore, 1.0.0 <- pick'
|
description: 'Defines if the action will only use full releases to compare against (Only used if fromTag is not defined). E.g. for 1.0.1... 1.0.0-rc02 <- ignore, 1.0.0 <- pick'
|
||||||
default: "false"
|
default: "false"
|
||||||
token:
|
token:
|
||||||
description: 'the token to use to execute the git API requests'
|
description: 'Defines the token to use to execute the git API requests with, uses `env.GITHUB_TOKEN` by default'
|
||||||
outputs:
|
outputs:
|
||||||
changelog:
|
changelog:
|
||||||
description: The generated changelog as markdown.
|
description: Returns the generated changelog as markdown.
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ export class ReleaseNotes {
|
|||||||
const {owner, repo, toTag, ignorePreReleases, configuration} = this.options
|
const {owner, repo, toTag, ignorePreReleases, configuration} = this.options
|
||||||
|
|
||||||
if (!this.options.fromTag) {
|
if (!this.options.fromTag) {
|
||||||
core.startGroup(`🔖 Resolve 'fromTag'`)
|
core.startGroup(`🔖 Resolve previous tag`)
|
||||||
core.debug(`fromTag undefined, trying to resolve via API`)
|
core.debug(`fromTag undefined, trying to resolve via API`)
|
||||||
const tagsApi = new Tags(octokit)
|
const tagsApi = new Tags(octokit)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user