Skip to content

Commit

Permalink
Testing out auto as a release system (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Apr 19, 2020
1 parent fed7d38 commit 39667ec
Show file tree
Hide file tree
Showing 11 changed files with 1,806 additions and 3,238 deletions.
14 changes: 14 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"projectName": "gitbeaker",
"projectOwner": "Justin Dalrymple",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 50,
"commit": false,
"commitConvention": "angular",
"contributors": [],
"contributorsPerLine": 7
}
55 changes: 55 additions & 0 deletions .autorc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins:
- npm
- released
- first-time-contributor
- all-contributors

labels:
- name: breaking
changelogTitle: 💥 Breaking Change
description: Increment the major version when merged
releaseType: major

- name: feature
changelogTitle: 💥 Feature
description: A new feature addtion
releaseType: minor

- name: enhancement
changelogTitle: 🚀 Enhancement
description: Increment the minor version when merged
releaseType: minor

- name: bug
changelogTitle: 🐛 Bug Fix
description: Fixing a minor bug
releaseType: minor

- name: patch
changelogTitle: 🤷 Misc
description: Increment the patch version when merged
releaseType: patch

- name: security
changelogTitle: 🏿‍♀️ Security
description: Changes improve the code security
releaseType: patch

- name: technical debt
changelogTitle: 👷🏼‍♀️ Technical Debt
description: Changes that affect the internal code, improving performance/quaility
releaseType: patch

- name: dependencies
changelogTitle: 🔩 Dependencies
description: Dependencies Updates
releaseType: none

- name: documentation
changelogTitle: 📝 Documentation
description: Changes only affect the documentation
releaseType: none

- name: skip-release
description: Preserve the current version when merged
releaseType: skip
12 changes: 0 additions & 12 deletions .commitlintrc.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ coverage
.rpt2_cache
.idea
.DS_Store
yarn-error.log
yarn-error.log
.env
1 change: 0 additions & 1 deletion .huskyrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
hooks:
pre-commit: 'lint-staged'
commit-msg: 'commitlint -E HUSKY_GIT_PARAMS'
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

15 changes: 0 additions & 15 deletions .releaserc.yml

This file was deleted.

37 changes: 22 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<div align="center">
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<br>
<img alt="gitbeaker" src=".github/ASSETS/header.svg">
</div>
Expand All @@ -20,8 +23,8 @@
<img src="https://david-dm.org/jdalrymple/gitbeaker/dev-status.svg.svg" alt="Dev Dependency Status" />
</a>
<img src="https://flat.badgen.net/dependabot/jdalrymple/gitbeaker?icon=dependabot" alt="Dependabot Badge" />
<a href="https://github.com/semantic-release/semantic-release">
<img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="Semantic Release">
<a href="https://github.com/intuit/auto">
<img src="https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto" alt="Auto">
</a>
<a href="http://commitizen.github.io/cz-cli/">
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen">
Expand Down Expand Up @@ -94,11 +97,14 @@ const { Gitlab } = require('@gitbeaker/node');

**Browser**

```html
<script src="node_modules/@gitbeaker/browser/dist/index.js" />
<script>
const { Gitlab } = gitbeaker;
...
```javascript
// ES6 (>=node 10.16.0 LTS)
import { Gitlab } from '@gitbeaker/browser'; // All Resources
import { Projects } from '@gitbeaker/browser'; // Just the Project Resource
//...etc

// ES5, assuming native or polyfilled Promise is available
const { Gitlab } = require('@gitbeaker/browser');
```

Instantiate the library using a basic token created in your [Gitlab Profile](https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html)
Expand Down Expand Up @@ -399,15 +405,8 @@ const api = new Gitlab({
let users = await api.Users.all();

// Or using Promise-Then notation
api.Projects.all().then(projects => {
api.Projects.all().then((projects) => {
console.log(projects);
for (let project of projects) {
// Listing project members(including inherited members)
// see. https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project-including-inherited-members
api.ProjectMembers.all(project.id, { includeInherited: true }).then(members => {
console.log(members);
});
}
});
```

Expand Down Expand Up @@ -619,6 +618,14 @@ PERSONAL_ACCESS_TOKEN='abcdefg' GITLAB_URL='http://localhost:8080' npm run test

This started as a fork from [node-gitlab-legacy](https://github.com/node-gitlab/node-gitlab-legacy) but I ended up rewriting much of the code. Here are the original work's [contributors](https://github.com/node-gitlab/node-gitlab-legacy#contributors).

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

- [Dylan DesRosier](https://github.com/ddesrosier)
- [Mike Wyatt](https://github.com/mikew)
- [Cory Zibeill](https://github.com/coryzibell)
Expand Down
13 changes: 1 addition & 12 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
{
"packages": ["packages/*"],
"version": "14.2.2",
"npmClient": "yarn",
"useWorkspaces": true,
"tagVersionPrefix": "",
"command": {
"publish": {
"createRelease": "github",
"conventionalCommits": true,
"message": "chore: Release %s"
},
"version": {
"push": false
}
}
"version": "17.0.1"
}
48 changes: 20 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,31 @@
"bugs": {
"url": "https://github.com/jdalrymple/gitbeaker/issues"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"repository": "github:jdalrymple/gitbeaker",
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@commitlint/config-lerna-scopes": "^8.3.4",
"@semantic-release/changelog": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^25.1.4",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"@auto-it/all-contributors": "^9.28.0",
"@auto-it/first-time-contributor": "^9.28.0",
"@auto-it/released": "^9.28.0",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"all-contributors-cli": "^6.14.2",
"auto": "^9.28.0",
"codecov": "^3.6.5",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.3",
"got": "^10.7.0",
"husky": "^4.2.3",
"jest": "^25.1.0",
"husky": "^4.2.5",
"jest": "^25.3.0",
"jest-extended": "^0.11.5",
"lerna": "^3.20.2",
"lint-staged": "^10.0.9",
"prettier": "^2.0.2",
"semantic-release": "^17.0.4",
"semantic-release-npmx": "^1.1.0",
"ts-jest": "^25.2.1",
"lint-staged": "^10.1.6",
"prettier": "^2.0.4",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3"
},
"private": true,
Expand All @@ -50,9 +41,10 @@
"lint:fix": "prettier --write 'packages/**/{src,test}/**/*.ts' && eslint 'packages/**/{src,test}/**/*/*.ts' --fix",
"test:integration": "jest test/integration",
"test:unit": "jest test/unit",
"commit": "git-cz --retry",
"prepublishOnly": "lerna run build",
"release": "semantic-release --no-ci"
"release": "auto shipit",
"info": "auto info"
},
"version": "17.0.1"
"version": "17.0.1",
"author": "Justin Dalrymple <justin.s.dalrymple@gmail.com>",
"name": "gitbeaker"
}
Loading

0 comments on commit 39667ec

Please sign in to comment.