Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: Add github action to update discovery artifacts #1187

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

Merged
merged 4 commits into from
Apr 21, 2021

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Feb 17, 2021

This PR adds a Github Actions script to copy the discovery artifacts from googleapis/discovery-artifact-manager and create a PR which summarizes the changes.

PR #1286 contains the scripts that the Github Action will use.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 17, 2021
@parthea parthea marked this pull request as ready for review February 19, 2021 12:26
@parthea parthea requested a review from a team as a code owner February 19, 2021 12:26
@parthea parthea closed this Feb 19, 2021
@parthea parthea reopened this Feb 19, 2021
@parthea parthea force-pushed the add-github-action-to-update-discovery-artifacts branch 17 times, most recently from f2adaac to 4d02b9c Compare February 19, 2021 14:30
Copy link

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

Left a few drive by comments 👍

I'm excited to see if this works for you.

.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
changesummary.py Outdated Show resolved Hide resolved
@parthea parthea force-pushed the add-github-action-to-update-discovery-artifacts branch 6 times, most recently from dbf53cc to 0a470c7 Compare February 23, 2021 17:28
@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 8, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 21, 2021
These PR add the scripts from #1187 that are needed to update discovery artifacts using a Github action. The scripts will be removed from #1187 once all of the review comments from #1187 have been resolved.

This PR adds the following files under the `scripts/` folder
- `README.md` to provide instructions on manually updating discovery artifacts and API reference documentation.
- `buildprbody.py` creates a summary of the changes detected in discovery artifacts and writes them to `allapis.summary`.
- `changesummary.py` creates verbose change information for each API with discovery artifact changes.
- `createcommits.sh` creates git commits for each API with discovery artifact changes or reference document changes.
- `updatediscoveryartifacts.py` is the python file that can be used to update discovery artifacts.

I also moved `describe.py` under the scripts folder and modified it to save the discovery artifacts that are fetched.

TODO:
- [x] Add tests for scripts
- [x] Address review comments in #1187
@parthea parthea force-pushed the add-github-action-to-update-discovery-artifacts branch from 0bee0af to 82b80c6 Compare April 21, 2021 15:42
@parthea parthea marked this pull request as draft April 21, 2021 15:43
@parthea parthea force-pushed the add-github-action-to-update-discovery-artifacts branch 7 times, most recently from c1a1c28 to f88d4ee Compare April 21, 2021 17:28
@parthea parthea marked this pull request as ready for review April 21, 2021 17:48
@parthea parthea force-pushed the add-github-action-to-update-discovery-artifacts branch from 2affa9b to a29003e Compare April 21, 2021 17:49
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Apr 21, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 21, 2021
@parthea
Copy link
Contributor Author

parthea commented Apr 21, 2021

@busunkim96 @tswast @SurferJeffAtGoogle @JustinBeckwith This is ready for review. PTAL

@parthea
Copy link
Contributor Author

parthea commented Apr 21, 2021

@bcoe PTAL

@parthea parthea added the automerge Merge the pull request once unit tests and other checks pass. label Apr 21, 2021
@parthea parthea merged commit c9a1a8c into master Apr 21, 2021
@parthea parthea deleted the add-github-action-to-update-discovery-artifacts branch April 21, 2021 22:24
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.