Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from postmanlabs/release/v0.1.8
Release version v0.1.8
- Loading branch information
Showing
10 changed files
with
264 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Draft new release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: The version you want to release. Must be a valid semver version. | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
draft-new-release: | ||
if: startsWith(github.event.inputs.version, 'v') | ||
name: Draft a new release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create release branch | ||
run: git checkout -b release/${{ github.event.inputs.version }} | ||
|
||
- name: Update changelog | ||
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0 | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
|
||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email noreply@github.com | ||
- name: Bump version | ||
run: npm version ${{ github.event.inputs.version }} --git-tag-version false | ||
|
||
- name: Commit changelog and manifest files | ||
id: make-commit | ||
run: | | ||
git add CHANGELOG.md package.json package-lock.json | ||
git commit --message "Prepare release ${{ github.event.inputs.version }}" | ||
echo "::set-output name=commit::$(git rev-parse HEAD)" | ||
- name: Push new branch | ||
run: git push origin release/${{ github.event.inputs.version }} | ||
|
||
- name: Create pull request for master | ||
uses: thomaseizinger/create-pull-request@1.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
head: release/${{ github.event.inputs.version }} | ||
base: master | ||
title: "Release version ${{ github.event.inputs.version }}" | ||
reviewers: ${{ github.actor }} | ||
body: | | ||
Hi @${{ github.actor }}! | ||
This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}. | ||
I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit }}. | ||
- name: Create pull request for develop | ||
uses: thomaseizinger/create-pull-request@1.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
head: release/${{ github.event.inputs.version }} | ||
base: develop | ||
title: "Release version ${{ github.event.inputs.version }}" | ||
reviewers: ${{ github.actor }} | ||
body: | | ||
Hi @${{ github.actor }}! | ||
This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}. | ||
I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit }}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Publish new release" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: | ||
- closed | ||
|
||
jobs: | ||
release: | ||
name: Publish new release | ||
runs-on: ubuntu-latest | ||
# only merged pull requests that begin with 'release/' or 'hotfix/' must trigger this job | ||
if: github.event.pull_request.merged == true && | ||
(contains(github.event.pull_request.head.ref, 'release/') || contains(github.event.pull_request.head.ref, 'hotfix/')) | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Extract version from branch name (for release branches) | ||
if: contains(github.event.pull_request.head.ref, 'release/') | ||
run: | | ||
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | ||
VERSION=${BRANCH_NAME#release/} | ||
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Extract version from branch name (for hotfix branches) | ||
if: contains(github.event.pull_request.head.ref, 'hotfix/') | ||
run: | | ||
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | ||
VERSION=${BRANCH_NAME#hotfix/} | ||
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create Release | ||
uses: thomaseizinger/create-release@1.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target_commitish: ${{ github.event.pull_request.merge_commit_sha }} | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
name: ${{ env.RELEASE_VERSION }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [develop, master] | ||
pull_request: | ||
|
||
jobs: | ||
Unit-Tests: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x, 16.x, 18.x] | ||
steps: | ||
- name: Get Code | ||
uses: actions/checkout@v3 | ||
- name: Setup Node JS | ||
uses: actions/setup-node@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '12.x' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,66 @@ | ||
# RAML 1.0 to Postman Changelog | ||
|
||
#### v0.1.7 (March 17, 2023) | ||
* Added support for resource types. | ||
## [Unreleased] | ||
|
||
## [v0.1.8] - 2023-04-17 | ||
|
||
### Added | ||
|
||
- GitHub Actions for Release management. | ||
|
||
### Changed | ||
|
||
- Bumped up minimum Node version to 12. | ||
- Unit tests now run on Node versions 12, 16 and 18. | ||
|
||
### Fixed | ||
|
||
- Fixed an issue where conversion failed if securitySchemes are not resolved. | ||
|
||
## [0.1.7] - 2023-03-21 | ||
|
||
### Added | ||
|
||
- Added support for resource types. | ||
|
||
## Previous Releases | ||
|
||
Newer releases follow the [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format. | ||
|
||
#### v0.1.6 (Oct 15, 2020) | ||
* Fixed type error "path must be string" when nonresolved includes are present. | ||
|
||
- Fixed type error "path must be string" when nonresolved includes are present. | ||
|
||
#### v0.1.5 (Jul 14, 2020) | ||
* Update folder import flow to work in web. | ||
|
||
- Update folder import flow to work in web. | ||
|
||
#### v0.1.4 (April 28, 2020) | ||
* Add a function to return meta data of a spec. | ||
|
||
- Add a function to return meta data of a spec. | ||
|
||
#### v0.1.3 (April 21, 2020) | ||
* Fixed multiple responses with same code returning example with 500 code. | ||
|
||
- Fixed multiple responses with same code returning example with 500 code. | ||
|
||
#### v0.1.2 (March 31, 2020) | ||
* Fixed default response body from object to null. | ||
|
||
- Fixed default response body from object to null. | ||
|
||
#### v0.1.1 (December 20, 2019) | ||
* Updated flow for conversion of multiple root of document files for folder import. | ||
|
||
- Updated flow for conversion of multiple root of document files for folder import. | ||
|
||
#### v0.1.0 (November 29, 2019) | ||
* npm module published | ||
|
||
- npm module published | ||
|
||
#### v0.0.1 (November 28, 2019) | ||
* Base release | ||
|
||
- Base release | ||
|
||
[Unreleased]: https://github.com/postmanlabs/raml1-to-postman/compare/v0.1.8...HEAD | ||
|
||
[v0.1.8]: https://github.com/postmanlabs/raml1-to-postman/compare/0.1.7...v0.1.8 | ||
|
||
[0.1.7]: https://github.com/postmanlabs/raml1-to-postman/compare/0.1.6...0.1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#%RAML 1.0 | ||
title: Unresolved SecuritySchemes | ||
mediaType: application/json | ||
description: This is a simple raml API where resources point to missing securitySchemes. | ||
version: v3 | ||
baseUri: https://api.BasicRamlAPI.com/{version} | ||
securedBy: basic | ||
/users: | ||
/search: | ||
get: | ||
responses: | ||
201: | ||
body: | ||
application/json: | ||
properties: | ||
groupName: | ||
default: groupName example | ||
deptCode: | ||
type: number | ||
default: 12345 | ||
headers: | ||
Location: | ||
example: /invoices/45612 | ||
Header: | ||
example: Bangalore | ||
post: | ||
body: | ||
properties: | ||
firstname: string | ||
lastname: string | ||
age: number | ||
example: | ||
firstname: someName | ||
lastname: someLastName | ||
age: 10 | ||
headers: | ||
myHeader: | ||
example: headerExample | ||
SomeOtherHeader: | ||
example: OtherExample |
Oops, something went wrong.