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

scaffolder-backend-module-gitlab: add gitlab:issues:create custom action #21929

Merged
merged 19 commits into from Jan 10, 2024

Conversation

elaine-mattos
Copy link
Contributor

Hey, I just made a Pull Request!

This creates a new GitLab Scaffolder custom action that allows Gitlab users to create issues. This is a quick summary of what was done:

  • Added the action, its examples and tests;
  • Added more helper functions and its tests;
  • Added template example to the readme.md file;
  • Used the @gitbeaker/rest library as the @gitbeaker/node has been deprecated;

✔️ Checklist

  • A changeset describing the change and affected packages. ([more info]
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. ([more info]

Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
@github-actions github-actions bot added the area:scaffolder Everything and all things related to the scaffolder project area label Dec 19, 2023
@elaine-mattos elaine-mattos marked this pull request as draft December 19, 2023 06:38
@backstage-goalie
Copy link
Contributor

Thanks for the contribution!
All commits need to be DCO signed before they are reviewed. Please refer to the the DCO section in CONTRIBUTING.md or the DCO status for more info.

@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Dec 19, 2023

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/plugin-scaffolder-backend-module-gitlab plugins/scaffolder-backend-module-gitlab patch v0.2.12-next.2

Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <79633988+elaine-mattos@users.noreply.github.com>
@elaine-mattos elaine-mattos marked this pull request as ready for review December 19, 2023 13:05
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Copy link
Member

@benjdlambert benjdlambert left a comment

Choose a reason for hiding this comment

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

This is looking pretty good at first glance, just a question about the enums and if we can do those a slightly different way so that they're in the jsonschema? 🙏

.optional(),
labels: z.string({ description: 'Labels to apply' }).optional(),
issueType: z
.string({
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it's possible to use nativeEnums here instead?

https://github.com/colinhacks/zod#native-enums

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi guys,

it's done. Please let me know what you think! :)

Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Signed-off-by: Elaine Mattos <elaine.mattos@gmail.com>
Copy link
Contributor

github-actions bot commented Jan 2, 2024

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Jan 2, 2024
@github-actions github-actions bot closed this Jan 7, 2024
@elaine-mattos
Copy link
Contributor Author

Hi @benjdlambert ,

I just received the notification of this PR being closed due to lack of activity. Is there anything here that still needs to be done on my part?
Please let me know! :)

@freben
Copy link
Member

freben commented Jan 8, 2024

We've been away for vacations - reopening!

Signed-off-by: Ben Lambert <ben@blam.sh>
Copy link
Member

@benjdlambert benjdlambert left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks!

@benjdlambert benjdlambert merged commit add0352 into backstage:master Jan 10, 2024
28 of 32 checks passed
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.22.0 release, scheduled for Tue, 16 Jan 2024.

@tudi2d tudi2d mentioned this pull request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:scaffolder Everything and all things related to the scaffolder project area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants