Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rvantonder/test-auto-pr
https://github.com/rvantonder/test-auto-pr
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rvantonder/test-auto-pr
- Owner: rvantonder
- Created: 2019-05-19T10:18:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T02:10:21.000Z (over 5 years ago)
- Last Synced: 2024-12-17T06:43:45.590Z (19 days ago)
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-auto-pr
some hardcoded PR values and changes
```js
export function activate(ctx: sourcegraph.ExtensionContext): void {
const pullRequest: PullRequest = {
destinationOwner: 'rvantonder',
destinationRepo: 'test-auto-pr',
destinationBranch: 'master',
sourceBranch: 'my-feature-branch-ext',
subject: 'PR Title',
description: 'PR description'
};const changesetCommit: ChangesetCommit = {
sourceFiles: [
{ path: 'a/b/c/birb.md', content: 'henlo' },
{ path: 'README.md', content: '# test-auto-pr\nblah blah' }
],
authorName: 'Rijnard van Tonder',
authorEmail: '[email protected]',
commitMessage: 'commit message'
};
ctx.subscriptions.add(
sourcegraph.commands.registerCommand('pr.issuePullRequest', () =>
issuePullRequest({ pullRequest, changesetCommit })
)
);
}
```