Add Bounty Label Workflow and Documentation
A new GitHub Actions workflow has been introduced for appending a footer to issues that have been tagged with a 'bounty' label. The text for this footer is taken from a newly added "bounty-footer.md" file in the "docs" folder. The workflow is triggered whenever an issue is labeled, and it checks out the repository, reads the footer content, and appends it to the labeled issue. The "bounty-footer.md" and the workflow itself are also added to the solution file.
This commit is contained in:
parent
5d600467f4
commit
b421b00e16
30
.github/workflows/bounty.yml
vendored
Normal file
30
.github/workflows/bounty.yml
vendored
Normal file
|
|
@ -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
|
||||
});
|
||||
4
Elsa.sln
4
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}"
|
||||
|
|
|
|||
7
docs/bounty-footer.md
Normal file
7
docs/bounty-footer.md
Normal file
|
|
@ -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!
|
||||
Loading…
Reference in a new issue