Skip to content

Commit 9501a81

Browse files
committed
Init repo and import project
0 parents  commit 9501a81

12 files changed

Lines changed: 796 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @albertospelta
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: 🐛 Bug Report
2+
labels: ["bug", "untriaged"]
3+
description: Report unexpected behavior or errors.
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Before opening a bug report, please search for the behavior in the existing issues.
9+
10+
---
11+
- type: textarea
12+
id: describe-problem
13+
attributes:
14+
label: Describe the problem
15+
description:
16+
Describe the issue you are experiencing. Provide a clear and concise description of what you were trying to do and what happened, including any error messages you encountered.
17+
validations:
18+
required: true
19+
- type: input
20+
id: library-version
21+
attributes:
22+
label: Library version
23+
description:
24+
Specify the version of the library you are using.
25+
validations:
26+
required: true
27+
- type: input
28+
id: powerbi-version
29+
attributes:
30+
label: Power BI version
31+
description:
32+
Specify the version of Power BI Desktop or Service you are using.
33+
- type: textarea
34+
id: steps-to-reproduce
35+
attributes:
36+
label: Steps to reproduce
37+
description: List the steps to reproduce the issue.
38+
placeholder: |
39+
1. Go to '...'
40+
2. Click on '...'
41+
3. ...
42+
4. See the error
43+
- type: textarea
44+
id: additional-context
45+
attributes:
46+
label: Additional context
47+
description:
48+
Add any other relevant context about the issue here.
49+
- type: textarea
50+
id: screenshots
51+
attributes:
52+
label: Screenshots
53+
description: Add screenshots to help explain your problem, if applicable.
54+

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 General Questions
4+
url: https://github.com/sql-bi/dev-daxlib-sample/discussions
5+
about: Please ask and answer questions as a discussion thread
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 💡 Feature Request
2+
labels: ["enhancement", "untriaged"]
3+
description: Suggest an idea or improvement
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for submitting a feature request!
9+
10+
---
11+
- type: textarea
12+
id: the-feature-request
13+
attributes:
14+
label: Feature Request
15+
description:
16+
Write a clear and concise description of the feature or problem you would like to see addressed in dev-daxlib-sample.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: proposed-solution
21+
attributes:
22+
label: Proposed Solution
23+
description: Describe your proposed solution and how it will benefit dev-daxlib-sample and its users.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: additional-context
28+
attributes:
29+
label: Additional Context
30+
description:
31+
Please include any other relevant context, such as screenshots or mockups, if applicable.

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Pull Request
2+
3+
## Description
4+
5+
<!-- Briefly describe your changes -->
6+
7+
## Related Issue
8+
9+
<!-- If applicable, reference the issue number -->
10+
11+
## Checklist
12+
13+
- [ ] The code has been tested and works as expected in Power BI
14+
- [ ] Documentation has been updated (if needed)
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Publish workflow for DaxLib.Sample package
2+
#
3+
# This workflow creates a branch in the upstream repository sql-bi/daxlib to
4+
# add a new version of the package. After execution, access the sql-bi/daxlib
5+
# repository and manually create a Pull Request from the newly created branch.
6+
#
7+
# TODO:
8+
# - Automate the PR creation
9+
10+
name: publish-daxlib-sample
11+
12+
on:
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
# Checkout the current repository
23+
- name: checkout source
24+
uses: actions/checkout@v4
25+
with:
26+
repository: ${{ github.repository }}
27+
path: source-repo
28+
29+
# Checkout the upstream repository sql-bi/daxlib
30+
- name: checkout upstream
31+
uses: actions/checkout@v4
32+
with:
33+
repository: sql-bi/daxlib
34+
path: upstream-repo
35+
token: ${{ secrets.DAXLIB_TOKEN }} # Required to push changes
36+
37+
# Configure Git
38+
- name: git config
39+
working-directory: upstream-repo
40+
run: |
41+
git config user.name "${{ github.actor }}"
42+
git config user.email "${{ github.actor }}@users.noreply.github.com"
43+
44+
# Extract package version from manifest
45+
- name: get package version
46+
id: get_package_version
47+
working-directory: source-repo
48+
run: |
49+
VERSION=$(jq -r '.version' src/manifest.daxlib)
50+
echo "version=$VERSION" >> $GITHUB_OUTPUT
51+
echo "Package version: $VERSION"
52+
53+
# Create the feature branch for the new version
54+
- name: create release branch
55+
working-directory: upstream-repo
56+
run: git checkout -b "daxlibsample/release-${{ steps.get_package_version.outputs.version }}"
57+
58+
# Create the package folder for the new version
59+
- name: create package folder
60+
working-directory: upstream-repo
61+
run: mkdir -p "packages/d/daxlib.sample/${{ steps.get_package_version.outputs.version }}"
62+
63+
# Copy package files to the new folder
64+
- name: copy package files
65+
run: cp -rv source-repo/src/* "upstream-repo/packages/d/daxlib.sample/${{ steps.get_package_version.outputs.version }}/"
66+
67+
# Stage and commit changes
68+
- name: git commit changes
69+
working-directory: upstream-repo
70+
run: git add -A && git commit -m "Add package DaxLib.Sample version ${{ steps.get_package_version.outputs.version }}"
71+
72+
# Push branch to upstream repository
73+
- name: git push upstream
74+
working-directory: upstream-repo
75+
run: git push origin "daxlibsample/release-${{ steps.get_package_version.outputs.version }}"
76+

0 commit comments

Comments
 (0)