Comments (2)
@thomaseizinger ๐ Yep, Actions can merge a pull request! You do it via the GitHub API, PUT /repos/:owner/:repo/pulls/:pull_number/merge
. If you're using this library, you would do something like this, using octokit.pulls.merge
:
const { GitHub } = require('@actions/toolkit')
const octokit = new GitHub(process.env.GITHUB_TOKEN)
await octokit.pulls.merge({
owner,
repo,
pull_number
})
Hope that helps! I'll close this issue, but feel free to reopen if you have further questions on this.
from toolkit.
Ah yes, of course!
Awesome, thanks :)
from toolkit.
Related Issues (20)
- Aรงฤฑk
- Multiline Problem Matcher HOT 3
- Support the latest Octokit in `@actions/github` HOT 1
- Would github write a official ssh deploy actions,third party isn't good enough HOT 2
- Core Summary should be more flexible HOT 4
- Calling glob() on a directory of 200k files produces a RangeError: Maximum call stack size exceeded
- cache: add token option
- Make all request parameters (url, method, body) accessible for RequestHandler.prepareRequest
- Upgrading from `@actions/github` V5 -> V6 caused TypeErrors within `getOcktokit()` HOT 1
- all the opt requested HOT 1
- Add documentation for @actions/core summary HOT 1
- `@actions/http-client` - unnecessary dependency upon `undici` HOT 2
- Using core.summary.addList([]) should be a no-op, instead it's broken HTML
- stderr is always sent to stdout unless failOnStdErr is true
- Custom retry codes for `@actions/http-client`
- getInput not working anymore on nodejs HOT 3
- Add an option to follow symlinks in `io.cp`
- cache: too slow cleanup HOT 6
- @actions/cache mutates the `paths` argument.
- Toolcache extracted with wrong modification timestamps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolkit.