-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from creativecommons/python-track-issues-and-…
…pull-requests Track issues and pull requests using new Python script
- Loading branch information
Showing
9 changed files
with
223 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,12 @@ | ||
name: Manage Issues in Projects | ||
name: Manage issues and pull requests in projects | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "45 * * * *" # Hourly at 45 minutes past the hour (**:45) | ||
jobs: | ||
|
||
add_issues_to_project: | ||
name: Track new issues in Backlog | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Track all issues | ||
uses: dhruvkb/[email protected] | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
ORG_NAME: 'creativecommons' | ||
PROJECT_NUMBER: 10 # Backlog | ||
COLUMN_NAME: 'Pending Review' | ||
EXCLUDED_PROJECT_NUMBER: 7 # Active sprint | ||
ISSUE_TYPE: 'issue' | ||
INTERVAL: 1 | ||
INTERVAL_UNIT: 'h' | ||
|
||
add_prs_to_project: | ||
name: Track PRs in Active Sprint | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Track all PRs | ||
uses: dhruvkb/[email protected] | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
ORG_NAME: 'creativecommons' | ||
PROJECT_NUMBER: 7 # Active sprint | ||
COLUMN_NAME: 'Code Review' | ||
ISSUE_TYPE: 'pr' | ||
INTERVAL: 1 | ||
INTERVAL_UNIT: 'd' | ||
|
||
move_closed_to_done: | ||
name: Move closed issues to Done | ||
manage_issues_and_pull_requests: | ||
name: Manage issues and pull requests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
@@ -62,8 +29,14 @@ jobs: | |
run: | | ||
pipenv sync --dev --system | ||
- name: run script to move closed issues to Done | ||
- name: 'run script to move closed issues to Active Sprint: Done' | ||
run: | | ||
./move_closed_issues.py | ||
env: | ||
ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
|
||
- name: run script to track open issues and pull requests | ||
run: | | ||
./track_issues_and_pull_requests.py | ||
env: | ||
ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: | ||
- main | ||
jobs: | ||
build: | ||
normalize_repos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python 3.11 | ||
|
@@ -34,7 +34,7 @@ jobs: | |
with: | ||
name: invalid-issue-report | ||
path: /tmp/invalid_issues.yml | ||
- uses: gautamkrishnar/keepalive-workflow@master | ||
- uses: gautamkrishnar/keepalive-workflow@v1 | ||
with: | ||
committer_username: cc-open-source-bot | ||
committer_email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
branches: | ||
- main | ||
jobs: | ||
build: | ||
push_data: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python 3.11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.