forked from googleapis/release-please
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use version from PR title when edited by end user #26
Merged
dgellow
merged 13 commits into
main
from
sam/sta-2086-customer-should-have-way-to-control-a-release-version-number
Sep 6, 2023
Merged
Use version from PR title when edited by end user #26
dgellow
merged 13 commits into
main
from
sam/sta-2086-customer-should-have-way-to-control-a-release-version-number
Sep 6, 2023
+1,879
−802
Commits on Sep 6, 2023
-
feat: use version from PR title when labelled as 'autorelease: user e…
…dited' That makes it possible for an end user to control the version number number without having to rely on a commit with the footnote RELEASE-AS. The label can be easily added by a GitHub Action like this one: ```yaml name: Handle release PR edits on: pull_request: types: - edited jobs: update_pr_content: name: Update pull request content if: | github.event.pull_request.state == 'open' && github.event.changes.title.from != github.event.pull_request.title && github.event.sender.login != 'stainless-bot' # this is important to avoid infinite loops runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/github-script@v6 with: script: | github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, labels: ['autorelease: user edited'] # add the label }) - name: Then here run release-please - run: ... ```
Configuration menu - View commit details
-
Copy full SHA for 6e5cc9f - Browse repository at this point
Copy the full SHA 6e5cc9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3de1ea8 - Browse repository at this point
Copy the full SHA 3de1ea8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61a4552 - Browse repository at this point
Copy the full SHA 61a4552View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32ef574 - Browse repository at this point
Copy the full SHA 32ef574View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab0b751 - Browse repository at this point
Copy the full SHA ab0b751View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60b9596 - Browse repository at this point
Copy the full SHA 60b9596View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7259a3c - Browse repository at this point
Copy the full SHA 7259a3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7394db3 - Browse repository at this point
Copy the full SHA 7394db3View commit details -
tests: ensure setting version via PR title edit works for language sp…
…ecific strategies
Configuration menu - View commit details
-
Copy full SHA for 773b4f0 - Browse repository at this point
Copy the full SHA 773b4f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53aba16 - Browse repository at this point
Copy the full SHA 53aba16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 753c465 - Browse repository at this point
Copy the full SHA 753c465View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71abec0 - Browse repository at this point
Copy the full SHA 71abec0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d150d2 - Browse repository at this point
Copy the full SHA 6d150d2View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.