Skip to content

Commit

Permalink
add-to-project workflow: automatically assign pr to its creator (#36)
Browse files Browse the repository at this point in the history
## Description

Add labeled PRs to PR creator

## Changes Made

Add labeled PRs to PR creator

## Related Issues

Fixes #35 

## Checklist

- [x] I have used a PR title that is descriptive enough for a release
note.
- [x] I have tested these changes locally.
- [ ] I have added appropriate tests or updated existing tests.
- [ ] I have tested these changes on a dedicated VM or a customer VM
[name of the VM]
- [x] I have added appropriate documentation or updated existing
documentation.

---------

Co-authored-by: Bot <[email protected]>
  • Loading branch information
chicco785 and Bot authored Sep 27, 2023
1 parent ead6343 commit be6a4f3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ jobs:
project-url: ${{ inputs.project-url != '' && inputs.project-url || secrets.PLATFORM_PROJECT_URL }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: ${{ inputs.labeled }}
assing-pr-to-creator:
name: Assign PR to creator
runs-on: ubuntu-latest
steps:
- name: Assign PR to creator
uses: thomaseizinger/[email protected]
if: github.event_name == 'pull_request'
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ This repository hosts [re-usable github workflows][re-usable-github-workflows].
The repository includes:

- [add-to-project](.github/workflows/add-to-project.yaml) workflow: when a new
issue or PR is added to a repository, it is also added to the
issue or PR is added to a repository, it is also added - by default - to the
[SynchroHub platform project](https://github.com/orgs/zaphiro-technologies/projects/2)
with status `new`.
or to the project defined by `project-url` input parameter with status `new`.
When a new PR is added, the PR is assigned to its creator.
- [check-pr](.github/workflows/check-pr.yaml) workflow: when a new PR is added
to a repository or any change occurs to the pr, the pr is validated to be sure
that labels are valid.
Expand Down
4 changes: 3 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# github-workflows Release Notes

## 0.0.2-dev - 2023-09-13
## 0.0.2-dev - 2023-09-27

### Features

- add-to-project workflow: automatically assign pr to its creator (PR #36 by
@chicco785)
- add-to-project workflow: make project url configurable as input parameter (PR
#33 by @chicco785)
- add-to-project workflow: make labels configurable as inputs (PR #27 by
Expand Down

0 comments on commit be6a4f3

Please sign in to comment.