Skip to content

Commit 0f4cbfc

Browse files
committed
Init repo, import project
0 parents  commit 0f4cbfc

12 files changed

Lines changed: 1064 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/daxlib/dev-daxlib-convert/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.
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 its benefits for the project 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: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Publish workflow to add a new version of a package
2+
#
3+
# This workflow creates a branch in the daxlib/daxlib GitHub repository
4+
# to add a new version of the package. After the workflow completes,
5+
# a pull request should be created manually to merge the changes.
6+
#
7+
# TODO:
8+
# - Automate the PR creation
9+
10+
name: publish-package-pr
11+
12+
on:
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
env:
19+
DAXLIB_NAME: 'DaxLib.Convert'
20+
DAXLIB_PATH: 'packages/d/daxlib.convert'
21+
22+
jobs:
23+
publish:
24+
runs-on: ubuntu-latest
25+
steps:
26+
# Checkout the current repository
27+
- name: checkout source
28+
uses: actions/checkout@v4
29+
with:
30+
repository: ${{ github.repository }}
31+
path: source-repo
32+
33+
# Checkout the upstream repository daxlib/daxlib
34+
- name: checkout upstream
35+
uses: actions/checkout@v4
36+
with:
37+
repository: daxlib/daxlib
38+
path: upstream-repo
39+
token: ${{ secrets.DAXLIB_TOKEN }} # Required to push changes
40+
41+
# Configure Git
42+
- name: git config
43+
working-directory: upstream-repo
44+
run: |
45+
git config user.name "${{ github.actor }}"
46+
git config user.email "${{ github.actor }}@users.noreply.github.com"
47+
48+
# Extract package version from manifest
49+
- name: get package version
50+
id: get_package_version
51+
working-directory: source-repo
52+
run: |
53+
VERSION=$(jq -r '.version' src/manifest.daxlib)
54+
echo "version=$VERSION" >> $GITHUB_OUTPUT
55+
echo "Package version: $VERSION"
56+
57+
# Create the feature branch for the new version
58+
- name: create release branch
59+
working-directory: upstream-repo
60+
run: git checkout -b "${{ github.event.repository.name }}/release-${{ env.DAXLIB_NAME }}-${{ steps.get_package_version.outputs.version }}"
61+
62+
# Create the package folder for the new version
63+
- name: create package folder
64+
working-directory: upstream-repo
65+
run: mkdir -p "${{ env.DAXLIB_PATH }}/${{ steps.get_package_version.outputs.version }}"
66+
67+
# Copy package files to the new folder
68+
- name: copy package files
69+
run: cp -rv source-repo/src/* "upstream-repo/${{ env.DAXLIB_PATH }}/${{ steps.get_package_version.outputs.version }}/"
70+
71+
# Stage and commit changes
72+
- name: git commit changes
73+
working-directory: upstream-repo
74+
run: git add -A && git commit -m "Add package ${{ env.DAXLIB_NAME }} version ${{ steps.get_package_version.outputs.version }}"
75+
76+
# Push branch to upstream repository
77+
- name: git push upstream
78+
working-directory: upstream-repo
79+
run: git push origin "${{ github.event.repository.name }}/release-${{ env.DAXLIB_NAME }}-${{ steps.get_package_version.outputs.version }}"
80+

0 commit comments

Comments
 (0)