forked from PipedreamHQ/pipedream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub app actions improvements (PipedreamHQ#14058)
* Create Issue adjustments + get push permission + improvements * Create Issue + async props * Get Repository improvements * Search issues/prs improvements * "Create or Update file contents" improvements * Get Repository Contents adjustments * Create Branch text adjustments * Text updates * Adding pagination to issues * Update Issue adjustments * Get Reviewers + adjustments * List Gists and Update Gist updates * Create Pull Request improvements * Version bumps * Version bumps * Update components/github/actions/create-branch/create-branch.mjs * Fix typos * Fixing 'create or update file contents' branch prop * Filtering out PRs from issueNumber prop * Adjusting branch on 'Get Repository Content' * Changing default review states to all * Fixing 'list gists for user' * Fix * Improve reviewStates prop description * Fixing syntax error in 'create or update file contents' * Adjusting branch name syntax * Fix: including branch when fetching file SHA * Version bump * Version bumps --------- Co-authored-by: Leo Vu <[email protected]>
- Loading branch information
1 parent
d6d5192
commit d4c413b
Showing
55 changed files
with
381 additions
and
314 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 |
---|---|---|
|
@@ -8,4 +8,4 @@ export default { | |
console.log(Object.keys(this.$auth)); | ||
}, | ||
}, | ||
}; | ||
}; |
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,60 @@ | ||
export default { | ||
assignees: { | ||
label: "Assignees", | ||
description: "One or more Users to assign to this issue", | ||
type: "string[]", | ||
optional: true, | ||
options: async () => { | ||
const collaborators = await this.github.getRepositoryCollaborators({ | ||
repoFullname: this.repoFullname, | ||
}); | ||
|
||
return collaborators.map(({ login }) => login); | ||
}, | ||
}, | ||
labels: { | ||
label: "Labels", | ||
description: "The label(s) to add to the issue", | ||
type: "string[]", | ||
optional: true, | ||
options: async () => { | ||
const labels = await this.github.getRepositoryLabels({ | ||
repoFullname: this.repoFullname, | ||
}); | ||
|
||
return labels.map(({ name }) => name); | ||
}, | ||
}, | ||
milestoneNumber: { | ||
type: "integer", | ||
label: "Milestone Number", | ||
description: "The number of a milestone to associate the issue with", | ||
optional: true, | ||
options: async () => { | ||
const items = await this.github.getRepositoryMilestones({ | ||
repoFullname: this.repoFullname, | ||
}); | ||
|
||
return items.map((item) => ({ | ||
label: item.title, | ||
value: +item.number, | ||
})); | ||
}, | ||
}, | ||
pullNumber: { | ||
type: "integer", | ||
label: "Pull Request Number", | ||
description: "The pull request to get reviewers for", | ||
options: async ({ page }) => { | ||
const prs = await this.github.getRepositoryPullRequests({ | ||
page: page + 1, | ||
repoFullname: this.repoFullname, | ||
}); | ||
|
||
return prs.map((pr) => ({ | ||
label: pr.title, | ||
value: +pr.number, | ||
})); | ||
}, | ||
}, | ||
}; |
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
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
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
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
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.