-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typescript): set types for parameters and results/responses auto…
…magically (#32)
- Loading branch information
Showing
13 changed files
with
11,290 additions
and
226 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,39 @@ | ||
name: octokit/routes 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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
title: "🚧 GitHub REST 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 <[email protected]>" |
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
Oops, something went wrong.