Skip to content

Commit 4ccfef8

Browse files
fix: Missing changelog config
1 parent ecccef0 commit 4ccfef8

File tree

5 files changed

+125
-1
lines changed

5 files changed

+125
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
3131
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
3232

33+
3334
check-vulnerabilities:
3435
name: "Check library vulnerabilities"
3536
runs-on: ubuntu-latest

.github/workflows/label.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
name: Labeler
2+
on:
3+
pull_request:
4+
# opened, reopened, and synchronize are default for pull_request
5+
# edited - when PR title or body is changed
6+
# labeled - when labels are added to PR
7+
types: [opened, reopened, synchronize, edited, labeled]
8+
push:
9+
branches: [ main ]
10+
paths:
11+
- '../labels.yml'
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
19+
label-syncer:
20+
name: Syncer
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
steps:
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
labeler:
32+
name: Set labels
33+
needs: [label-syncer]
34+
permissions:
35+
contents: read
36+
pull-requests: write
37+
runs-on: ubuntu-latest
38+
steps:
39+
40+
# Label based on modified files
41+
- name: Label based on changed files
42+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
43+
with:
44+
repo-token: ${{ secrets.GITHUB_TOKEN }}
45+
sync-labels: true
46+
47+
# Label based on branch name
48+
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
49+
if: |
50+
startsWith(github.event.pull_request.head.ref, 'doc') ||
51+
startsWith(github.event.pull_request.head.ref, 'docs')
52+
with:
53+
labels: documentation
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
57+
if: |
58+
startsWith(github.event.pull_request.head.ref, 'maint') ||
59+
startsWith(github.event.pull_request.head.ref, 'no-ci') ||
60+
startsWith(github.event.pull_request.head.ref, 'ci')
61+
with:
62+
labels: maintenance
63+
github_token: ${{ secrets.GITHUB_TOKEN }}
64+
65+
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
66+
if: startsWith(github.event.pull_request.head.ref, 'feat')
67+
with:
68+
github_token: ${{ secrets.GITHUB_TOKEN }}
69+
labels: |
70+
enhancement
71+
72+
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
73+
if: |
74+
startsWith(github.event.pull_request.head.ref, 'fix') ||
75+
startsWith(github.event.pull_request.head.ref, 'patch')
76+
with:
77+
github_token: ${{ secrets.GITHUB_TOKEN }}
78+
labels: bug
79+
80+
commenter:
81+
runs-on: ubuntu-latest
82+
permissions:
83+
contents: read
84+
pull-requests: write
85+
steps:
86+
- name: Suggest to add labels
87+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
88+
# Execute only when no labels have been applied to the pull request
89+
if: toJSON(github.event.pull_request.labels.*.name) == '{}'
90+
with:
91+
issue-number: ${{ github.event.pull_request.number }}
92+
body: |
93+
Please add one of the following labels to add this contribution to the Release Notes :point_down:
94+
- [bug](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Abug+)
95+
- [documentation](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Adocumentation+)
96+
- [enhancement](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Aenhancement+)
97+
- [good first issue](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Agood+first+issue)
98+
- [maintenance](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Amaintenance+)
99+
- [release](https://github.com/ansys-internal/ansys-tools-common/pulls?q=label%3Arelease+)
100+
101+
changelog-fragment:
102+
name: "Create changelog fragment"
103+
needs: [labeler]
104+
permissions:
105+
contents: write
106+
pull-requests: write
107+
runs-on: ubuntu-latest
108+
steps:
109+
- uses: ansys/actions/doc-changelog@v10
110+
with:
111+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
112+
use-conventional-commits: true
113+
use-default-towncrier-config: true
114+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
115+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
This document contains the release notes for the project. See release notes for v{latest-version} and earlier
2+
in `CHANGELOG.md <https://github.com/ansys-internal/ansys-tools-common/blob/main/CHANGELOG.md>`_.
13
<!-- towncrier release notes start -->

doc/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
},
7171
}
7272

73+
linkcheck_ignore = []
74+
75+
if switcher_version != "dev":
76+
linkcheck_ignore.append(f"https://github.com/ansys-internal/ansys-tools-common/releases/tag/v{__version__}")
77+
7378
# Sphinx extensions
7479
extensions = [
7580
"sphinx.ext.intersphinx",

doc/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ The Ansys tools project is a collection of tools for the PyAnsys ecosystem.
4747
getting_started/index
4848
user_guide/index
4949
api/index
50-
contributing
50+
contributing
51+
changelog

0 commit comments

Comments
 (0)