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(1769): [1] Add property to SCHEMA_HOOK #471

Merged

Conversation

yk634
Copy link
Contributor

@yk634 yk634 commented Dec 16, 2021

Context

To support the changes in screwdriver-cd/scm-github#200, I change the data structure associated with SCM.

Objective

  • Add property(addFiles, modifiedFiles, removedFiles) to SCHEMA_HOOK.
  • Change property name of GET_CHANGED_FILES_INPUT.

References

scm-base PR
scm-github PR
scm-gitlab PR
screwdriver PR

screwdriver-cd/screwdriver#1769 (comment)

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@yk634 yk634 changed the title [WIP] feat(1769): Add property to SCHEMA_HOOK [WIP] feat(1769): [1] Add property to SCHEMA_HOOK Dec 20, 2021
.optional()
.label('Modified files of head commit'),

removedFiles: Joi.array()
Copy link
Contributor

Choose a reason for hiding this comment

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

deleted is used in git command, so I think that it is better to use deleted instead of removed.

https://git-scm.com/docs/git-status#_output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The GitHub and GitLab webhook specification treats deleted files as removed, so I think it's better to leave them as removed.

https://docs.github.com/ja/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push

Copy link
Contributor

Choose a reason for hiding this comment

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

Okey, I see. Thank you.

@tkyi tkyi merged commit 60e1e1e into screwdriver-cd:master Jan 3, 2022
@sd-buildbot
Copy link

🎉 This PR is included in version 21.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants