Skip to content

Feature - Add Version To Composite Action and Reusable Workflow - #110

Closed
oreenlivnicode wants to merge 6 commits into
mainfrom
feature-add-version-to-composite-action
Closed

oreenlivnicode wants to merge 6 commits into
mainfrom
feature-add-version-to-composite-action

Conversation

@oreenlivnicode

Copy link
Copy Markdown
Contributor

No description provided.

@oreenlivnicode
oreenlivnicode marked this pull request as draft October 30, 2023 17:07
@oreenlivnicode
oreenlivnicode marked this pull request as ready for review October 30, 2023 17:11
@oreenlivnicode oreenlivnicode changed the title Feature - Add Version To Composite Action and Reusable Workflow - WIP Feature - Add Version To Composite Action and Reusable Workflow Oct 30, 2023
@oreenlivnicode oreenlivnicode linked an issue Oct 31, 2023 that may be closed by this pull request
@oreenlivnicode
oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 76f5405 to 7959f01 Compare October 31, 2023 09:18

@alex-ilgayev alex-ilgayev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After review most of it,
I think we need to smartly change the dependency.py to have something like:

from_uses_string(), and to_uses_string()
and avoid any parsing of the string (even with split("@")) outside that class.
Means - we get the uses string, parse it to understand the tag, and do all the download and analysis according to that.
When we want to save/identify that action, we can use that to_uses_string() to have unique identification for it, for various reasons:

  • save it in db
  • help the graph relations
  • etc

Comment thread src/downloader/gh_api.py Outdated
Comment thread src/downloader/gh_api.py Outdated
Comment thread src/workflow_components/dependency.py Outdated
Comment thread src/downloader/download.py Outdated
Comment thread src/downloader/download.py Outdated
Comment thread src/workflow_components/composite_action.py Outdated
Comment thread src/workflow_components/composite_action.py
Comment thread src/workflow_components/composite_action.py Outdated
Comment thread src/workflow_components/composite_action.py
Comment thread src/workflow_components/composite_action.py
@oreenlivnicode
oreenlivnicode marked this pull request as draft October 31, 2023 13:12
@alex-ilgayev alex-ilgayev linked an issue Oct 31, 2023 that may be closed by this pull request
@oreenlivnicode
oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 78ce624 to 291736b Compare October 31, 2023 16:10

@elad-pticha elad-pticha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add a test about this in the integration test also?

@oreenlivnicode
oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 291736b to 98c69da Compare November 1, 2023 11:47
@elad-pticha

Copy link
Copy Markdown
Contributor

@oreenlivnicode Make sure to rebase and change RQ-8 and RQ-2 because it contains a condition that checks if the composite action is equal to actions/checkout. After your PR it should be STARTS WITH instead of =

If tag is found we will get download_url from tag object
returned by API call. Else, we will get download_url from
main contents page in the repo (also by API).
Support tags in reusable workflows (Workflow)
@oreenlivnicode
oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 98c69da to 107564c Compare November 7, 2023 12:54
@oreenlivnicode
oreenlivnicode deleted the feature-add-version-to-composite-action branch November 7, 2023 13:09
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.

Differentiate CompositeAction nodes by version take care for references when downloading dependenct actions

3 participants