Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add assignees and labels support for create issue task in GitHub component #686

Conversation

MubeenKodvavi
Copy link
Contributor

@MubeenKodvavi MubeenKodvavi commented Oct 1, 2024

Because

This commit

  • Add Labels and Assignees field in input for Create Issue Task.

…CREATE_ISSUE

- add fields to task input definition in tasks.json
- add fields to input struct for TASK_CREATE_ISSUE and use values received to create task
@MubeenKodvavi MubeenKodvavi marked this pull request as draft October 1, 2024 13:12
@MubeenKodvavi MubeenKodvavi changed the title Add assignees and labels support for create issue task in GitHub component featAdd assignees and labels support for create issue task in GitHub component Oct 1, 2024
@MubeenKodvavi MubeenKodvavi changed the title featAdd assignees and labels support for create issue task in GitHub component feat: Add assignees and labels support for create issue task in GitHub component Oct 1, 2024
…CREATE_ISSUE

- update documentation by running compogen
@MubeenKodvavi MubeenKodvavi force-pushed the MubeenKodvavi/add-assignees-and-labels-support-for-create-issue-github-component branch from 21980a9 to e568aa0 Compare October 1, 2024 13:33
@MubeenKodvavi
Copy link
Contributor Author

Test Details

Tested locally by creating a github component's create issue task and checked if assignees and labels are successfully set on github.

Pipeline Recipe:

version: v1beta

variable:
  title:
    instill-format: string
    title: Issue Title
  description:
    instill-format: string
    title: Issue Description
  assignee:
    instill-format: string
    title: Assignee
  labels:
    instill-format: array:string
    title: Labels

component:
  github-0:
    type: github
    input:
      owner: MubeenKodvavi
      repository: github_apis_test
      title: ${variable.title}
      body: ${variable.description}
      assignees:  
        - ${variable.assignee}
      labels: ${variable.labels}
    condition:
    setup:
      token: ${secret.githubtoken}
    task: TASK_CREATE_ISSUE

output:
  output:
    title: Output
    value: ${github-0.output.title}

Input:
Pasted Graphic 2
Component Output:
Pasted Graphic
Issue created on GitHub with labels and assignee added:
TEST - Bug #1

@MubeenKodvavi MubeenKodvavi marked this pull request as ready for review October 1, 2024 13:39
Copy link
Collaborator

@jvallesm jvallesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @MubeenKodvavi. The changes look good, I tested them with your sample recipe and it works like a charm ✨

@jvallesm jvallesm merged commit c1c2517 into instill-ai:main Oct 2, 2024
10 checks passed
@ShihChun-H
Copy link
Member

Hi @MubeenKodvavi Thank you so much for your contribution 🙌🏻
Please don't forget to claim your points by submitting this form, so that our team can keep track of each contribution.

donch1989 pushed a commit that referenced this pull request Oct 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.41.0-beta](v0.40.0-beta...v0.41.0-beta)
(2024-10-03)


### Features

* add `range` support for iterator implementation
([#693](#693))
([47fafdd](47fafdd))
* Add assignees and labels support for create issue task in GitHub
component
([#686](#686))
([c1c2517](c1c2517))
* **component:** add scopes to OAuth integrations
([#696](#696))
([8fd9149](8fd9149))
* **component:** update contribution guidelines
([#685](#685))
([6c42b71](6c42b71))
* support map representation for `range` in iterator
([#695](#695))
([956b1d1](956b1d1))


### Bug Fixes

* **component:** update source URL in component definition
([#694](#694))
([90ad5ce](90ad5ce))
* the fallback mechanism for handling Instill Format with subtypes
([#697](#697))
([9844756](9844756))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[GitHub] Add inputs to “Create Issue” task “priority”, “label”, "assignee"
4 participants