Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
41a0ff1
docs(README): remove WIP note
gr2m Nov 11, 2019
16b01d4
build(package): initial version
gr2m Nov 11, 2019
1f15c6a
build(package): lock file
gr2m Nov 11, 2019
9e67334
build(gitignore): coverage, node_modules, pkg
gr2m Nov 11, 2019
6067750
build(typescript): configuration for pika
gr2m Nov 11, 2019
93de72f
test: initial version
gr2m Nov 11, 2019
bb936e2
feat: initial version
gr2m Nov 11, 2019
bddd263
docs(README): badges
gr2m Nov 11, 2019
257e8f5
docs(README): usage
gr2m Nov 11, 2019
3ae97e1
ci(release): initial version
gr2m Nov 11, 2019
40098cd
ci(test): initial version
gr2m Nov 11, 2019
19c0be8
docs(README): prettier style
gr2m Nov 11, 2019
7fb0d39
docs(CONTRIBUTING): install package from pull request
gr2m Nov 11, 2019
fab39c0
build(package): fetch-mock
gr2m Nov 11, 2019
df9cd44
build(package): lock file
gr2m Nov 11, 2019
51c8e43
test: README usage example
gr2m Nov 11, 2019
f31a624
docs(README): .rest. namespace for endpoint methods
gr2m Nov 11, 2019
545ee4f
build(package): add @octokit/core as peerDependency
gr2m Nov 17, 2019
8f38220
build(package): @octokit/types
gr2m Nov 17, 2019
ab14eb4
build(package): lock file
gr2m Nov 17, 2019
dd4f38e
build(package): ignore generated files when linting
gr2m Nov 18, 2019
6d21ef4
build(package): deprecation, sort-keys
gr2m Nov 19, 2019
aea2898
build(package): lock file
gr2m Nov 19, 2019
a9470c7
build(package): @octokit/graphql, npm-run-all, "update-endpoints" scr…
gr2m Nov 19, 2019
79fc664
build(package): lock file
gr2m Nov 19, 2019
6a43b41
build: update-endpoints scripts
gr2m Nov 19, 2019
9b4ea80
test: deprecations, registerEndpoints
gr2m Nov 19, 2019
23621ec
feat: 1:1 feature parity with REST API methods from `@octokit/rest`
gr2m Nov 19, 2019
1098cfe
build(package): lock file
gr2m Nov 19, 2019
435c536
build(package): "update-endpoints:docs" script
gr2m Nov 19, 2019
f9203d6
build(update-endpoints): docs
gr2m Nov 19, 2019
a503679
docs(README): examples updated
gr2m Nov 19, 2019
d093d1d
ci(update): handle "octokit-routes-release" dispatch event
gr2m Nov 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test
on:
push:
branches:
- master
- "greenkeeper/*"
pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ['8', '10', '12']

steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm ci
- name: Test
run: npm test
40 changes: 40 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update
on:
repository_dispatch:
types: [octokit-routes-release]

jobs:
update_routes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "12.x"

# try checking out routes-update branch. Ignore error if it does not exist
- run: git checkout routes-update || true
- run: npm ci
- run: npm run update-endpoints
env:
VERSION: ${{ github.event.client_payload.version }}
- name: Create Pull Request
uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "🚧 GitHub REST API Endpoints changed"
body: |
See what changed at https://github.com/octokit/routes/releases/latest.

Make sure to update the commits so that the merge results in helpful release notes, see [Merging the Pull Request & releasing a new version](https://github.com/octokit/rest.js/blob/master/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version).

In general

- Avoid breaking changes at all costs
- If there are no typescript or code changes, use a `docs` prefix
- If there are typescript changes but no code changes, use `fix(typescript)` prefix
- If there are code changes, use `fix` if a problem was resolved, `feat` if new endpoints / parameters were added, and `feat(deprecation)` if a method was deprecated.
branch: "routes-update"
commit-message: "WIP octokit/routes updated"
author: "Octokit Bot <33075676+octokitbot@users.noreply.github.com>"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
node_modules/
pkg/
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ npm test
## Submitting the Pull Request

- Create a new branch locally.
- Make your changes in that branch to your fork repository
- Make your changes in that branch and push them to your fork
- Submit a pull request from your topic branch to the master branch on the `octokit/plugin-rest-endpoint-methods.js` repository.
- Be sure to tag any issues your pull request is taking care of / contributing to. Adding "Closes #123" to a pull request description will automatically close the issue once the pull request is merged in.

## Testing a pull request from github repo locally:

You can install `@octokit/plugin-rest-endpoint-methods` from each pull request. Replace `[PULL REQUEST NUMBER]`

```
npm install https://github.pika.dev/octokit/plugin-rest-endpoint-methods.js/pr/[PULL REQUEST NUMBER]
```

Once you are done testing, you can revert back to the default module `@octokit/plugin-rest-endpoint-methods` from npm with `npm install @octokit/plugin-rest-endpoint-methods`

## Merging the Pull Request & releasing a new version
Expand Down
Loading