diff --git a/.github/workflows/bounty.yml b/.github/workflows/bounty.yml new file mode 100644 index 000000000..c2f5df6ed --- /dev/null +++ b/.github/workflows/bounty.yml @@ -0,0 +1,30 @@ +name: Append Footer to Issue with Bounty Label + +on: + issues: + types: [labeled] + +jobs: + append-footer: + if: github.event.label.name == 'bounty' + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Read Footer Content + id: footer + run: echo "::set-output name=content::$(cat docs/bounty-footer.md)" + + - name: Append Footer to Issue + uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const issueComment = `${{ steps.footer.outputs.content }}`; + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.name, + body: issueComment + }); diff --git a/Elsa.sln b/Elsa.sln index 671db2a9e..2b1bc6b1f 100644 --- a/Elsa.sln +++ b/Elsa.sln @@ -26,6 +26,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution", "solution", "{7D EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{0354F050-3992-4DD4-B0EE-5FBA04AC72B6}" + ProjectSection(SolutionItems) = preProject + docs\bounty-footer.md = docs\bounty-footer.md + EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "console", "console", "{873BFC3E-63C2-4495-A503-5EC05DCD84E4}" EndProject @@ -296,6 +299,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pipelines", "pipelines", "{ .github\workflows\elsa-studio.yml = .github\workflows\elsa-studio.yml .github\workflows\packages.yml = .github\workflows\packages.yml build.sh = build.sh + .github\workflows\bounty.yml = .github\workflows\bounty.yml EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{99F2B1DA-2F69-4D70-A2A3-AC985AD91EC4}" diff --git a/docs/bounty-footer.md b/docs/bounty-footer.md new file mode 100644 index 000000000..47b7f1e74 --- /dev/null +++ b/docs/bounty-footer.md @@ -0,0 +1,7 @@ +⭐ **This issue is part of the Elsa Workflows Bounty Hunting Program** ⭐ + +Interested in contributing and earning a reward for your work? This issue comes with a bounty for the first contributor to resolve it successfully within the specified time limit, as per our program rules. + +📜 **For detailed information on how to participate, submission guidelines, and the rewards process, please review our [Bounty Hunting Program Guidelines](https://github.com/elsa-workflows/elsa-core/issues/5211).** + +We appreciate your interest in improving Elsa Workflows and look forward to your innovative solutions. Happy coding! \ No newline at end of file