@openagt/skill-github 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +4 -4
- package/package.json +2 -2
package/SKILL.md
CHANGED
|
@@ -9,14 +9,14 @@ The project's pull requests and issues are on GitHub. This skill is how you reac
|
|
|
9
9
|
|
|
10
10
|
## The command
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Run the `github` command inside your checkout, always by its full name: `npx @openagt/skill-github@0.1`. It prints JSON; a refusal exits 1 with a line on stderr; a wrong command line exits 2 with the usage.
|
|
13
13
|
|
|
14
14
|
## Your pull request
|
|
15
15
|
|
|
16
16
|
Open a pull request only when your task or the person asks for one, or asks you to publish your work. Push your branch first (your branches skill says how), then:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
npx github open --title "<one line naming what the change does>" --body "<what changed, and why>"
|
|
19
|
+
npx @openagt/skill-github@0.1 open --title "<one line naming what the change does>" --body "<what changed, and why>"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
It opens the pull request for the branch you are on and prints it in `request` (`number`, `url`). A branch that already has an open pull request gets no second one: that one is answered, with `existing` true. Add `--merge` when the work may land on its own: the pull request then merges once its checks pass, also where the repository does not allow auto-merge (`merge` in the answer says `auto-armed`, `merged` or `watching`). Add `--draft` instead for a pull request a person should look at first; with `--merge` too, `--draft` is dropped.
|
|
@@ -26,7 +26,7 @@ A pull request whose body has a line `Closes #<number>` closes that issue when i
|
|
|
26
26
|
## Reading pull requests and issues
|
|
27
27
|
|
|
28
28
|
```
|
|
29
|
-
npx github requests [--branch <b>] [--state open|merged|all] [--since <iso>]
|
|
29
|
+
npx @openagt/skill-github@0.1 requests [--branch <b>] [--state open|merged|all] [--since <iso>]
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The project's newest 50 pull requests, newest first, all states unless `--state`, only `<b>`'s with `--branch`; `--since` keeps those created since, or merged since with `--state merged`. Each has `number`, `url`, `state` (`open`, `merged`, `closed`), `title`, `draft`, `branch`, `head`, `createdAt`, and for a merged one `mergedAt` and `mergeCommit` (the commit it landed as).
|
|
@@ -36,7 +36,7 @@ For a pull request's discussion and diff, and for the project's issues, use `gh`
|
|
|
36
36
|
## Landing a pull request for a person
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npx github merge <number>
|
|
39
|
+
npx @openagt/skill-github@0.1 merge <number>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
A draft is marked ready, then the merge is armed as `--merge` arms it: `outcome` says `auto-armed`, `merged` or `watching`; a request no longer open is refused as `not-open`. Only when whoever started you asked you to land it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openagt/skill-github",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "GitHub as a skill for coding agents: the project's pull requests and issues through gh, and the one command OpenAgent and the scheduler run for the git host: requests, open, merge, home.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"./SKILL.md": "./SKILL.md"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@openagt/agent-data": "0.0.
|
|
39
|
+
"@openagt/agent-data": "0.0.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^20.0.0",
|