- fix formatting
- apply some smaller fixes - enable cache for 1 gitea test (no need to use API) - do not cache and export token in cache - speed up main.test.ts
This commit is contained in:
+47
-44
@@ -1,12 +1,14 @@
|
||||
import {mergeConfiguration, resolveConfiguration} from '../src/utils'
|
||||
import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder'
|
||||
import {GiteaRepository} from '../src/repositories/GiteaRepository'
|
||||
import {mergeConfiguration, resolveConfiguration} from '../../src/utils'
|
||||
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder'
|
||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
/**
|
||||
* Before starting testing, you should manually clone the repository
|
||||
* cd /tmp && git clone https://gitea.com/jolheiser/sip
|
||||
* cd /tmp && git clone https://gitea.com/mikepenz/sip
|
||||
*
|
||||
* (Forked from: https://gitea.com/jolheiser/sip)
|
||||
*/
|
||||
|
||||
const token = process.env.GITEA_TOKEN || ''
|
||||
@@ -14,6 +16,47 @@ const workingDirectory = '/tmp/sip/'
|
||||
const owner = 'jolheiser'
|
||||
const repo = 'sip'
|
||||
const configurationFile = 'configs/configuration_gitea.json'
|
||||
|
||||
it('[Gitea] Verify reviewers who approved are fetched and also release information', async () => {
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_approvers.json'))
|
||||
|
||||
const giteaRepository = new GiteaRepository(token, undefined, workingDirectory)
|
||||
const releaseNotesBuilder = new ReleaseNotesBuilder(
|
||||
null, // baseUrl
|
||||
giteaRepository, // token
|
||||
workingDirectory, // repoPath
|
||||
owner, // user
|
||||
repo, // repo
|
||||
'v0.5.0', // fromTag
|
||||
'master', // toTag
|
||||
true, // includeOpen
|
||||
false, // failOnError
|
||||
false, // ignorePrePrelease
|
||||
false, // enable to fetch via commits
|
||||
true, // enable to fetch reviewers
|
||||
true, // enable to fetch tag release information
|
||||
false, // enable to fetch reviews
|
||||
false, // enable commitMode
|
||||
false, // enable exportCache
|
||||
false, // enable exportOnly
|
||||
null, // path to the cache
|
||||
configuration // configuration
|
||||
)
|
||||
|
||||
const changeLog = await releaseNotesBuilder.build()
|
||||
console.log(changeLog)
|
||||
expect(changeLog).toStrictEqual(
|
||||
`## 📦 Uncategorized
|
||||
|
||||
- Add attachment removal and change message -- (#36) [merged] ---
|
||||
- Change to vanity URL -- (#37) [merged] ---
|
||||
|
||||
|
||||
|
||||
4`
|
||||
)
|
||||
})
|
||||
|
||||
it('[Gitea] Should match generated changelog (unspecified fromTag)', async () => {
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', configurationFile))
|
||||
|
||||
@@ -681,46 +724,6 @@ it('[Gitea] Verify custom categorisation of open PRs', async () => {
|
||||
expect(changeLog).toStrictEqual(``)
|
||||
})
|
||||
|
||||
it('[Gitea] Verify reviewers who approved are fetched and also release information', async () => {
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_approvers.json'))
|
||||
|
||||
const giteaRepository = new GiteaRepository(token, undefined, workingDirectory)
|
||||
const releaseNotesBuilder = new ReleaseNotesBuilder(
|
||||
null, // baseUrl
|
||||
giteaRepository, // token
|
||||
workingDirectory, // repoPath
|
||||
owner, // user
|
||||
repo, // repo
|
||||
'v0.5.0', // fromTag
|
||||
'master', // toTag
|
||||
true, // includeOpen
|
||||
false, // failOnError
|
||||
false, // ignorePrePrelease
|
||||
false, // enable to fetch via commits
|
||||
true, // enable to fetch reviewers
|
||||
true, // enable to fetch tag release information
|
||||
false, // enable to fetch reviews
|
||||
false, // enable commitMode
|
||||
false, // enable exportCache
|
||||
false, // enable exportOnly
|
||||
null, // path to the cache
|
||||
configuration // configuration
|
||||
)
|
||||
|
||||
const changeLog = await releaseNotesBuilder.build()
|
||||
console.log(changeLog)
|
||||
expect(changeLog).toStrictEqual(
|
||||
`## 📦 Uncategorized
|
||||
|
||||
- Add attachment removal and change message -- (#36) [merged] ---
|
||||
- Change to vanity URL -- (#37) [merged] ---
|
||||
|
||||
|
||||
|
||||
4`
|
||||
)
|
||||
})
|
||||
|
||||
it('[Gitea] Fetch release information', async () => {
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_approvers.json'))
|
||||
configuration.template = '#{{FROM_TAG}}-#{{FROM_TAG_DATE}}\n#{{TO_TAG}}-#{{TO_TAG_DATE}}\n#{{DAYS_SINCE}}'
|
||||
+25
-12
@@ -1,15 +1,28 @@
|
||||
import {checkExportedData, mergeConfiguration, resolveConfiguration} from '../src/utils'
|
||||
import {buildChangelog} from '../src/transform'
|
||||
import {pullData} from '../src/pr-collector/prCollector'
|
||||
import {GiteaRepository} from '../src/repositories/GiteaRepository'
|
||||
import {checkExportedData, mergeConfiguration, resolveConfiguration} from '../../src/utils'
|
||||
import {buildChangelog} from '../../src/transform'
|
||||
import {pullData} from '../../src/pr-collector/prCollector'
|
||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
// load octokit instance
|
||||
const enablePullData = true // if false -> use cache for data
|
||||
const enablePullData = false
|
||||
/**
|
||||
* if false -> use cache for data
|
||||
* Use the below snippet to export the cache:
|
||||
*
|
||||
* writeCacheData({
|
||||
* mergedPullRequests: data.mergedPullRequests,
|
||||
* diffInfo: data.diffInfo,
|
||||
* options
|
||||
* }, 'caches/gitea_rcba_0.1.0-master_cache.json')
|
||||
*/
|
||||
|
||||
/**
|
||||
* Before starting testing, you should manually clone the repository
|
||||
* cd /tmp && git clone https://gitea.com/jolheiser/sip
|
||||
* cd /tmp && git clone https://gitea.com/mikepenz/sip
|
||||
*
|
||||
* (Forked from: https://gitea.com/jolheiser/sip)
|
||||
*/
|
||||
|
||||
const token = process.env.GITEA_TOKEN || ''
|
||||
@@ -40,7 +53,7 @@ it('[Gitea] Should have changelog (tags)', async () => {
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_0.0.2-0.0.3_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_0.5.0-master_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -78,7 +91,7 @@ it('[Gitea] Should match generated changelog (tags)', async () => {
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_0.0.1-0.0.3_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_0.5.0-master_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -117,7 +130,7 @@ it('[Gitea] Should match generated changelog (refs)', async () => {
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_5ec7a2-fa3788_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_3e49adf-894a64_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -174,7 +187,7 @@ it('[Gitea] Should match generated changelog and replace all occurrences (refs)'
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_5ec7a2-fa3788_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_3e49adf-894a64_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -236,7 +249,7 @@ it('[Gitea] Should match ordered ASC', async () => {
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_0.3.0-0.5.0_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_0.1.0-master_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -293,7 +306,7 @@ it('[Gitea] Should match ordered DESC', async () => {
|
||||
if (enablePullData) {
|
||||
data = await pullData(giteaRepository, options)
|
||||
} else {
|
||||
data = checkExportedData(false, 'caches/rcba_0.3.0-0.5.0_cache.json')
|
||||
data = checkExportedData(false, 'caches/gitea_rcba_0.1.0-master_cache.json')
|
||||
}
|
||||
const changeLog = buildChangelog(data!.diffInfo, data!.mergedPullRequests, options)
|
||||
console.log(changeLog)
|
||||
@@ -6,17 +6,19 @@ import * as fs from 'fs'
|
||||
jest.setTimeout(180000)
|
||||
|
||||
test('missing values should result in failure', () => {
|
||||
expect.assertions(1)
|
||||
|
||||
process.env['GITHUB_WORKSPACE'] = '.'
|
||||
process.env['INPUT_CONFIGURATION'] = 'configuration.json'
|
||||
process.env['INPUT_OWNER'] = undefined
|
||||
process.env['INPUT_CONFIGURATION'] = 'configs/configuration.json'
|
||||
const ip = path.join(__dirname, '..', 'lib', 'main.js')
|
||||
const options: cp.ExecSyncOptions = {
|
||||
env: process.env
|
||||
}
|
||||
try {
|
||||
cp.execSync(`node ${ip}`, options).toString()
|
||||
fail('Should not succeed, because values miss')
|
||||
} catch (error) {
|
||||
console.log(`correctly failed due to: ${error}`)
|
||||
} catch (error: any) {
|
||||
expect(true).toBe(true)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -27,6 +29,7 @@ test('complete input should succeed', () => {
|
||||
process.env['INPUT_REPO'] = 'release-changelog-builder-action'
|
||||
process.env['INPUT_FROMTAG'] = 'v0.3.0'
|
||||
process.env['INPUT_TOTAG'] = 'v0.5.0'
|
||||
process.env['INPUT_CACHE'] = 'caches/rcba_0.3.0-0.5.0_cache.json'
|
||||
|
||||
const ip = path.join(__dirname, '..', 'lib', 'main.js')
|
||||
const options: cp.ExecSyncOptions = {
|
||||
@@ -45,6 +48,7 @@ test('should write result to file', () => {
|
||||
process.env['INPUT_FROMTAG'] = 'v0.3.0'
|
||||
process.env['INPUT_TOTAG'] = 'v0.5.0'
|
||||
process.env['INPUT_OUTPUTFILE'] = 'test.md'
|
||||
process.env['INPUT_CACHE'] = 'caches/rcba_0.3.0-0.5.0_cache.json'
|
||||
|
||||
const ip = path.join(__dirname, '..', 'lib', 'main.js')
|
||||
const options: cp.ExecSyncOptions = {
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ inputs:
|
||||
cache:
|
||||
description: 'Provide the cache of a previous run. Allows to re-use collected information multiple times to generate different release notes. Requires `exportCache` to be enabled for the previous run.'
|
||||
platform:
|
||||
description: 'use this action in github or gitea or other platform'
|
||||
description: 'Defines the platform the action is run on. Available options: [`github`, `gitea`]. Defaults to `github`.'
|
||||
default: "github"
|
||||
outputs:
|
||||
changelog:
|
||||
|
||||
@@ -0,0 +1,708 @@
|
||||
{
|
||||
"mergedPullRequests": [
|
||||
{
|
||||
"number": 1,
|
||||
"title": "Clean up and polish",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/1",
|
||||
"baseBranch": "master",
|
||||
"branch": "20df4b7f69f8dc609e98e3274739b49dc756884c",
|
||||
"mergedAt": "2020-02-18T05:27:54.000Z",
|
||||
"mergeCommitSha": "427ecdb7f1f4e289cb820ce2fbafe158b9b30012",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.1.1",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-18T05:27:13.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 2,
|
||||
"title": "Add Drone and releases",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/2",
|
||||
"baseBranch": "master",
|
||||
"branch": "427ecdb7f1f4e289cb820ce2fbafe158b9b30012",
|
||||
"mergedAt": "2020-02-18T15:51:14.000Z",
|
||||
"mergeCommitSha": "5929bebe01e7b8c7c57b3c8fdfd41d4038bb85a1",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "0.2.0",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-18T15:41:58.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 6,
|
||||
"title": "Update Beaver and fix bugs",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/6",
|
||||
"baseBranch": "master",
|
||||
"branch": "5929bebe01e7b8c7c57b3c8fdfd41d4038bb85a1",
|
||||
"mergedAt": "2020-02-27T02:53:14.000Z",
|
||||
"mergeCommitSha": "bb773780df3488204df93228bdd72eb59418029b",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"bug"
|
||||
],
|
||||
"milestone": "0.2.0",
|
||||
"body": "Fixes #3 \nFixes #4 \nFixes #5",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-27T02:45:46.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 7,
|
||||
"title": "Fix PR head nil panic",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/7",
|
||||
"baseBranch": "master",
|
||||
"branch": "bb773780df3488204df93228bdd72eb59418029b",
|
||||
"mergedAt": "2020-02-27T03:03:34.000Z",
|
||||
"mergeCommitSha": "1956062791dae3e66c0c11d6fa86c59b031e51ee",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"bug"
|
||||
],
|
||||
"milestone": "0.2.0",
|
||||
"body": "When checking PR status, retrieved PRs may have a nil head if the branch has been deleted.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-27T03:01:09.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 8,
|
||||
"title": "Add search filters",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/8",
|
||||
"baseBranch": "master",
|
||||
"branch": "1956062791dae3e66c0c11d6fa86c59b031e51ee",
|
||||
"mergedAt": "2020-02-27T04:58:04.000Z",
|
||||
"mergeCommitSha": "df58f223f25edd30ce8d15328d9d99fc9f98954b",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.2.0",
|
||||
"body": "Adds search filters for state, author, labels, and milestone\n\nCheck the updated README for more details.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-27T04:39:37.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 9,
|
||||
"title": "Changelog 0.2.0",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/9",
|
||||
"baseBranch": "master",
|
||||
"branch": "df58f223f25edd30ce8d15328d9d99fc9f98954b",
|
||||
"mergedAt": "2020-02-27T05:20:31.000Z",
|
||||
"mergeCommitSha": "222dcf402b1cc0b57dbd4e2e9bc34196410c8a6b",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"docs"
|
||||
],
|
||||
"milestone": "0.2.0",
|
||||
"body": "As title",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-27T05:17:31.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 10,
|
||||
"title": "Add qualifier module",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/10",
|
||||
"baseBranch": "master",
|
||||
"branch": "222dcf402b1cc0b57dbd4e2e9bc34196410c8a6b",
|
||||
"mergedAt": "2020-03-06T04:18:38.000Z",
|
||||
"mergeCommitSha": "4490cc9888b4e39e14ce1c8fe9bdf64de348de71",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.2.1",
|
||||
"body": "Better support for search query qualifiers",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-02-28T03:33:43.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 13,
|
||||
"title": "Add create repo command",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/13",
|
||||
"baseBranch": "master",
|
||||
"branch": "4490cc9888b4e39e14ce1c8fe9bdf64de348de71",
|
||||
"mergedAt": "2020-03-06T04:21:58.000Z",
|
||||
"mergeCommitSha": "03fb319d3989c68a39c0652d8ff972e0957c5e6c",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"feature"
|
||||
],
|
||||
"milestone": "0.3.0",
|
||||
"body": "Resolves #12",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-03-06T04:17:46.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 14,
|
||||
"title": "Fix Drone release",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/14",
|
||||
"baseBranch": "master",
|
||||
"branch": "03fb319d3989c68a39c0652d8ff972e0957c5e6c",
|
||||
"mergedAt": "2020-03-31T20:17:02.000Z",
|
||||
"mergeCommitSha": "5ea204fb61cdb30501f8a6686b7132473f743b69",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "0.2.1",
|
||||
"body": "\r\nSigned-off-by: jolheiser <john.olheiser@gmail.com>",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-03-31T20:11:46.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 16,
|
||||
"title": "Add release support and CSV output",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/16",
|
||||
"baseBranch": "master",
|
||||
"branch": "5ea204fb61cdb30501f8a6686b7132473f743b69",
|
||||
"mergedAt": "2020-04-17T03:59:15.000Z",
|
||||
"mergeCommitSha": "0a6162ad05900394d381eef9ec05704b3941c5c4",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"feature"
|
||||
],
|
||||
"milestone": "0.3.0",
|
||||
"body": "Resolves #15\r\n\r\nThis PR adds support for listing and creating releases.\r\n\r\nIt also adds a `--csv <file>` flag to issue/PR/release searches, which will instead dump CSV-formatting information to the specified file.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-04-17T03:54:27.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 17,
|
||||
"title": "Imp formatting",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/17",
|
||||
"baseBranch": "master",
|
||||
"branch": "0a6162ad05900394d381eef9ec05704b3941c5c4",
|
||||
"mergedAt": "2020-05-07T01:09:33.000Z",
|
||||
"mergeCommitSha": "448e12ce38128909c32f30b29dc560ac44d1d7a5",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"docs"
|
||||
],
|
||||
"milestone": "0.3.0",
|
||||
"body": "This PR is the result of running [imp](https://gitea.com/jolheiser/imp) against the repo.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-05-07T01:07:19.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 19,
|
||||
"title": "Update Gitea SDK and other modules",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/19",
|
||||
"baseBranch": "master",
|
||||
"branch": "448e12ce38128909c32f30b29dc560ac44d1d7a5",
|
||||
"mergedAt": "2020-07-15T18:15:49.000Z",
|
||||
"mergeCommitSha": "e4303d76389f45d9d7a5da29b504200038c46eb4",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.3.0",
|
||||
"body": "As title",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-05-28T03:21:56.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 20,
|
||||
"title": "Update modules",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/20",
|
||||
"baseBranch": "master",
|
||||
"branch": "e4303d76389f45d9d7a5da29b504200038c46eb4",
|
||||
"mergedAt": "2020-09-13T03:59:45.000Z",
|
||||
"mergeCommitSha": "dac69ffbd020f83a39b8fadcf3dcb928ed0826f1",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "0.4.0",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-13T03:36:59.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 21,
|
||||
"title": "Add open functionality",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/21",
|
||||
"baseBranch": "master",
|
||||
"branch": "dac69ffbd020f83a39b8fadcf3dcb928ed0826f1",
|
||||
"mergedAt": "2020-09-13T04:34:13.000Z",
|
||||
"mergeCommitSha": "b4d7ff5775e913e3681c6c2f1009e37591a060cf",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"feature"
|
||||
],
|
||||
"milestone": "0.4.0",
|
||||
"body": "Closes #11\n\nThis PR adds functionality to open a repo/issue/PR\n\nTo open the current repo `sip open`\n\nTo open an issue `sip open 1234`\n\nTo open a different repo `sip open jolheiser/vanity`",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-13T04:23:10.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 22,
|
||||
"title": "Add changelog for 0.3.0 and 0.4.0",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/22",
|
||||
"baseBranch": "master",
|
||||
"branch": "b4d7ff5775e913e3681c6c2f1009e37591a060cf",
|
||||
"mergedAt": "2020-09-13T04:42:13.000Z",
|
||||
"mergeCommitSha": "40e256e8b9da14692f348ec10db17f773569c66f",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"docs",
|
||||
"skip-changelog"
|
||||
],
|
||||
"milestone": "0.4.0",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-13T04:41:50.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 23,
|
||||
"title": "Update Gitea SDK",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/23",
|
||||
"baseBranch": "master",
|
||||
"branch": "40e256e8b9da14692f348ec10db17f773569c66f",
|
||||
"mergedAt": "2020-09-15T18:02:46.000Z",
|
||||
"mergeCommitSha": "8db0c08253f7e30ef86a8ba67169ea4d3e4cf72b",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-15T17:57:59.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 24,
|
||||
"title": "Update repo info",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/24",
|
||||
"baseBranch": "master",
|
||||
"branch": "8db0c08253f7e30ef86a8ba67169ea4d3e4cf72b",
|
||||
"mergedAt": "2020-09-16T03:54:50.000Z",
|
||||
"mergeCommitSha": "3e49adf6047960a03f53346bbececb3ce7e0809b",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "Now that the SDK supports forks, watchers, stars, etc.\n\nThis PR updates the `sip repo` information",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-16T03:48:01.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 26,
|
||||
"title": "Add release attachments",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/26",
|
||||
"baseBranch": "master",
|
||||
"branch": "3e49adf6047960a03f53346bbececb3ce7e0809b",
|
||||
"mergedAt": "2020-09-16T18:07:32.000Z",
|
||||
"mergeCommitSha": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "Resolves #25",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-16T17:57:57.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 29,
|
||||
"title": "Refactor",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/29",
|
||||
"baseBranch": "master",
|
||||
"branch": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"mergedAt": "2020-09-17T16:25:11.000Z",
|
||||
"mergeCommitSha": "894a641ef86c444dccfa55eca457186b5e10da95",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "Fixes #27\n\nFixes #28\n\nThis PR refactors and cleans up packages.\n\nIt also scans CLI flags into variables for fewer footguns.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-17T04:11:50.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 30,
|
||||
"title": "Changelog 0.5.0",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/30",
|
||||
"baseBranch": "master",
|
||||
"branch": "894a641ef86c444dccfa55eca457186b5e10da95",
|
||||
"mergedAt": "2020-09-17T16:34:42.000Z",
|
||||
"mergeCommitSha": "cce2360f0fcec4f63c66e5b05bac25a7ba42f942",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"docs"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "## [0.5.0](https://gitea.com/jolheiser/sip/pulls?q=&type=all&state=closed&milestone=1311) - 2020-09-17\r\n\r\n<details><summary>ENHANCEMENTS</summary>\r\n\r\n* Refactor (#29)\r\n* Add release attachments (#26)\r\n* Update repo info (#24)\r\n</details>\r\n<details><summary>BUILD</summary>\r\n\r\n* Update Gitea SDK (#23)\r\n</details>\r\n",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-17T16:34:05.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 36,
|
||||
"title": "Add attachment removal and change message",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/36",
|
||||
"baseBranch": "master",
|
||||
"branch": "cce2360f0fcec4f63c66e5b05bac25a7ba42f942",
|
||||
"mergedAt": "2020-09-21T14:19:38.000Z",
|
||||
"mergeCommitSha": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.1",
|
||||
"body": "Fixes #35\r\n\r\nChanges the message to instead tell the user how many files were added/removed from the release.\r\n\r\nThis PR also adds a way to multi-select attachments to be removed from a release via `sip release attach remove` since `sip release remove` will be reserved for removing a release in the future.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-21T03:59:49.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 37,
|
||||
"title": "Change to vanity URL",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/37",
|
||||
"baseBranch": "master",
|
||||
"branch": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"mergedAt": "2020-09-21T19:21:09.000Z",
|
||||
"mergeCommitSha": "5ecbcde5180e4a3b12bdc35416c2f050cd0808f1",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-21T04:07:33.000Z",
|
||||
"status": "merged"
|
||||
}
|
||||
],
|
||||
"diffInfo": {
|
||||
"changedFiles": 43,
|
||||
"additions": 1942,
|
||||
"deletions": 418,
|
||||
"changes": 0,
|
||||
"commits": 24,
|
||||
"commitInfo": [
|
||||
{
|
||||
"sha": "427ecdb7f1f4e289cb820ce2fbafe158b9b30012",
|
||||
"summary": "Clean up and polish (#1)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-18T05:27:52.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-18T05:27:52.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "5929bebe01e7b8c7c57b3c8fdfd41d4038bb85a1",
|
||||
"summary": "Add Drone and releases (#2)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-18T15:51:10.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-18T15:51:10.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "bb773780df3488204df93228bdd72eb59418029b",
|
||||
"summary": "Update Beaver and fix bugs (#6)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-27T02:53:11.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-27T02:53:11.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "1956062791dae3e66c0c11d6fa86c59b031e51ee",
|
||||
"summary": "Fix PR head nil panic (#7)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-27T03:03:32.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-27T03:03:32.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "df58f223f25edd30ce8d15328d9d99fc9f98954b",
|
||||
"summary": "Add search filters (#8)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-27T04:58:02.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-27T04:58:02.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "222dcf402b1cc0b57dbd4e2e9bc34196410c8a6b",
|
||||
"summary": "Changelog 0.2.0 (#9)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-02-27T05:20:29.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-02-27T05:20:29.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "4490cc9888b4e39e14ce1c8fe9bdf64de348de71",
|
||||
"summary": "Add qualifier module (#10)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-03-06T04:18:36.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-03-06T04:18:36.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "03fb319d3989c68a39c0652d8ff972e0957c5e6c",
|
||||
"summary": "Add create repo command (#13)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-03-06T04:21:56.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-03-06T04:21:56.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "64b0335e0ae45a4bd264bbab008551b7820f8811",
|
||||
"summary": "Fix Drone release",
|
||||
"message": "",
|
||||
"author": "jolheiser",
|
||||
"authorDate": "2020-03-31T20:10:18.000Z",
|
||||
"committer": "jolheiser",
|
||||
"commitDate": "2020-03-31T20:10:18.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "5ea204fb61cdb30501f8a6686b7132473f743b69",
|
||||
"summary": "Merge pull request 'Fix Drone release' (#14) from drone-release into master",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-03-31T20:17:01.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-03-31T20:17:01.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "0a6162ad05900394d381eef9ec05704b3941c5c4",
|
||||
"summary": "Add release support and CSV output (#16)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-04-17T03:59:12.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-04-17T03:59:12.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "448e12ce38128909c32f30b29dc560ac44d1d7a5",
|
||||
"summary": "Imp formatting (#17)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-05-07T01:09:31.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-05-07T01:09:31.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "e4303d76389f45d9d7a5da29b504200038c46eb4",
|
||||
"summary": "Update Gitea SDK and other modules (#19)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-07-15T18:15:46.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-07-15T18:15:46.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "dac69ffbd020f83a39b8fadcf3dcb928ed0826f1",
|
||||
"summary": "Update modules (#20)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-13T03:59:43.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-13T03:59:43.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "b4d7ff5775e913e3681c6c2f1009e37591a060cf",
|
||||
"summary": "Add open functionality (#21)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-13T04:34:11.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-13T04:34:11.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "40e256e8b9da14692f348ec10db17f773569c66f",
|
||||
"summary": "Add changelog for 0.3.0 and 0.4.0 (#22)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-13T04:42:11.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-13T04:42:11.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "8db0c08253f7e30ef86a8ba67169ea4d3e4cf72b",
|
||||
"summary": "Update Gitea SDK (#23)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-15T18:02:45.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-15T18:02:45.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "3e49adf6047960a03f53346bbececb3ce7e0809b",
|
||||
"summary": "Update repo info (#24)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-16T03:54:48.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-16T03:54:48.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"summary": "Add release attachments (#26)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-16T18:07:30.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-16T18:07:30.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "894a641ef86c444dccfa55eca457186b5e10da95",
|
||||
"summary": "Refactor (#29)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-17T16:25:09.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-17T16:25:09.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "cce2360f0fcec4f63c66e5b05bac25a7ba42f942",
|
||||
"summary": "Changelog 0.5.0 (#30)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-17T16:34:40.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-17T16:34:40.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"summary": "Add attachment removal and change message (#36)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T14:19:36.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T14:19:36.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "5ecbcde5180e4a3b12bdc35416c2f050cd0808f1",
|
||||
"summary": "Change to vanity URL (#37)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T19:21:07.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T19:21:07.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "1742fcc37c35faca189eae173cd803e9623a8b80",
|
||||
"summary": "Fix drone-gitea-main (#38)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T19:30:21.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T19:30:21.000Z"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"owner": "jolheiser",
|
||||
"repo": "sip",
|
||||
"fromTag": {
|
||||
"name": "v0.1.0"
|
||||
},
|
||||
"toTag": {
|
||||
"name": "master"
|
||||
},
|
||||
"includeOpen": false,
|
||||
"failOnError": false,
|
||||
"fetchViaCommits": false,
|
||||
"fetchReviewers": false,
|
||||
"fetchReleaseInformation": false,
|
||||
"fetchReviews": false,
|
||||
"commitMode": false,
|
||||
"configuration": {
|
||||
"max_tags_to_fetch": 200,
|
||||
"max_pull_requests": 1000,
|
||||
"max_back_track_time_days": 1000,
|
||||
"exclude_merge_branches": [],
|
||||
"sort": "ASC",
|
||||
"template": "#{{CHANGELOG}}",
|
||||
"pr_template": "- #{{TITLE}}\n - PR: ##{{NUMBER}}",
|
||||
"empty_template": "- no changes",
|
||||
"categories": [
|
||||
{
|
||||
"title": "## 🚀 Features",
|
||||
"labels": [
|
||||
"add",
|
||||
"Add"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 🐛 Fixes",
|
||||
"labels": [
|
||||
"fix",
|
||||
"Fix"
|
||||
]
|
||||
}
|
||||
],
|
||||
"ignore_labels": [
|
||||
"ignore"
|
||||
],
|
||||
"label_extractor": [
|
||||
{
|
||||
"pattern": "(\\w+) (.+)",
|
||||
"target": "$1",
|
||||
"on_property": "title"
|
||||
}
|
||||
],
|
||||
"transformers": [],
|
||||
"tag_resolver": {
|
||||
"method": "semver"
|
||||
},
|
||||
"base_branches": [],
|
||||
"custom_placeholders": [],
|
||||
"trim_values": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"mergedPullRequests": [
|
||||
{
|
||||
"number": 36,
|
||||
"title": "Add attachment removal and change message",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/36",
|
||||
"baseBranch": "master",
|
||||
"branch": "cce2360f0fcec4f63c66e5b05bac25a7ba42f942",
|
||||
"mergedAt": "2020-09-21T14:19:38.000Z",
|
||||
"mergeCommitSha": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.1",
|
||||
"body": "Fixes #35\r\n\r\nChanges the message to instead tell the user how many files were added/removed from the release.\r\n\r\nThis PR also adds a way to multi-select attachments to be removed from a release via `sip release attach remove` since `sip release remove` will be reserved for removing a release in the future.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-21T03:59:49.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 37,
|
||||
"title": "Change to vanity URL",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/37",
|
||||
"baseBranch": "master",
|
||||
"branch": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"mergedAt": "2020-09-21T19:21:09.000Z",
|
||||
"mergeCommitSha": "5ecbcde5180e4a3b12bdc35416c2f050cd0808f1",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"build"
|
||||
],
|
||||
"milestone": "",
|
||||
"body": "",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-21T04:07:33.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 38,
|
||||
"title": "Fix drone-gitea-main",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/38",
|
||||
"baseBranch": "master",
|
||||
"branch": "5ecbcde5180e4a3b12bdc35416c2f050cd0808f1",
|
||||
"mergedAt": "2020-09-21T19:30:23.000Z",
|
||||
"mergeCommitSha": "1742fcc37c35faca189eae173cd803e9623a8b80",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"bug",
|
||||
"build",
|
||||
"skip-changelog"
|
||||
],
|
||||
"milestone": "0.5.1",
|
||||
"body": "No `:1` tag exists for the image, only `latest`.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-21T19:30:06.000Z",
|
||||
"status": "merged"
|
||||
}
|
||||
],
|
||||
"diffInfo": {
|
||||
"changedFiles": 24,
|
||||
"additions": 160,
|
||||
"deletions": 41,
|
||||
"changes": 0,
|
||||
"commits": 3,
|
||||
"commitInfo": [
|
||||
{
|
||||
"sha": "0bbe2e35ff5b482bae10ecf7abcd89815274c217",
|
||||
"summary": "Add attachment removal and change message (#36)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T14:19:36.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T14:19:36.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "5ecbcde5180e4a3b12bdc35416c2f050cd0808f1",
|
||||
"summary": "Change to vanity URL (#37)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T19:21:07.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T19:21:07.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "1742fcc37c35faca189eae173cd803e9623a8b80",
|
||||
"summary": "Fix drone-gitea-main (#38)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-21T19:30:21.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-21T19:30:21.000Z"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"owner": "jolheiser",
|
||||
"repo": "sip",
|
||||
"fromTag": {
|
||||
"name": "v0.5.0"
|
||||
},
|
||||
"toTag": {
|
||||
"name": "master"
|
||||
},
|
||||
"includeOpen": false,
|
||||
"failOnError": false,
|
||||
"fetchViaCommits": true,
|
||||
"fetchReviewers": false,
|
||||
"fetchReleaseInformation": false,
|
||||
"fetchReviews": false,
|
||||
"commitMode": false,
|
||||
"configuration": {
|
||||
"max_tags_to_fetch": 200,
|
||||
"max_pull_requests": 1000,
|
||||
"max_back_track_time_days": 1000,
|
||||
"exclude_merge_branches": [],
|
||||
"sort": "ASC",
|
||||
"template": "#{{CHANGELOG}}",
|
||||
"pr_template": "- #{{TITLE}}\n - PR: ##{{NUMBER}}",
|
||||
"empty_template": "- no changes",
|
||||
"categories": [
|
||||
{
|
||||
"title": "## 🚀 Features",
|
||||
"labels": [
|
||||
"add",
|
||||
"Add"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 🐛 Fixes",
|
||||
"labels": [
|
||||
"fix",
|
||||
"Fix"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 🧪 Upgrade",
|
||||
"labels": [
|
||||
"upgrade",
|
||||
"Upgrade",
|
||||
"Clean"
|
||||
]
|
||||
}
|
||||
],
|
||||
"ignore_labels": [
|
||||
"ignore"
|
||||
],
|
||||
"label_extractor": [
|
||||
{
|
||||
"pattern": "(\\w+) (.+)",
|
||||
"target": "$1",
|
||||
"on_property": "title"
|
||||
}
|
||||
],
|
||||
"transformers": [],
|
||||
"tag_resolver": {
|
||||
"method": "semver"
|
||||
},
|
||||
"base_branches": [],
|
||||
"custom_placeholders": [],
|
||||
"trim_values": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"mergedPullRequests": [
|
||||
{
|
||||
"number": 26,
|
||||
"title": "Add release attachments",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/26",
|
||||
"baseBranch": "master",
|
||||
"branch": "3e49adf6047960a03f53346bbececb3ce7e0809b",
|
||||
"mergedAt": "2020-09-16T18:07:32.000Z",
|
||||
"mergeCommitSha": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "Resolves #25",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-16T17:57:57.000Z",
|
||||
"status": "merged"
|
||||
},
|
||||
{
|
||||
"number": 29,
|
||||
"title": "Refactor",
|
||||
"htmlURL": "https://gitea.com/jolheiser/sip/pulls/29",
|
||||
"baseBranch": "master",
|
||||
"branch": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"mergedAt": "2020-09-17T16:25:11.000Z",
|
||||
"mergeCommitSha": "894a641ef86c444dccfa55eca457186b5e10da95",
|
||||
"author": "jolheiser",
|
||||
"repoName": "jolheiser/sip",
|
||||
"labels": [
|
||||
"enhancement"
|
||||
],
|
||||
"milestone": "0.5.0",
|
||||
"body": "Fixes #27\n\nFixes #28\n\nThis PR refactors and cleans up packages.\n\nIt also scans CLI flags into variables for fewer footguns.",
|
||||
"approvedReviewers": [],
|
||||
"createdAt": "2020-09-17T04:11:50.000Z",
|
||||
"status": "merged"
|
||||
}
|
||||
],
|
||||
"diffInfo": {
|
||||
"changedFiles": 36,
|
||||
"additions": 576,
|
||||
"deletions": 205,
|
||||
"changes": 0,
|
||||
"commits": 2,
|
||||
"commitInfo": [
|
||||
{
|
||||
"sha": "a51305f8162b0a5ec80387db0b5ecc8a89e209be",
|
||||
"summary": "Add release attachments (#26)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-16T18:07:30.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-16T18:07:30.000Z"
|
||||
},
|
||||
{
|
||||
"sha": "894a641ef86c444dccfa55eca457186b5e10da95",
|
||||
"summary": "Refactor (#29)",
|
||||
"message": "",
|
||||
"author": "John Olheiser",
|
||||
"authorDate": "2020-09-17T16:25:09.000Z",
|
||||
"committer": "John Olheiser",
|
||||
"commitDate": "2020-09-17T16:25:09.000Z"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"owner": "jolheiser",
|
||||
"repo": "sip",
|
||||
"fromTag": {
|
||||
"name": "3e49adf6047960a03f53346bbececb3ce7e0809b"
|
||||
},
|
||||
"toTag": {
|
||||
"name": "894a641ef86c444dccfa55eca457186b5e10da95"
|
||||
},
|
||||
"includeOpen": false,
|
||||
"failOnError": false,
|
||||
"fetchViaCommits": true,
|
||||
"fetchReviewers": false,
|
||||
"fetchReleaseInformation": false,
|
||||
"fetchReviews": false,
|
||||
"commitMode": false,
|
||||
"configuration": {
|
||||
"max_tags_to_fetch": 200,
|
||||
"max_pull_requests": 1000,
|
||||
"max_back_track_time_days": 1000,
|
||||
"exclude_merge_branches": [],
|
||||
"sort": {
|
||||
"order": "ASC",
|
||||
"on_property": "mergedAt"
|
||||
},
|
||||
"template": "#{{CHANGELOG}}",
|
||||
"pr_template": "#{{TITLE}}\n#{{NUMBER}}\n#{{URL}}\n#{{MERGED_AT}}\n#{{AUTHOR}}\n#{{LABELS}}\n#{{MILESTONE}}\n#{{BODY}}\n#{{ASSIGNEES}}\n#{{REVIEWERS}}",
|
||||
"empty_template": "- no changes",
|
||||
"categories": [
|
||||
{
|
||||
"title": "## 🚀 Features",
|
||||
"labels": [
|
||||
"feature"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 🐛 Fixes",
|
||||
"labels": [
|
||||
"fix"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 🧪 Tests",
|
||||
"labels": [
|
||||
"test"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "## 📦 Uncategorized",
|
||||
"labels": []
|
||||
}
|
||||
],
|
||||
"ignore_labels": [
|
||||
"ignore"
|
||||
],
|
||||
"label_extractor": [],
|
||||
"transformers": [],
|
||||
"tag_resolver": {
|
||||
"method": "semver"
|
||||
},
|
||||
"base_branches": [],
|
||||
"custom_placeholders": [],
|
||||
"trim_values": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+19
-4020
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
-105
@@ -302,16 +302,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
@vercel/ncc
|
||||
MIT
|
||||
Copyright 2018 ZEIT, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
agent-base
|
||||
MIT
|
||||
|
||||
@@ -520,31 +510,6 @@ Apache-2.0
|
||||
limitations under the License.
|
||||
|
||||
|
||||
cross-fetch
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Leonardo Quixadá
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
debug
|
||||
MIT
|
||||
(The MIT License)
|
||||
@@ -724,32 +689,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
node-fetch
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 David Frank
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
|
||||
once
|
||||
ISC
|
||||
The ISC License
|
||||
@@ -801,9 +740,6 @@ The above copyright notice and this permission notice shall be included in all c
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
tr46
|
||||
MIT
|
||||
|
||||
tunnel
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
@@ -878,47 +814,6 @@ The above copyright notice and this permission notice shall be included in all c
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
webidl-conversions
|
||||
BSD-2-Clause
|
||||
# The BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2014, Domenic Denicola
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
whatwg-url
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015–2016 Sebastian Mayr
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
wrappy
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Generated
-47
@@ -13,7 +13,6 @@
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@octokit/rest": "^20.0.2",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"gitea-js": "^1.20.1",
|
||||
"https-proxy-agent": "^7.0.2",
|
||||
"moment": "^2.29.4",
|
||||
@@ -2557,14 +2556,6 @@
|
||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/cross-fetch": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
|
||||
"integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
|
||||
"dependencies": {
|
||||
"node-fetch": "^2.6.12"
|
||||
}
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
@@ -5511,25 +5502,6 @@
|
||||
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/node-fetch": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
|
||||
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
|
||||
"dependencies": {
|
||||
"whatwg-url": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "4.x || >=6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"encoding": "^0.1.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"encoding": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/node-int64": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
|
||||
@@ -6618,11 +6590,6 @@
|
||||
"node": ">=8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tr46": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||
},
|
||||
"node_modules/ts-api-utils": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz",
|
||||
@@ -6973,20 +6940,6 @@
|
||||
"makeerror": "1.0.12"
|
||||
}
|
||||
},
|
||||
"node_modules/webidl-conversions": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
||||
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
|
||||
},
|
||||
"node_modules/whatwg-url": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
||||
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
||||
"dependencies": {
|
||||
"tr46": "~0.0.3",
|
||||
"webidl-conversions": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/which": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
||||
|
||||
+4
-3
@@ -6,13 +6,15 @@
|
||||
"main": "lib/main.js",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format": "prettier --write **/*.ts **/**/*.ts",
|
||||
"format-check": "prettier --check **/*.ts",
|
||||
"format-fix": "eslint --fix src/**/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"package": "ncc build --source-map --license licenses.txt",
|
||||
"test": "jest",
|
||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
|
||||
"test-github": "jest __tests__/*.test.ts",
|
||||
"test-gitea": "jest __tests__/gitea/*.test.ts",
|
||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm run test-github"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -37,7 +39,6 @@
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@octokit/rest": "^20.0.2",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"gitea-js": "^1.20.1",
|
||||
"https-proxy-agent": "^7.0.2",
|
||||
"moment": "^2.29.4",
|
||||
|
||||
+2
-1
@@ -14,9 +14,10 @@ async function run(): Promise<void> {
|
||||
function isSupportedPlatform(type: string): type is keyof typeof supportedPlatform {
|
||||
return type in supportedPlatform
|
||||
}
|
||||
core.setOutput('failed', false) // mark the action not failed by default
|
||||
|
||||
core.setOutput('failed', false) // mark the action not failed by default
|
||||
core.startGroup(`📘 Reading input values`)
|
||||
|
||||
try {
|
||||
// read in path specification, resolve github workspace, and repo path
|
||||
const platform = core.getInput('platform') || 'github'
|
||||
|
||||
@@ -194,7 +194,7 @@ export class Tags {
|
||||
|
||||
/*
|
||||
* Uses the provided filter (if available) to filter out any tags not currently relevant.
|
||||
* https://tagTransformers/mikepenz/release-changelog-builder-action/issues/566
|
||||
* https://github.com/mikepenz/release-changelog-builder-action/issues/566
|
||||
*/
|
||||
export function filterTags(tags: TagInfo[], tagResolver: TagResolver): TagInfo[] {
|
||||
const filter = tagResolver.filter
|
||||
|
||||
@@ -21,7 +21,7 @@ export interface ReleaseNotesOptions {
|
||||
fetchReviews: boolean // defines if the action should fetch the reviews for the PR.
|
||||
commitMode: boolean // defines if we use the alternative commit based mode. note: this is only partially supported
|
||||
configuration: Configuration // the configuration as defined in `configuration.ts`
|
||||
repositoryUtils: BaseRepository
|
||||
repositoryUtils: BaseRepository // the repository implementation used to generate the changelog
|
||||
}
|
||||
|
||||
export interface Data {
|
||||
|
||||
@@ -46,7 +46,7 @@ export abstract class BaseRepository {
|
||||
|
||||
abstract getReviews(owner: string, repo: string, pr: PullRequestInfo): Promise<void>
|
||||
|
||||
protected async getTagByCreateTime(repositoryPath: string, tagInfo: TagInfo) {
|
||||
protected async getTagByCreateTime(repositoryPath: string, tagInfo: TagInfo): Promise<TagInfo> {
|
||||
core.info(`⚠️ No release information found for ${tagInfo.name}, trying to retrieve tag creation time as fallback.`)
|
||||
const gitHelper = await createCommandManager(repositoryPath)
|
||||
const creationTimeString = await gitHelper.tagCreation(tagInfo.name)
|
||||
|
||||
@@ -2,12 +2,10 @@ import {BaseRepository} from './BaseRepository'
|
||||
import {TagInfo} from '../pr-collector/tags'
|
||||
import {CommentInfo, PullRequestInfo} from '../pr-collector/pullRequests'
|
||||
import {DiffInfo} from '../pr-collector/commits'
|
||||
import {Api, PullRequest, PullReview} from 'gitea-js'
|
||||
import {Api, PullRequest, PullReview, giteaApi} from 'gitea-js'
|
||||
import moment from 'moment'
|
||||
import * as core from '@actions/core'
|
||||
import {createCommandManager} from '../pr-collector/gitHelper'
|
||||
import { giteaApi } from 'gitea-js';
|
||||
import fetch from 'cross-fetch';
|
||||
interface Pulls {
|
||||
closed: PullRequest[]
|
||||
open: PullRequest[]
|
||||
@@ -23,9 +21,8 @@ export class GiteaRepository extends BaseRepository {
|
||||
constructor(token: string, url: string | undefined, repositoryPath: string) {
|
||||
super(token, url, repositoryPath)
|
||||
this.url = url || this.defaultUrl
|
||||
this.api = giteaApi(this.url,{
|
||||
token:token,
|
||||
customFetch: fetch
|
||||
this.api = giteaApi(this.url, {
|
||||
token
|
||||
})
|
||||
}
|
||||
|
||||
@@ -75,7 +72,6 @@ export class GiteaRepository extends BaseRepository {
|
||||
labels: pr.labels?.map(label => label.name) as string[],
|
||||
milestone: pr.milestone?.title || '',
|
||||
body: pr.body || '',
|
||||
|
||||
assignees: pr.assignees?.map(user => user.full_name) as string[],
|
||||
requestedReviewers: pr.requested_reviewers?.map(user => user.full_name) as string[],
|
||||
approvedReviewers: [],
|
||||
@@ -100,7 +96,7 @@ export class GiteaRepository extends BaseRepository {
|
||||
|
||||
for (const line of diffStatLines) {
|
||||
// Extract the addition and deletion counts from each line of the git diff output
|
||||
const match = line.match(/(\d+) insertions?\(\+\), (\d+) deletions?\(\-\)/)
|
||||
const match = line.match(/(\d+) insertions?\(\+\), (\d+) deletions?\(-\)/)
|
||||
if (match) {
|
||||
additionCount += parseInt(match[1], 10)
|
||||
deletionCount += parseInt(match[2], 10)
|
||||
@@ -121,8 +117,9 @@ export class GiteaRepository extends BaseRepository {
|
||||
const commitLogs = log.stdout.trim().split('\n')
|
||||
|
||||
// Process commit logs
|
||||
const commitInfo = commitLogs.map(log => {
|
||||
const [sha, authorName, authorEmail, authorDate, committerName, committerEmail, committerDate, subject] = log.split('||||')
|
||||
const commitInfo = commitLogs.map(commitLog => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [sha, authorName, authorEmail, authorDate, committerName, committerEmail, committerDate, subject] = commitLog.split('||||')
|
||||
return {
|
||||
sha,
|
||||
summary: subject,
|
||||
@@ -150,7 +147,7 @@ export class GiteaRepository extends BaseRepository {
|
||||
open: []
|
||||
}
|
||||
|
||||
private async getAllPullRequest(owner: string, repo: string, state: 'closed' | 'open', maxPullRequests: number) {
|
||||
private async getAllPullRequest(owner: string, repo: string, state: 'closed' | 'open', maxPullRequests: number): Promise<void> {
|
||||
if (GiteaRepository.pulls[state].length === 0) {
|
||||
let page = 1
|
||||
let count = 0
|
||||
@@ -164,8 +161,8 @@ export class GiteaRepository extends BaseRepository {
|
||||
})
|
||||
if (response.error === null) {
|
||||
GiteaRepository.pulls[state].push(...response.data)
|
||||
}else{
|
||||
core.error(`ℹ️ Some errors. ${response.error!!.message}`)
|
||||
} else {
|
||||
core.error(`ℹ️ Some errors. ${response.error.message}`)
|
||||
}
|
||||
page++
|
||||
count += response.data.length
|
||||
@@ -184,7 +181,7 @@ export class GiteaRepository extends BaseRepository {
|
||||
}
|
||||
}
|
||||
|
||||
core.debug(`⚠️ No more PRs retrieved from API. Fetched so far: ${mergedPRs.length}`)
|
||||
core.debug(`Completed fetching PRs from API. Fetched: ${mergedPRs.length}`)
|
||||
|
||||
return mergedPRs
|
||||
}
|
||||
@@ -206,9 +203,8 @@ export class GiteaRepository extends BaseRepository {
|
||||
for (const comment of response.data) {
|
||||
prReviews.push(this.mapComment(comment))
|
||||
}
|
||||
}else{
|
||||
|
||||
core.error(`ℹ️ Some errors. ${response.error!!.message}`)
|
||||
} else {
|
||||
core.error(`ℹ️ Some errors. ${response.error.message}`)
|
||||
}
|
||||
pr.reviews = prReviews
|
||||
}
|
||||
@@ -235,9 +231,8 @@ export class GiteaRepository extends BaseRepository {
|
||||
commit: tag.commit?.sha
|
||||
})
|
||||
}
|
||||
}else{
|
||||
|
||||
core.error(`ℹ️ Some errors. ${response.error!!.message}`)
|
||||
} else {
|
||||
core.error(`ℹ️ Some errors. ${response.error.message}`)
|
||||
}
|
||||
core.info(`ℹ️ Found ${tagsInfo.length} (fetching max: ${maxTagsToFetch}) tags from the GitHub API for ${owner}/${repo}`)
|
||||
return tagsInfo
|
||||
|
||||
+9
-1
@@ -41,13 +41,21 @@ export function writeCacheData(data: Data, cacheOutput: string | null): void {
|
||||
}
|
||||
|
||||
try {
|
||||
fs.writeFileSync(cacheFile, JSON.stringify(data))
|
||||
// use replacer to not cache the repositoryUtils (as that would contain token information)
|
||||
fs.writeFileSync(cacheFile, JSON.stringify(data, replacer))
|
||||
core.setOutput(`cache`, cacheFile)
|
||||
} catch (error) {
|
||||
core.warning(`Failed to write cache file. (${error})`)
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function replacer(key: string, value: any): any {
|
||||
if (key === 'repositoryUtils') return undefined
|
||||
if (key === 'token') return undefined
|
||||
else return value
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the exported information from a previous run of the `release-changelog-builder-action`.
|
||||
* If available, return a [ReleaseNotesData].
|
||||
|
||||
+2
-5
@@ -7,10 +7,7 @@
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
"lib": [ "ES2021.String","dom", "esnext" ] /* Enable custom `ES2021.String` extension in typescript for `replaceAll` */
|
||||
"lib": [ "ES2021.String", "dom"] /* Enable custom `ES2021.String` extension in typescript for `replaceAll` */
|
||||
},
|
||||
"exclude": ["node_modules", "**/*.test.ts",
|
||||
"src/pr-collector"
|
||||
],
|
||||
|
||||
"exclude": ["node_modules", "**/*.test.ts", "**/**/*.test.ts", "src/pr-collector"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user