repo-branch 0.0.4 → 0.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -82,10 +82,11 @@ if (!validateEnv()) {
82
82
  const octokit = new rest_1.Octokit({ auth: GITHUB_TOKEN });
83
83
  async function getRepositories() {
84
84
  try {
85
- const repos = await octokit.paginate(octokit.rest.repos.listForUser, {
85
+ const repos = await octokit.paginate(octokit.rest.repos.listForOrg, {
86
+ org: GITHUB_OWNER,
86
87
  username: GITHUB_OWNER,
87
88
  per_page: 100,
88
- sort: "updated",
89
+ sort: "full_name",
89
90
  });
90
91
  return repos.map((repo) => ({
91
92
  name: repo.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-branch",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Create branches across multiple GitHub repositories simultaneously",
5
5
  "main": "dist/index.js",
6
6
  "bin": {