Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/github/actions/create-branch/create-branch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "github-create-branch",
name: "Create Branch",
description: "Create a new branch in a Github repo. [See the documentation](https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#create-a-reference)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
github,
Expand Down
2 changes: 1 addition & 1 deletion components/github/actions/create-gist/create-gist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "github-create-gist",
name: "Create Gist",
description: "Allows you to add a new gist with one or more files. [See the documentation](https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#create-a-gist)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-create-issue-comment",
name: "Create Issue Comment",
description: "Create a new comment in a issue. [See the documentation](https://docs.github.com/en/rest/issues/comments#create-an-issue-comment)",
version: "0.0.19",
version: "0.0.20",
type: "action",
props: {
github,
Expand Down
2 changes: 1 addition & 1 deletion components/github/actions/create-issue/create-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "github-create-issue",
name: "Create Issue",
description: "Create a new issue in a Gihub repo. [See the documentation](https://docs.github.com/en/rest/issues/issues#create-an-issue)",
version: "0.3.1",
version: "0.3.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-create-or-update-file-contents",
name: "Create or Update File Contents",
description: "Create or update a file in a repository. [See the documentation](https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents)",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "github-create-pull-request",
name: "Create Pull Request",
description: "Creates a new pull request for a specified repository. [See the documentation](https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request)",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-create-repository",
name: "Create Repository",
description: "Creates a new repository for the authenticated user. [See the documentation](https://docs.github.com/en/rest/repos/repos#create-a-repository-for-the-authenticated-user)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "github-create-workflow-dispatch",
name: "Create Workflow Dispatch",
description: "Creates a new workflow dispatch event. [See the documentation](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "github-disable-workflow",
name: "Disable Workflow",
description: "Disables a workflow and sets the **state** of the workflow to **disabled_manually**. [See the documentation](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-enable-workflow",
name: "Enable Workflow",
description: "Enables a workflow and sets the **state** of the workflow to **active**. [See the documentation](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-get-issue-assignees",
name: "Get Issue Assignees",
description: "Get assignees for an issue in a Gihub repo. [See the documentation](https://docs.github.com/en/rest/issues/issues#get-an-issue)",
version: "0.0.19",
version: "0.0.20",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-get-repository-content",
name: "Get Repository Content",
description: "Get the content of a file or directory in a specific repository. [See the documentation](https://docs.github.com/en/rest/repos/contents#get-repository-content)",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-get-repository",
name: "Get Repository Info",
description: "Get information for a specific repository. [See the documentation](https://docs.github.com/en/rest/repos/repos#get-a-repository)",
version: "0.0.19",
version: "0.0.20",
type: "action",
props: {
github,
Expand Down
2 changes: 1 addition & 1 deletion components/github/actions/get-reviewers/get-reviewers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "github-get-reviewers",
name: "Get Reviewers",
description: "Get reviewers for a PR ([see documentation](https://docs.github.com/en/rest/pulls/reviews#list-reviews-for-a-pull-request)) or Commit SHA ([see documentation](https://docs.github.com/en/rest/commits/commits#list-pull-requests-associated-with-a-commit)).",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-get-workflow-run",
name: "Get Workflow Run",
description: "Gets a specific workflow run. [See the documentation](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
key: "github-list-gists-for-a-user",
name: "List Gists for a User",
description: "Lists public gists for the specified user. [See the documentation](https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#list-gists-for-a-user)",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
github: {

Check warning on line 11 in components/github/actions/list-gists-for-a-user/list-gists-for-a-user.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop github must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 11 in components/github/actions/list-gists-for-a-user/list-gists-for-a-user.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop github must have a description. See https://pipedream.com/docs/components/guidelines/#props
...github,
reloadProps: true,
},
Expand Down
2 changes: 1 addition & 1 deletion components/github/actions/list-releases/list-releases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-list-releases",
name: "List Releases",
description: "List releases for a repository [See the documentation](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases)",
version: "0.0.7",
version: "0.0.8",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-list-workflow-runs",
name: "List Workflow Runs",
description: "List workflowRuns for a repository [See the documentation](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
key: "github-search-issues-and-pull-requests",
name: "Search Issues and Pull Requests",
description: "Find issues and pull requests by state and keyword. [See the documentation](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests)",
version: "0.2.1",
version: "0.2.2",
type: "action",
props: {
github,
infoBox: {

Check warning on line 11 in components/github/actions/search-issues-and-pull-requests/search-issues-and-pull-requests.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoBox must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 11 in components/github/actions/search-issues-and-pull-requests/search-issues-and-pull-requests.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoBox must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: `Example query: \`bug report in:title type:issue repo:octocat/Hello-World\`
Expand Down
40 changes: 40 additions & 0 deletions components/github/actions/star-repo/star-repo.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import github from "../../github.app.mjs";
import { ConfigurationError } from "@pipedream/platform";

export default {
key: "github-star-repo",
name: "Star Repo",
description: "Star a repository. [See the docs](https://docs.github.com/en/rest/activity/starring?apiVersion=2022-11-28#star-a-repository-for-the-authenticated-user) for more info.",
version: "0.0.1",
type: "action",
props: {
github,
repoFullname: {
propDefinition: [
github,
"repoFullname",
],
},
},
async run({ $ }) {
const { repoFullname } = this;

// Verify repo exists
let repo;
try {
repo = await this.github.getRepo({
repoFullname,
});
} catch (err) {
throw new ConfigurationError(`Couldn't find the **${repoFullname}** repo. Please verify the name (\`owner/repo\` format) and try again.`);
}

// Star the repo
await this.github.starRepo({
repoFullname,
});

$.export("$summary", `Successfully starred [${repo.full_name}](${repo.html_url})`);
return repo.html_url;
},
};
2 changes: 1 addition & 1 deletion components/github/actions/update-gist/update-gist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
key: "github-update-gist",
name: "Update Gist",
description: "Allows you to update a gist's description and to update, delete, or rename gist files. [See the documentation](https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#update-a-gist)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
github,
infoAlert: {

Check warning on line 13 in components/github/actions/update-gist/update-gist.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoAlert must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 13 in components/github/actions/update-gist/update-gist.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoAlert must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. At least one of description or files is required.",
Expand Down
2 changes: 1 addition & 1 deletion components/github/actions/update-issue/update-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
key: "github-update-issue",
name: "Update Issue",
description: "Update a new issue in a Gihub repo. [See the documentation](https://docs.github.com/en/rest/issues/issues#update-an-issue)",
version: "0.2.1",
version: "0.2.2",
type: "action",
props: {
github,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "github-update-project-v2-item-status",
name: "Update Project (V2) Item Status",
description: "Update the status of an item in the selected Project (V2). [See the documentation](https://docs.github.com/en/graphql/reference/mutations#updateprojectv2itemfieldvalue)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
github,
Expand Down
13 changes: 11 additions & 2 deletions components/github/github.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
propDefinitions: {
orgName: {
label: "Organization",
description: "The name of the Github organization. The name is not case sensitive.",
description: "The name of the Github organization (not case sensitive).",
type: "string",
async options() {
const organizations = await this.getOrganizations();
Expand All @@ -25,7 +25,7 @@ export default {
},
repoFullname: {
label: "Repository",
description: "The name of the repository. The name is not case sensitive",
description: "The name of the repository (not case sensitive). The format should be `owner/repo` (for example, `PipedreamHQ/pipedream`).",
type: "string",
async options({ org }) {
const repositories = await this.getRepos({
Expand Down Expand Up @@ -888,6 +888,15 @@ export default {
per_page: 100,
});

return response.data;
},
async starRepo({
repoFullname, ...args
}) {
const response = await this._client().request(`PUT /user/starred/${repoFullname}`, {
...args,
});

return response.data;
},
},
Expand Down
2 changes: 1 addition & 1 deletion components/github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/github",
"version": "1.6.0",
"version": "1.6.1",
"description": "Pipedream Github Components",
"main": "github.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/github/sources/new-branch/new-branch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-branch",
name: "New Branch Created",
description: "Emit new event when a branch is created.",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "github-new-card-in-column",
name: "New Card in Column (Classic Projects)",
description: "Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use `New Issue with Status` trigger. [More information here](https://docs.github.com/en/issues/organizing-your-work-with-project-boards/tracking-work-with-project-boards/adding-issues-and-pull-requests-to-a-project-board)",
version: "1.0.7",
version: "1.0.8",
type: "source",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-collaborator",
name: "New Collaborator",
description: "Emit new event when a collaborator is added",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
key: "github-new-commit-comment",
name: "New Commit Comment",
description: "Emit new event when a commit comment is created",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
props: {
eventTypeInfo: {

Check warning on line 15 in components/github/sources/new-commit-comment/new-commit-comment.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop eventTypeInfo must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 15 in components/github/sources/new-commit-comment/new-commit-comment.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop eventTypeInfo must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "**Note:** commit comments are not the same as pull request comments. [See the GitHub documentation](https://docs.github.com/en/rest/guides/working-with-comments?apiVersion=2022-11-28) for more information.",
Expand Down
2 changes: 1 addition & 1 deletion components/github/sources/new-commit/new-commit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
key: "github-new-commit",
name: "New Commit",
description: "Emit new event when commits are pushed to a branch",
version: "1.0.9",
version: "1.0.10",
type: "source",
dedupe: "unique",
props: {
eventTypeInfo: {

Check warning on line 15 in components/github/sources/new-commit/new-commit.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop eventTypeInfo must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 15 in components/github/sources/new-commit/new-commit.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop eventTypeInfo must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "**Note:** one event is emitted for each individual commit, even if they are received at the same time.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-discussion",
name: "New Discussion",
description: "Emit new event when a discussion is created",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/github/sources/new-fork/new-fork.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-fork",
name: "New Fork",
description: "Emit new event when a repository is forked",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
methods: {
Expand Down
4 changes: 2 additions & 2 deletions components/github/sources/new-gist/new-gist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
...common,
key: "github-new-gist",
name: "New Gist",
description: "Emit new events when new gists are created by the authenticated user. [See the documentatoion](https://docs.github.com/en/rest/gists/gists?apiVersion=20.2.21-28#list-gists-for-the-authenticated-user)",
version: "0.2.2",
description: "Emit new events when new gists are created by the authenticated user. [See the documentatoion](https://docs.github.com/en/rest/gists/gists?apiVersion=20.2.31-28#list-gists-for-the-authenticated-user)",
version: "0.2.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-issue-with-status",
name: "Project Item Status Changed",
description: "Emit new event when a project item is tagged with a specific status. Currently supports Organization Projects only. [More information here](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project)",
version: "0.1.5",
version: "0.1.6",
type: "source",
dedupe: "unique",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/github/sources/new-label/new-label.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "github-new-label",
name: "New Label",
description: "Emit new event when a new label is created",
version: "1.0.8",
version: "1.0.9",
type: "source",
dedupe: "unique",
methods: {
Expand Down
4 changes: 2 additions & 2 deletions components/github/sources/new-mention/new-mention.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
...common,
key: "github-new-mention",
name: "New Mention",
description: "Emit new event when you are @mentioned in a new commit, comment, issue or pull request. [See the documentation](https://docs.github.com/en/rest/activity/notifications?apiVersion=20.2.21-28#list-notifications-for-the-authenticated-user)",
version: "0.2.2",
description: "Emit new event when you are @mentioned in a new commit, comment, issue or pull request. [See the documentation](https://docs.github.com/en/rest/activity/notifications?apiVersion=20.2.31-28#list-notifications-for-the-authenticated-user)",
version: "0.2.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
...common,
key: "github-new-notification",
name: "New Notification",
description: "Emit new event when the authenticated user receives a new notification. [See the documentation](https://docs.github.com/en/rest/activity/notifications?apiVersion=20.2.21-28#list-notifications-for-the-authenticated-user)",
version: "0.2.2",
description: "Emit new event when the authenticated user receives a new notification. [See the documentation](https://docs.github.com/en/rest/activity/notifications?apiVersion=20.2.31-28#list-notifications-for-the-authenticated-user)",
version: "0.2.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Loading
Loading