-
Notifications
You must be signed in to change notification settings - Fork 262
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
Automated semantic versioning and release drafter #801
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c3adf3f
test release drafter
zulissimeta f546b67
master -> main
zulissimeta bcc8d0e
same categories for release-drafter as github release defaults
zulissimeta e74907a
add v to version
zulissimeta b54e038
version all components with the same calver and release all every tim…
zulissimeta 607b973
no release draft on PR, only on push to main
zulissimeta 5ce3ff1
ubuntu-latest
zulissimeta 5fb5f9e
release drafter for each package
zulissimeta ddafe72
add dependencies as reasonable label
zulissimeta 2a516d2
require reasonable label
zulissimeta 8943390
rename checker
zulissimeta 7533a56
latest package only for core
zulissimeta fb3e36c
small typos
zulissimeta 63062b7
small fixes to configs
zulissimeta 61ebccb
remove contributors list as it already shows up in the release
zulissimeta 4a81c82
small change to match original tags in repo
zulissimeta 9aba163
explicit read permissions for PRs
zulissimeta 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 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,40 @@ | ||
include-paths: | ||
- packages/fairchem-core/ | ||
- src/fairchem/core/ | ||
tag-prefix: fairchem_core | ||
tag-template: 'fairchem_core-$RESOLVED_VERSION' | ||
name-template: 'fairchem-core-$RESOLVED_VERSION' | ||
exclude-contributors: [github-actions] | ||
categories: | ||
- title: New Features | ||
labels: [enhancement] | ||
- title: Bug Fixes | ||
labels: [bug] | ||
- title: 🛠 Enhancements | ||
labels: [enhancement] | ||
- title: Documentation | ||
labels: [documentation] | ||
- title: Tests | ||
labels: [test] | ||
- title: Deprecations | ||
labels: [deprecation] | ||
- title: Dependencies | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ["*"] | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
- 'dependencies' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: patch | ||
template: | | ||
## What’s Changed | ||
|
||
$CHANGES |
This file contains 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,40 @@ | ||
include-paths: | ||
- src/fairchem/data/oc | ||
- packages/fairchem-data-oc | ||
tag-prefix: fairchem_data_oc | ||
tag-template: 'fairchem_data_oc-$RESOLVED_VERSION' | ||
name-template: 'fairchem_data_oc-$RESOLVED_VERSION' | ||
exclude-contributors: [github-actions] | ||
categories: | ||
- title: New Features | ||
labels: [enhancement] | ||
- title: Bug Fixes | ||
labels: [bug] | ||
- title: 🛠 Enhancements | ||
labels: [enhancement] | ||
- title: Documentation | ||
labels: [documentation] | ||
- title: Tests | ||
labels: [test] | ||
- title: Deprecations | ||
labels: [deprecation] | ||
- title: Dependencies | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ["*"] | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
- 'dependencies' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: patch | ||
template: | | ||
## What’s Changed | ||
|
||
$CHANGES |
This file contains 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,40 @@ | ||
include-paths: | ||
- src/fairchem/demo/ocpapi | ||
- packages/fairchem-demo-ocpapi | ||
tag-prefix: fairchem_demo_ocpapi | ||
tag-template: 'fairchem_demo_ocpapi-$RESOLVED_VERSION' | ||
name-template: 'fairchem_demo_ocpapi-$RESOLVED_VERSION' | ||
exclude-contributors: [github-actions] | ||
categories: | ||
- title: New Features | ||
labels: [enhancement] | ||
- title: Bug Fixes | ||
labels: [bug] | ||
- title: 🛠 Enhancements | ||
labels: [enhancement] | ||
- title: Documentation | ||
labels: [documentation] | ||
- title: Tests | ||
labels: [test] | ||
- title: Deprecations | ||
labels: [deprecation] | ||
- title: Dependencies | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ["*"] | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
- 'dependencies' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: patch | ||
template: | | ||
## What’s Changed | ||
|
||
$CHANGES |
This file contains 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,40 @@ | ||
include-paths: | ||
- src/fairchem/applications/cattsunami | ||
- packages/fairchem-applications-cattsunami/ | ||
tag-prefix: fairchem_applications_cattsunami | ||
tag-template: 'fairchem_applications_cattsunami-$RESOLVED_VERSION' | ||
name-template: 'fairchem_applications_cattsunami-$RESOLVED_VERSION' | ||
exclude-contributors: [github-actions] | ||
categories: | ||
- title: New Features | ||
labels: [enhancement] | ||
- title: Bug Fixes | ||
labels: [bug] | ||
- title: 🛠 Enhancements | ||
labels: [enhancement] | ||
- title: Documentation | ||
labels: [documentation] | ||
- title: Tests | ||
labels: [test] | ||
- title: Deprecations | ||
labels: [deprecation] | ||
- title: Dependencies | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ["*"] | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
- 'dependencies' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: patch | ||
template: | | ||
## What’s Changed | ||
|
||
$CHANGES |
This file contains 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,28 @@ | ||
name: PR label checking (major/minor/patch, enhancement, etc) | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
check-labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Labels not added (patch, minor, major, dependencies) | ||
if: > | ||
contains(github.event.pull_request.labels.*.name, 'patch') == false && | ||
contains(github.event.pull_request.labels.*.name, 'minor') == false && | ||
contains(github.event.pull_request.labels.*.name, 'major') == false && | ||
contains(github.event.pull_request.labels.*.name, 'dependencies') == false | ||
run: exit 1 | ||
- name: Labels not added (enhancement,bug,test,deprecation,dependencies,documentation,deprecation) | ||
if: > | ||
contains(github.event.pull_request.labels.*.name, 'enhancement') == false && | ||
contains(github.event.pull_request.labels.*.name, 'bug') == false && | ||
contains(github.event.pull_request.labels.*.name, 'test') == false && | ||
contains(github.event.pull_request.labels.*.name, 'deprecation') == false && | ||
contains(github.event.pull_request.labels.*.name, 'dependencies') == false && | ||
contains(github.event.pull_request.labels.*.name, 'documentation') == false && | ||
contains(github.event.pull_request.labels.*.name, 'deprecation') == false | ||
run: exit 1 |
28 changes: 28 additions & 0 deletions
28
.github/workflows/release-drafter-applications_cattsunami.yml
This file contains 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,28 @@ | ||
name: Release Drafter - fairchem_applications_cattsunami | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/fairchem/applications/cattsunami/**' | ||
- 'packages/fairchem-applications-cattsunami/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
disable-autolabeler: true | ||
config-name: release-drafter-applications_cattsunami.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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,29 @@ | ||
name: Release Drafter - fairchem_core | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/fairchem/core/**' | ||
- 'packages/fairchem-core/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
disable-autolabeler: true | ||
latest: true | ||
config-name: release-drafter-core.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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,29 @@ | ||
name: Release Drafter - fairchem_data_oc | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/fairchem/data/oc/**' | ||
- 'packages/fairchem-data-oc/**' | ||
workflow_dispatch: | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
disable-autolabeler: true | ||
config-name: release-drafter-data_oc.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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,29 @@ | ||
name: Release Drafter - fairchem_demo_ocpapi | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/fairchem/demo/ocpapi/**' | ||
- 'packages/fairchem-demo-ocpapi/**' | ||
workflow_dispatch: | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
disable-autolabeler: true | ||
config-name: release-drafter-demo_ocpapi.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we exclude dependabot as well?