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

Adds release script #1794

Merged
merged 7 commits into from
Oct 14, 2020
Merged

Adds release script #1794

merged 7 commits into from
Oct 14, 2020

Conversation

Raffo
Copy link
Contributor

@Raffo Raffo commented Sep 29, 2020

Closes #1754 .

This is largely the same script from https://github.com/cli/cli/blob/trunk/script/changelog, requires gh to be run as well. It generates a release note compliant to what we have been using in ExternalDNS till today.

The scripts must be run manually by whoever has permissions to create releases. My initial idea was to use GitHub actions today by leveraging a manually triggered workflow, but actions does not support limiting who can run workflows to specific users or groups. This means that any user with write access could potentially make a release and that's clearly not ideal. I'll wait building the automation for that for when actions will support any functionality that will allow us to limit who can do releases.

This PR also updates the documentation for the release process.

Signed-off-by: Raffaele Di Fazio <raffo@github.com>
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 29, 2020
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 29, 2020
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 8, 2020
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
@Raffo Raffo marked this pull request as ready for review October 8, 2020 13:40
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 8, 2020
@Raffo
Copy link
Contributor Author

Raffo commented Oct 8, 2020

Please review @njuettner

@Raffo Raffo added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 8, 2020
@jgrumboe
Copy link
Contributor

jgrumboe commented Oct 9, 2020

@Raffo
Does this also update the CHANGELOG.md file?

@Raffo
Copy link
Contributor Author

Raffo commented Oct 11, 2020

@jgrumboe No, I was actually thinking of getting rid of the changelog file and only use releases. We don't have the requirements that kubernetes/kubernetes has of putting together changes from multiple repos, so the changelog file isn't super useful as of today. If the community feels strongly about having a changelog file, I'm open to reconsidering this.

@seanmalloy
Copy link
Member

Adding a hold, so @njuettner can do a review.

/hold
/lgtm
/assign @njuettner

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2020
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 13, 2020
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2020
Copy link
Member

@njuettner njuettner left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2020
@njuettner njuettner removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 14, 2020
@njuettner
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njuettner, Raffo

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot merged commit 755edb4 into master Oct 14, 2020
cgroschupp pushed a commit to cgroschupp/external-dns that referenced this pull request Mar 23, 2021
* adds release script

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* save

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* scripts

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* update script

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* update docs

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* Update releaser.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a script to generate changelog on releases
5 participants