-
-
Notifications
You must be signed in to change notification settings - Fork 182
Automate the generation changelogs in text format #480
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
414b9f8
Added Automation for generating changelogs
soham30rane 4243d86
Update generate_changelog.yml, updated name of secret variable
soham30rane cabf502
Updated create_changelog.py: Removed trailing slash for (http://www.s…
soham30rane f96158d
Updated create_changelog.py: now '[First Contribution]' aligns with o…
soham30rane 38ccbd3
Added changelog for release: 10.0
github-actions[bot] e356fb9
Delete src/changelogs/sage-10.0.txt
soham30rane 331fd39
Fixed typo in create_changelog.py
soham30rane e5054df
Now only fetching 100 most recent tags instead of 1000
soham30rane 8b8fa92
Now generated changelogs don't have an empty line at the end
soham30rane dad5da3
Retrieve contributor's name from github and update conf/contributors.…
soham30rane 0bb9407
Removed unnecessary secret 'CHANGELOG_TRIGGER_SECRET'
soham30rane 790b6de
Used specific filenames, when pushing changes from the workflow
soham30rane b78b43b
Workflow should terminate when changelog is not generated
soham30rane 2c64e64
Fixed misplaced 'url' attribute in conf/contributors.xml
soham30rane ce3556c
Added changelog for release: 10.0
github-actions[bot] a57f4da
Fixed a few typos in create_changelog.py
soham30rane aa9b05c
Removed unnecessary print statement in create_changelog.py
soham30rane 286ce08
Fixed 'date_of_release' logic in create_changelog.py
soham30rane 8679ac7
Added docstrings to functions in create_changelog.py
soham30rane 387a6ce
Changed name 'PERSONAL_ACCESS_TOKEN' to 'SAGE_ACCESS_TOKEN' in genera…
soham30rane 4916927
Removed colon from auto-generated commit message in generate_changelo…
soham30rane 519e571
Improved formatting for changelog generation
soham30rane 9c268bc
Hardcoded release manager in changelog generation
soham30rane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Generate Changelog | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_tag: | ||
| description: 'Release tag of latest release' | ||
| required: true | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| process-release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Dependencies | ||
| run: pip install -r requirements.txt | ||
|
|
||
| - name: Run Script | ||
| env: | ||
| RELEASE_TAG: ${{ inputs.release_tag }} | ||
| GITHUB_PAT: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
| run: python scripts/create_changelog.py "$RELEASE_TAG" | ||
|
|
||
| - name: Commit and Push Changes | ||
| env: | ||
| RELEASE_TAG: ${{ inputs.release_tag }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git add "src/changelogs/sage-${RELEASE_TAG}.txt" | ||
| git add conf/contributors.xml | ||
| git commit -m "Added changelog for release: ${{ inputs.release_tag }}" | ||
| git push | ||
kwankyu marked this conversation as resolved.
Show resolved
Hide resolved
kwankyu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.