Skip to content

Commit

Permalink
docs: emoji in value field (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinonov committed Dec 30, 2021
1 parent 9d1390b commit c9c730e
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,63 +55,70 @@ on:
- reopened
- review_requested
- closed

# map fields with customized labels
env:
todo: Todo ✏️
done: Done ✅
in_progress: In Progress 🚧

jobs:
issue_opened_or_reopened:
name: issue_opened_or_reopened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: 'Move issue to "Todo"'
- name: Move issue to ${{ env.todo }}
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
user: sample-user
# organization: sample-org
project_id: 1
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Todo" # Target status
status_value: ${{ env.todo }} # Target status
issue_closed:
name: issue_closed
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: 'Moved issue to "Done"'
- name: Moved issue to ${{ env.done }}
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
user: sample-user
# organization: sample-org
project_id: 1
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Done" # Target status
status_value: ${{ env.done }} # Target status
pr_opened_or_reopened_or_reviewrequested:
name: pr_opened_or_reopened_or_reviewrequested
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested')
steps:
- name: 'Move PR to "In Progress"'
- name: Move PR to ${{ env.in_progress }}
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
user: sample-user
# organization: sample-org
project_id: 1
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "In Progress" # Target status
status_value: ${{ env.in_progress }} # Target status
pr_closed:
name: pr_closed
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'closed'
steps:
- name: 'Move PR to "Closed"'
- name: Move PR to ${{ env.done }}
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
user: sample-user
# organization: sample-org
project_id: 1
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "Done" # Target status
status_value: ${{ env.done }} # Target status
```

## Detailed example
Expand Down

0 comments on commit c9c730e

Please sign in to comment.