Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create lock GitHub Action #30

Merged
merged 4 commits into from
Apr 26, 2020
Merged

Conversation

mollyIV
Copy link
Member

@mollyIV mollyIV commented Jan 14, 2020

Description

This GitHub Action locks the conversations on old, closed issues and pull requests.

Changes:

Please note that this is just an action implementation. It does not take any effect itself. A new workflow which uses the action will be created in a fastlane repository.

reference to the epic: #3

Testing

name: Lock closed, inactive issues and pull requests
on:
  schedule:
  - cron: "0 0 * * *"

jobs:
  lock:
    runs-on: ubuntu-latest
    steps:
    - uses: mollyIV/github-actions/lock@github-actions-lock
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        days-before-lock: 1

image

image

The conversation on an issue and a pull request was successfully locked 🎊 🎊

@mollyIV mollyIV marked this pull request as ready for review January 28, 2020 07:31
@mollyIV mollyIV requested a review from joshdholtz March 6, 2020 16:31
@mollyIV mollyIV requested a review from janpio April 18, 2020 09:41
Copy link
Member

@janpio janpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mollyIV mollyIV merged commit b26aaa5 into fastlane:master Apr 26, 2020
@mollyIV mollyIV deleted the github-actions-lock branch April 26, 2020 06:11
mollyIV added a commit that referenced this pull request May 6, 2020
* Add `communicate-on-pull-request-merged` GitHub Action (#14)

* Add `pr-release-lifecycle` GitHub Action

* Add `merge-label` parameter to the action

* Update action's input parameters

* Rename an action to `communicate-on-pull-request-merged`

* Simplify checking if a pr was merged

* Support running action in a docker container

* Update LICENSE file and `communicate-on-pull-request-merged` Action metadata (#16)

* Move LICENSE file to the root of the project. Update `communicate-on-pull-request-merged` Action description.

* Update package metadata

* Update the documentation (#15)

* Update README.md

* Create CONTRIBUTING.md

* Fix typos and formatting

* Update Contributing.md

* Update README.md

Co-Authored-By: Jan Piotrowski <[email protected]>

* Fix typos and cosmetic changes

* Update Readme.md

* Change a sub-section title

* Add `communicate-on-pull-request-merged` docs to README

* Update CONTRIBUTING

* Update README.md

* Fixed typo and code snippet intents

* one more change to the list

* `fastlane-env-reminder` is delivered as a container and run with docker (#19)

* Add `communicate-on-pull-request-released` GitHub Action (#24)

* Create a skeleton of `communicate-on-pull-request-released` GitHub Action.
Implement adding a comment to referenced issue, removing label from a pr and adding a label to a pr.

* Create release parser

* Fix a message posted on a referenced issue.
Add a comment to a referenced pull request.
Intagrate the main logic.

* Check if a label can be removed from a pull request before removing it

* Fix parsing a labels response

* Add debug logs

* Add more debug logs

* Fix getting a pull request metadata

* Remove debugging console logs

* Add integration tests

* Restore communicate-on-pull-reuqest-merged tests

* Update README.md

* Remove a default `pr-comment` message from `communicate-on-pull-request-merged` Action (#22)

* Remove a default `pr-comment` message from `communicate-on-pull-request-merged` Action

* Update README.md file

* It is possible to remove a label from a pull request via `communicate-on-pull-request-merged` GitHub Action (#27)

* Fix incorrect example text in README's (#32)

* Create `lock` GitHub Action (#30)

* Create `lock` GitHub Action

* Fix typo in README.md

* Do not lock already locked issues

* Update README.md

Co-authored-by: Ben Winding <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants