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

Create pr when PR number is empty on output #1917

Closed
wants to merge 1 commit into from
Closed

Create pr when PR number is empty on output #1917

wants to merge 1 commit into from

Conversation

bigkevmcd
Copy link
Member

Changes

This changes the pullrequest resource to allow it to create PRs during the upload.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

@tekton-robot tekton-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 22, 2020
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jan 22, 2020
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign sbwsg
You can assign the PR to them by writing /assign @sbwsg in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot requested review from imjasonh and a user January 22, 2020 15:35
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 22, 2020
@bigkevmcd
Copy link
Member Author

This is for early feedback, I'd like to refactor the client that the Handler uses in the pullrequest package, so that the errPullService can be reduced.

Also, should the process for creating new PRs be more explicit?

maybe a new_pr.json file?

@ghost
Copy link

ghost commented Jan 22, 2020

Thanks for the PR. Just so you are aware - pipeline resources are going through a major redesign at the moment and aren't being promoted into the upcoming beta.

It's still totally fine to commit code to the existing pipeline resources but their usage and structure may change quite a lot over the coming months.

@bigkevmcd I noticed that you're using a forked version of go-scm here. Are you upstreaming changes from your fork? If so, consider linking out to the upstream PR as well.

/ok-to-test

/cc @wlynch

@tekton-robot tekton-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jan 22, 2020
@bigkevmcd
Copy link
Member Author

@sbwsg gotcha...

Yes, forked version, the main changes landed, but while writing the tests for this, I added some extra test functionality (to the fake driver) jenkins-x/go-scm#67 which this relies on.

The main functionality landed in jenkins-x/go-scm#63

@bigkevmcd bigkevmcd changed the title New pr when empty on output New pr when PR number is empty on output Jan 22, 2020
@bigkevmcd bigkevmcd changed the title New pr when PR number is empty on output Create pr when PR number is empty on output Jan 22, 2020
This creates new PRs in the upstream repository for pullrequest outputs, when the "Number" is 0.
@tekton-robot
Copy link
Collaborator

@bigkevmcd: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-tekton-pipeline-build-tests 0a88aa7 link /test pull-tekton-pipeline-build-tests
pull-tekton-pipeline-integration-tests 0a88aa7 link /test pull-tekton-pipeline-integration-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@bigkevmcd bigkevmcd closed this Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants