Skip to content

Commit

Permalink
Merge branch 'main' into version_switch
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen authored Sep 30, 2022
2 parents ed7f863 + f13b125 commit 266edf0
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "Features"
labels:
- "feature"
- "enhancement"
- title: "Bug Fixes"
labels:
- "bug"
- title: "Maintenance"
label: "chore"
change-template: "- $TITLE @$AUTHOR ([#$NUMBER]($URL))"
change-title-escapes: '\<*_&#@'
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "feature"
- "enhancement"
default: patch
exclude-labels:
- "skip-changelog"
template: |
## Changes
$CHANGES
34 changes: 34 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ def setup(app):
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
html_theme_options = {
'repository_url': 'https://github.com/xarray-contrib/xbatcher',
'use_repository_button': True,
'use_issues_button': True,
}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand Down

0 comments on commit 266edf0

Please sign in to comment.